VTK  9.3.20240423
vtkBYUWriter.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
20#ifndef vtkBYUWriter_h
21#define vtkBYUWriter_h
22
23#include "vtkIOGeometryModule.h" // For export macro
24#include "vtkWriter.h"
25
26VTK_ABI_NAMESPACE_BEGIN
27class vtkPolyData;
28
29class VTKIOGEOMETRY_EXPORT vtkBYUWriter : public vtkWriter
30{
31public:
32 static vtkBYUWriter* New();
33
34 vtkTypeMacro(vtkBYUWriter, vtkWriter);
35 void PrintSelf(ostream& os, vtkIndent indent) override;
36
38
41 vtkSetFilePathMacro(GeometryFileName);
42 vtkGetFilePathMacro(GeometryFileName);
44
46
49 vtkSetFilePathMacro(DisplacementFileName);
50 vtkGetFilePathMacro(DisplacementFileName);
52
54
57 vtkSetFilePathMacro(ScalarFileName);
58 vtkGetFilePathMacro(ScalarFileName);
60
62
65 vtkSetFilePathMacro(TextureFileName);
66 vtkGetFilePathMacro(TextureFileName);
68
70
73 vtkSetMacro(WriteDisplacement, vtkTypeBool);
74 vtkGetMacro(WriteDisplacement, vtkTypeBool);
75 vtkBooleanMacro(WriteDisplacement, vtkTypeBool);
77
79
82 vtkSetMacro(WriteScalar, vtkTypeBool);
83 vtkGetMacro(WriteScalar, vtkTypeBool);
84 vtkBooleanMacro(WriteScalar, vtkTypeBool);
86
88
91 vtkSetMacro(WriteTexture, vtkTypeBool);
92 vtkGetMacro(WriteTexture, vtkTypeBool);
93 vtkBooleanMacro(WriteTexture, vtkTypeBool);
95
97
103
104protected:
106 ~vtkBYUWriter() override;
107
108 void WriteData() override;
109
117
118 void WriteGeometryFile(FILE* fp, int numPts);
119 void WriteDisplacementFile(int numPts);
120 void WriteScalarFile(int numPts);
121 void WriteTextureFile(int numPts);
122
123 int FillInputPortInformation(int port, vtkInformation* info) override;
124
125private:
126 vtkBYUWriter(const vtkBYUWriter&) = delete;
127 void operator=(const vtkBYUWriter&) = delete;
128};
129
130VTK_ABI_NAMESPACE_END
131#endif
write MOVIE.BYU files
char * ScalarFileName
vtkPolyData * GetInput(int port)
Get the input to this writer.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void WriteDisplacementFile(int numPts)
void WriteScalarFile(int numPts)
vtkGetFilePathMacro(TextureFileName)
Specify the name of the texture file to write.
char * GeometryFileName
vtkTypeBool WriteTexture
vtkPolyData * GetInput()
Get the input to this writer.
vtkSetFilePathMacro(DisplacementFileName)
Specify the name of the displacement file to write.
vtkTypeBool WriteDisplacement
vtkGetFilePathMacro(GeometryFileName)
Specify the name of the geometry file to write.
void WriteGeometryFile(FILE *fp, int numPts)
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
void WriteTextureFile(int numPts)
vtkGetFilePathMacro(ScalarFileName)
Specify the name of the scalar file to write.
vtkGetFilePathMacro(DisplacementFileName)
Specify the name of the displacement file to write.
vtkSetFilePathMacro(GeometryFileName)
Specify the name of the geometry file to write.
char * DisplacementFileName
static vtkBYUWriter * New()
vtkTypeBool WriteScalar
vtkSetFilePathMacro(ScalarFileName)
Specify the name of the scalar file to write.
~vtkBYUWriter() override
char * TextureFileName
vtkSetFilePathMacro(TextureFileName)
Specify the name of the texture file to write.
void WriteData() override
a simple class to control print indentation
Definition vtkIndent.h:108
Store vtkAlgorithm input/output information.
concrete dataset represents vertices, lines, polygons, and triangle strips
abstract class to write data to file(s)
Definition vtkWriter.h:35
int vtkTypeBool
Definition vtkABI.h:64