VTK
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 
35 class vtkPolyData;
36 
37 class VTKIOGEOMETRY_EXPORT vtkBYUWriter : public vtkWriter
38 {
39 public:
40  static vtkBYUWriter *New();
41 
42  vtkTypeMacro(vtkBYUWriter,vtkWriter);
43  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
44 
46 
49  vtkSetStringMacro(GeometryFileName);
50  vtkGetStringMacro(GeometryFileName);
52 
54 
57  vtkSetStringMacro(DisplacementFileName);
58  vtkGetStringMacro(DisplacementFileName);
60 
62 
65  vtkSetStringMacro(ScalarFileName);
66  vtkGetStringMacro(ScalarFileName);
68 
70 
73  vtkSetStringMacro(TextureFileName);
74  vtkGetStringMacro(TextureFileName);
76 
78 
81  vtkSetMacro(WriteDisplacement,int);
82  vtkGetMacro(WriteDisplacement,int);
83  vtkBooleanMacro(WriteDisplacement,int);
85 
87 
90  vtkSetMacro(WriteScalar,int);
91  vtkGetMacro(WriteScalar,int);
92  vtkBooleanMacro(WriteScalar,int);
94 
96 
99  vtkSetMacro(WriteTexture,int);
100  vtkGetMacro(WriteTexture,int);
101  vtkBooleanMacro(WriteTexture,int);
103 
105 
109  vtkPolyData* GetInput(int port);
111 
112 protected:
113  vtkBYUWriter();
114  ~vtkBYUWriter() VTK_OVERRIDE;
115 
116  void WriteData() VTK_OVERRIDE;
117 
118  char *GeometryFileName;
119  char *DisplacementFileName;
120  char *ScalarFileName;
121  char *TextureFileName;
122  int WriteDisplacement;
123  int WriteScalar;
124  int WriteTexture;
125 
126  void WriteGeometryFile(FILE *fp, int numPts);
127  void WriteDisplacementFile(int numPts);
128  void WriteScalarFile(int numPts);
129  void WriteTextureFile(int numPts);
130 
131  int FillInputPortInformation(int port, vtkInformation *info) VTK_OVERRIDE;
132 
133 private:
134  vtkBYUWriter(const vtkBYUWriter&) VTK_DELETE_FUNCTION;
135  void operator=(const vtkBYUWriter&) VTK_DELETE_FUNCTION;
136 };
137 
138 #endif
139 
Store vtkAlgorithm input/output information.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:79
write MOVIE.BYU files
Definition: vtkBYUWriter.h:37
abstract class to write data to file(s)
Definition: vtkWriter.h:42
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:33
vtkDataObject * GetInput()
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
static vtkAlgorithm * New()
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.