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 =========================================================================*/
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);
47 
49 
52  vtkSetStringMacro(GeometryFileName);
53  vtkGetStringMacro(GeometryFileName);
55 
57 
60  vtkSetStringMacro(DisplacementFileName);
61  vtkGetStringMacro(DisplacementFileName);
63 
65 
68  vtkSetStringMacro(ScalarFileName);
69  vtkGetStringMacro(ScalarFileName);
71 
73 
76  vtkSetStringMacro(TextureFileName);
77  vtkGetStringMacro(TextureFileName);
79 
81 
84  vtkSetMacro(WriteDisplacement,int);
85  vtkGetMacro(WriteDisplacement,int);
86  vtkBooleanMacro(WriteDisplacement,int);
88 
90 
93  vtkSetMacro(WriteScalar,int);
94  vtkGetMacro(WriteScalar,int);
95  vtkBooleanMacro(WriteScalar,int);
97 
99 
102  vtkSetMacro(WriteTexture,int);
103  vtkGetMacro(WriteTexture,int);
104  vtkBooleanMacro(WriteTexture,int);
106 
108 
112  vtkPolyData* GetInput(int port);
114 
115 protected:
116  vtkBYUWriter();
117  ~vtkBYUWriter();
118 
119  void WriteData();
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&) VTK_DELETE_FUNCTION;
138  void operator=(const vtkBYUWriter&) VTK_DELETE_FUNCTION;
139 };
140 
141 #endif
142 
vtkBYUWriter::GeometryFileName
char * GeometryFileName
Definition: vtkBYUWriter.h:121
vtkBYUWriter::WriteTexture
int WriteTexture
Definition: vtkBYUWriter.h:127
vtkBYUWriter::TextureFileName
char * TextureFileName
Definition: vtkBYUWriter.h:124
vtkAlgorithm::FillInputPortInformation
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
vtkBYUWriter
write MOVIE.BYU files
Definition: vtkBYUWriter.h:40
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkWriter::WriteData
virtual void WriteData()=0
vtkWriter::GetInput
vtkDataObject * GetInput()
vtkBYUWriter::WriteScalar
int WriteScalar
Definition: vtkBYUWriter.h:126
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkWriter
abstract class to write data to file(s)
Definition: vtkWriter.h:42
vtkBYUWriter::WriteDisplacement
int WriteDisplacement
Definition: vtkBYUWriter.h:125
vtkGetStringMacro
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
vtkBYUWriter::ScalarFileName
char * ScalarFileName
Definition: vtkBYUWriter.h:123
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkAlgorithm::New
static vtkAlgorithm * New()
vtkBYUWriter::DisplacementFileName
char * DisplacementFileName
Definition: vtkBYUWriter.h:122
vtkWriter.h
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:85
vtkWriter::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.