VTK  9.1.0
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=========================================================================*/
25#ifndef vtkBYUReader_h
26#define vtkBYUReader_h
27
28#include "vtkIOGeometryModule.h" // For export macro
30
31class VTKIOGEOMETRY_EXPORT vtkBYUReader : public vtkPolyDataAlgorithm
32{
33public:
34 static vtkBYUReader* New();
35
37 void PrintSelf(ostream& os, vtkIndent indent) override;
38
40
43 vtkSetFilePathMacro(GeometryFileName);
44 vtkGetFilePathMacro(GeometryFileName);
46
50 virtual void SetFileName(VTK_FILEPATH const char* f) { this->SetGeometryFileName(f); }
51 virtual VTK_FILEPATH char* GetFileName() { return this->GetGeometryFileName(); }
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(ReadDisplacement, vtkTypeBool);
82 vtkGetMacro(ReadDisplacement, vtkTypeBool);
83 vtkBooleanMacro(ReadDisplacement, vtkTypeBool);
85
87
90 vtkSetMacro(ReadScalar, vtkTypeBool);
91 vtkGetMacro(ReadScalar, vtkTypeBool);
92 vtkBooleanMacro(ReadScalar, vtkTypeBool);
94
96
100 vtkSetMacro(ReadTexture, vtkTypeBool);
101 vtkGetMacro(ReadTexture, vtkTypeBool);
102 vtkBooleanMacro(ReadTexture, vtkTypeBool);
104
106
109 vtkSetClampMacro(PartNumber, int, 1, VTK_INT_MAX);
110 vtkGetMacro(PartNumber, int);
112
119 static int CanReadFile(VTK_FILEPATH const char* filename);
120
121protected:
123 ~vtkBYUReader() override;
124
126 // This source does not know how to generate pieces yet.
127 int ComputeDivisionExtents(vtkDataObject* output, int idx, int numDivisions);
128
137
138 void ReadGeometryFile(FILE* fp, int& numPts, vtkInformation* outInfo);
139 void ReadDisplacementFile(int numPts, vtkInformation* outInfo);
140 void ReadScalarFile(int numPts, vtkInformation* outInfo);
141 void ReadTextureFile(int numPts, vtkInformation* outInfo);
142
143private:
144 vtkBYUReader(const vtkBYUReader&) = delete;
145 void operator=(const vtkBYUReader&) = delete;
146};
147
148#endif
read MOVIE.BYU polygon files
Definition: vtkBYUReader.h:32
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:129
vtkSetFilePathMacro(TextureFileName)
Specify name of texture coordinates FileName.
~vtkBYUReader() override
virtual VTK_FILEPATH char * GetFileName()
Definition: vtkBYUReader.h:51
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:132
char * ScalarFileName
Definition: vtkBYUReader.h:131
vtkGetFilePathMacro(ScalarFileName)
Specify name of scalar FileName.
char * DisplacementFileName
Definition: vtkBYUReader.h:130
vtkTypeBool ReadTexture
Definition: vtkBYUReader.h:135
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:133
virtual void SetFileName(VTK_FILEPATH const char *f)
Specify name of geometry FileName (alias).
Definition: vtkBYUReader.h:50
vtkTypeBool ReadScalar
Definition: vtkBYUReader.h:134
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
Definition: vtkDataObject.h:60
a simple class to control print indentation
Definition: vtkIndent.h:34
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