VTK  9.2.6
vtkIOSSWriter.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkIOSSWriter.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
24
25#ifndef vtkIOSSWriter_h
26#define vtkIOSSWriter_h
27
29#include "vtkIOIOSSModule.h" // for export macros
30
31#include <memory> // for std::unique_ptr
32
34
35class VTKIOIOSS_EXPORT vtkIOSSWriter : public vtkDataObjectAlgorithm
36{
37public:
38 static vtkIOSSWriter* New();
40 void PrintSelf(ostream& os, vtkIndent indent) override;
41
43
47 vtkSetStringMacro(FileName);
48 vtkGetStringMacro(FileName);
50
52
58 vtkSetMacro(OffsetGlobalIds, bool);
59 vtkGetMacro(OffsetGlobalIds, bool);
60 vtkBooleanMacro(OffsetGlobalIds, bool);
62
64
71 vtkSetMacro(PreserveInputEntityGroups, bool);
72 vtkGetMacro(PreserveInputEntityGroups, bool);
73 vtkBooleanMacro(PreserveInputEntityGroups, bool);
75
77
84 vtkSetClampMacro(DisplacementMagnitude, double, 0, VTK_DOUBLE_MAX);
85 vtkGetMacro(DisplacementMagnitude, double);
87
89
97 vtkSetClampMacro(MaximumTimeStepsPerFile, int, 0, VTK_INT_MAX);
98 vtkGetMacro(MaximumTimeStepsPerFile, int);
100
102
110 vtkGetObjectMacro(Controller, vtkMultiProcessController);
112
116 bool Write();
117
118protected:
120 ~vtkIOSSWriter() override;
121
122 int FillInputPortInformation(int port, vtkInformation* info) override;
124 vtkInformationVector* outputVector) override;
126 vtkInformationVector* outputVector) override;
128 vtkInformationVector* outputVector) override;
129
130private:
131 vtkIOSSWriter(const vtkIOSSWriter&) = delete;
132 void operator=(const vtkIOSSWriter&) = delete;
133
134 class vtkInternals;
135 std::unique_ptr<vtkInternals> Internals;
136
137 vtkMultiProcessController* Controller;
138 char* FileName;
139 bool OffsetGlobalIds;
140 bool PreserveInputEntityGroups;
141 double DisplacementMagnitude;
142 int MaximumTimeStepsPerFile;
143};
144
145#endif
int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
bool Write()
Writes the input dataset.
~vtkIOSSWriter() override
void SetController(vtkMultiProcessController *controller)
Get/Set the controller to use when working in parallel.
static vtkIOSSWriter * New()
int RequestUpdateExtent(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called by the superclass.
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition vtkIndent.h:34
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Multiprocessing communication superclass.
#define VTK_DOUBLE_MAX
Definition vtkType.h:165
#define VTK_INT_MAX
Definition vtkType.h:155