VTK  9.2.5
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 =========================================================================*/
32 #ifndef vtkBYUWriter_h
33 #define vtkBYUWriter_h
34 
35 #include "vtkIOGeometryModule.h" // For export macro
36 #include "vtkWriter.h"
37 
38 class vtkPolyData;
39 
40 class VTKIOGEOMETRY_EXPORT vtkBYUWriter : public vtkWriter
41 {
42 public:
43  static vtkBYUWriter* New();
44 
45  vtkTypeMacro(vtkBYUWriter, vtkWriter);
46  void PrintSelf(ostream& os, vtkIndent indent) override;
47 
49 
52  vtkSetFilePathMacro(GeometryFileName);
53  vtkGetFilePathMacro(GeometryFileName);
55 
57 
60  vtkSetFilePathMacro(DisplacementFileName);
61  vtkGetFilePathMacro(DisplacementFileName);
63 
65 
68  vtkSetFilePathMacro(ScalarFileName);
69  vtkGetFilePathMacro(ScalarFileName);
71 
73 
76  vtkSetFilePathMacro(TextureFileName);
77  vtkGetFilePathMacro(TextureFileName);
79 
81 
84  vtkSetMacro(WriteDisplacement, vtkTypeBool);
85  vtkGetMacro(WriteDisplacement, vtkTypeBool);
86  vtkBooleanMacro(WriteDisplacement, vtkTypeBool);
88 
90 
93  vtkSetMacro(WriteScalar, vtkTypeBool);
94  vtkGetMacro(WriteScalar, vtkTypeBool);
95  vtkBooleanMacro(WriteScalar, vtkTypeBool);
97 
99 
102  vtkSetMacro(WriteTexture, vtkTypeBool);
103  vtkGetMacro(WriteTexture, vtkTypeBool);
104  vtkBooleanMacro(WriteTexture, vtkTypeBool);
106 
108 
114 
115 protected:
117  ~vtkBYUWriter() override;
118 
119  void WriteData() override;
120 
128 
129  void WriteGeometryFile(FILE* fp, int numPts);
130  void WriteDisplacementFile(int numPts);
131  void WriteScalarFile(int numPts);
132  void WriteTextureFile(int numPts);
133 
135 
136 private:
137  vtkBYUWriter(const vtkBYUWriter&) = delete;
138  void operator=(const vtkBYUWriter&) = delete;
139 };
140 
141 #endif
write MOVIE.BYU files
Definition: vtkBYUWriter.h:41
char * ScalarFileName
Definition: vtkBYUWriter.h:123
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:121
vtkTypeBool WriteTexture
Definition: vtkBYUWriter.h:127
vtkSetFilePathMacro(DisplacementFileName)
Specify the name of the displacement file to write.
vtkTypeBool WriteDisplacement
Definition: vtkBYUWriter.h:125
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.
vtkPolyData * GetInput(int port)
Get the input to this writer.
vtkSetFilePathMacro(GeometryFileName)
Specify the name of the geometry file to write.
vtkPolyData * GetInput()
Get the input to this writer.
char * DisplacementFileName
Definition: vtkBYUWriter.h:122
vtkTypeBool WriteScalar
Definition: vtkBYUWriter.h:126
vtkSetFilePathMacro(ScalarFileName)
Specify the name of the scalar file to write.
~vtkBYUWriter() override
char * TextureFileName
Definition: vtkBYUWriter.h:124
vtkSetFilePathMacro(TextureFileName)
Specify the name of the texture file to write.
static vtkBYUWriter * New()
void WriteData() override
a simple class to control print indentation
Definition: vtkIndent.h:119
Store vtkAlgorithm input/output information.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:200
abstract class to write data to file(s)
Definition: vtkWriter.h:46
@ info
Definition: vtkX3D.h:382
@ port
Definition: vtkX3D.h:453
int vtkTypeBool
Definition: vtkABI.h:69