VTK  9.1.0
vtkBYUWriter.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkBYUWriter.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=========================================================================*/
29#ifndef vtkBYUWriter_h
30#define vtkBYUWriter_h
31
32#include "vtkIOGeometryModule.h" // For export macro
33#include "vtkWriter.h"
34
35class vtkPolyData;
36
37class VTKIOGEOMETRY_EXPORT vtkBYUWriter : public vtkWriter
38{
39public:
40 static vtkBYUWriter* New();
41
42 vtkTypeMacro(vtkBYUWriter, vtkWriter);
43 void PrintSelf(ostream& os, vtkIndent indent) override;
44
46
49 vtkSetFilePathMacro(GeometryFileName);
50 vtkGetFilePathMacro(GeometryFileName);
52
54
57 vtkSetFilePathMacro(DisplacementFileName);
58 vtkGetFilePathMacro(DisplacementFileName);
60
62
65 vtkSetFilePathMacro(ScalarFileName);
66 vtkGetFilePathMacro(ScalarFileName);
68
70
73 vtkSetFilePathMacro(TextureFileName);
74 vtkGetFilePathMacro(TextureFileName);
76
78
81 vtkSetMacro(WriteDisplacement, vtkTypeBool);
82 vtkGetMacro(WriteDisplacement, vtkTypeBool);
83 vtkBooleanMacro(WriteDisplacement, vtkTypeBool);
85
87
90 vtkSetMacro(WriteScalar, vtkTypeBool);
91 vtkGetMacro(WriteScalar, vtkTypeBool);
92 vtkBooleanMacro(WriteScalar, vtkTypeBool);
94
96
99 vtkSetMacro(WriteTexture, vtkTypeBool);
100 vtkGetMacro(WriteTexture, vtkTypeBool);
101 vtkBooleanMacro(WriteTexture, vtkTypeBool);
103
105
111
112protected:
114 ~vtkBYUWriter() override;
115
116 void WriteData() override;
117
125
126 void WriteGeometryFile(FILE* fp, int numPts);
127 void WriteDisplacementFile(int numPts);
128 void WriteScalarFile(int numPts);
129 void WriteTextureFile(int numPts);
130
132
133private:
134 vtkBYUWriter(const vtkBYUWriter&) = delete;
135 void operator=(const vtkBYUWriter&) = delete;
136};
137
138#endif
write MOVIE.BYU files
Definition: vtkBYUWriter.h:38
char * ScalarFileName
Definition: vtkBYUWriter.h:120
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
Definition: vtkBYUWriter.h:118
vtkTypeBool WriteTexture
Definition: vtkBYUWriter.h:124
vtkPolyData * GetInput()
Get the input to this writer.
vtkSetFilePathMacro(DisplacementFileName)
Specify the name of the displacement file to write.
vtkTypeBool WriteDisplacement
Definition: vtkBYUWriter.h:122
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
Definition: vtkBYUWriter.h:119
static vtkBYUWriter * New()
vtkTypeBool WriteScalar
Definition: vtkBYUWriter.h:123
vtkSetFilePathMacro(ScalarFileName)
Specify the name of the scalar file to write.
~vtkBYUWriter() override
char * TextureFileName
Definition: vtkBYUWriter.h:121
vtkSetFilePathMacro(TextureFileName)
Specify the name of the texture file to write.
void WriteData() override
a simple class to control print indentation
Definition: vtkIndent.h:113
Store vtkAlgorithm input/output information.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:195
abstract class to write data to file(s)
Definition: vtkWriter.h:43
@ info
Definition: vtkX3D.h:382
@ port
Definition: vtkX3D.h:453
int vtkTypeBool
Definition: vtkABI.h:69