VTK  9.2.6
vtkBYUReader.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkBYUReader.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=========================================================================*/
137#ifndef vtkBYUReader_h
138#define vtkBYUReader_h
139
140#include "vtkIOGeometryModule.h" // For export macro
141#include "vtkPolyDataAlgorithm.h"
142
143class VTKIOGEOMETRY_EXPORT vtkBYUReader : public vtkPolyDataAlgorithm
144{
145public:
146 static vtkBYUReader* New();
147
149 void PrintSelf(ostream& os, vtkIndent indent) override;
150
152
155 vtkSetFilePathMacro(GeometryFileName);
156 vtkGetFilePathMacro(GeometryFileName);
158
162 virtual void SetFileName(VTK_FILEPATH const char* f) { this->SetGeometryFileName(f); }
163 virtual VTK_FILEPATH VTK_FUTURE_CONST char* GetFileName() VTK_FUTURE_CONST
164 {
165 return this->GetGeometryFileName();
166 }
167
169
172 vtkSetFilePathMacro(DisplacementFileName);
173 vtkGetFilePathMacro(DisplacementFileName);
175
177
180 vtkSetFilePathMacro(ScalarFileName);
181 vtkGetFilePathMacro(ScalarFileName);
183
185
188 vtkSetFilePathMacro(TextureFileName);
189 vtkGetFilePathMacro(TextureFileName);
191
193
196 vtkSetMacro(ReadDisplacement, vtkTypeBool);
197 vtkGetMacro(ReadDisplacement, vtkTypeBool);
198 vtkBooleanMacro(ReadDisplacement, vtkTypeBool);
200
202
205 vtkSetMacro(ReadScalar, vtkTypeBool);
206 vtkGetMacro(ReadScalar, vtkTypeBool);
207 vtkBooleanMacro(ReadScalar, vtkTypeBool);
209
211
215 vtkSetMacro(ReadTexture, vtkTypeBool);
216 vtkGetMacro(ReadTexture, vtkTypeBool);
217 vtkBooleanMacro(ReadTexture, vtkTypeBool);
219
221
224 vtkSetClampMacro(PartNumber, int, 1, VTK_INT_MAX);
225 vtkGetMacro(PartNumber, int);
227
234 static int CanReadFile(VTK_FILEPATH const char* filename);
235
236protected:
238 ~vtkBYUReader() override;
239
241 // This source does not know how to generate pieces yet.
242 int ComputeDivisionExtents(vtkDataObject* output, int idx, int numDivisions);
243
252
253 void ReadGeometryFile(FILE* fp, int& numPts, vtkInformation* outInfo);
254 void ReadDisplacementFile(int numPts, vtkInformation* outInfo);
255 void ReadScalarFile(int numPts, vtkInformation* outInfo);
256 void ReadTextureFile(int numPts, vtkInformation* outInfo);
257
258private:
259 vtkBYUReader(const vtkBYUReader&) = delete;
260 void operator=(const vtkBYUReader&) = delete;
261};
262
263#endif
read MOVIE.BYU polygon files
Definition: vtkBYUReader.h:144
vtkGetFilePathMacro(TextureFileName)
Specify name of texture coordinates FileName.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
int ComputeDivisionExtents(vtkDataObject *output, int idx, int numDivisions)
vtkSetFilePathMacro(ScalarFileName)
Specify name of scalar FileName.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void ReadTextureFile(int numPts, vtkInformation *outInfo)
char * GeometryFileName
Definition: vtkBYUReader.h:244
vtkSetFilePathMacro(TextureFileName)
Specify name of texture coordinates FileName.
~vtkBYUReader() override
virtual VTK_FILEPATH VTK_FUTURE_CONST char * GetFileName() VTK_FUTURE_CONST
Definition: vtkBYUReader.h:163
vtkGetFilePathMacro(DisplacementFileName)
Specify name of displacement FileName.
void ReadDisplacementFile(int numPts, vtkInformation *outInfo)
vtkSetFilePathMacro(GeometryFileName)
Specify name of geometry FileName.
void ReadGeometryFile(FILE *fp, int &numPts, vtkInformation *outInfo)
char * TextureFileName
Definition: vtkBYUReader.h:247
char * ScalarFileName
Definition: vtkBYUReader.h:246
vtkGetFilePathMacro(ScalarFileName)
Specify name of scalar FileName.
char * DisplacementFileName
Definition: vtkBYUReader.h:245
vtkTypeBool ReadTexture
Definition: vtkBYUReader.h:250
vtkSetFilePathMacro(DisplacementFileName)
Specify name of displacement FileName.
static vtkBYUReader * New()
void ReadScalarFile(int numPts, vtkInformation *outInfo)
vtkGetFilePathMacro(GeometryFileName)
Specify name of geometry FileName.
vtkTypeBool ReadDisplacement
Definition: vtkBYUReader.h:248
virtual void SetFileName(VTK_FILEPATH const char *f)
Specify name of geometry FileName (alias).
Definition: vtkBYUReader.h:162
vtkTypeBool ReadScalar
Definition: vtkBYUReader.h:249
static int CanReadFile(VTK_FILEPATH const char *filename)
Returns 1 if this file can be read and 0 if the file cannot be read.
general representation of visualization data
a simple class to control print indentation
Definition: vtkIndent.h:119
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only polydata as output.
int vtkTypeBool
Definition: vtkABI.h:69
#define VTK_INT_MAX
Definition: vtkType.h:155
#define VTK_FILEPATH