VTK  9.3.0
vtkBYUReader.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
25#ifndef vtkBYUReader_h
26#define vtkBYUReader_h
27
28#include "vtkIOGeometryModule.h" // For export macro
30
31VTK_ABI_NAMESPACE_BEGIN
32class VTKIOGEOMETRY_EXPORT vtkBYUReader : public vtkPolyDataAlgorithm
33{
34public:
35 static vtkBYUReader* New();
36
38 void PrintSelf(ostream& os, vtkIndent indent) override;
39
41
44 vtkSetFilePathMacro(GeometryFileName);
45 vtkGetFilePathMacro(GeometryFileName);
47
51 virtual void SetFileName(VTK_FILEPATH const char* f) { this->SetGeometryFileName(f); }
52 virtual VTK_FILEPATH VTK_FUTURE_CONST char* GetFileName() VTK_FUTURE_CONST
53 {
54 return this->GetGeometryFileName();
55 }
56
58
61 vtkSetFilePathMacro(DisplacementFileName);
62 vtkGetFilePathMacro(DisplacementFileName);
64
66
69 vtkSetFilePathMacro(ScalarFileName);
70 vtkGetFilePathMacro(ScalarFileName);
72
74
77 vtkSetFilePathMacro(TextureFileName);
78 vtkGetFilePathMacro(TextureFileName);
80
82
85 vtkSetMacro(ReadDisplacement, vtkTypeBool);
86 vtkGetMacro(ReadDisplacement, vtkTypeBool);
87 vtkBooleanMacro(ReadDisplacement, vtkTypeBool);
89
91
94 vtkSetMacro(ReadScalar, vtkTypeBool);
95 vtkGetMacro(ReadScalar, vtkTypeBool);
96 vtkBooleanMacro(ReadScalar, vtkTypeBool);
98
100
104 vtkSetMacro(ReadTexture, vtkTypeBool);
105 vtkGetMacro(ReadTexture, vtkTypeBool);
106 vtkBooleanMacro(ReadTexture, vtkTypeBool);
108
110
113 vtkSetClampMacro(PartNumber, int, 1, VTK_INT_MAX);
114 vtkGetMacro(PartNumber, int);
116
123 static int CanReadFile(VTK_FILEPATH const char* filename);
124
125protected:
127 ~vtkBYUReader() override;
128
130 // This source does not know how to generate pieces yet.
131 int ComputeDivisionExtents(vtkDataObject* output, int idx, int numDivisions);
132
141
142 void ReadGeometryFile(FILE* fp, int& numPts, vtkInformation* outInfo);
143 void ReadDisplacementFile(int numPts, vtkInformation* outInfo);
144 void ReadScalarFile(int numPts, vtkInformation* outInfo);
145 void ReadTextureFile(int numPts, vtkInformation* outInfo);
146
147private:
148 vtkBYUReader(const vtkBYUReader&) = delete;
149 void operator=(const vtkBYUReader&) = delete;
150};
151
152VTK_ABI_NAMESPACE_END
153#endif
read MOVIE.BYU polygon files
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
vtkSetFilePathMacro(TextureFileName)
Specify name of texture coordinates FileName.
~vtkBYUReader() override
virtual VTK_FILEPATH VTK_FUTURE_CONST char * GetFileName() VTK_FUTURE_CONST
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
char * ScalarFileName
vtkGetFilePathMacro(ScalarFileName)
Specify name of scalar FileName.
char * DisplacementFileName
vtkTypeBool ReadTexture
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
virtual void SetFileName(VTK_FILEPATH const char *f)
Specify name of geometry FileName (alias).
vtkTypeBool ReadScalar
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:38
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:64
#define VTK_INT_MAX
Definition vtkType.h:144
#define VTK_FILEPATH