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=========================================================================*/
24
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
46
50 virtual void SetFileName(VTK_FILEPATH const char* f) { this->SetGeometryFileName(f); }
51 virtual VTK_FILEPATH VTK_FUTURE_CONST char* GetFileName() VTK_FUTURE_CONST
52 {
53 return this->GetGeometryFileName();
54 }
55
57
63
65
71
73
79
81
86 vtkBooleanMacro(ReadDisplacement, vtkTypeBool);
88
90
93 vtkSetMacro(ReadScalar, vtkTypeBool);
94 vtkGetMacro(ReadScalar, vtkTypeBool);
95 vtkBooleanMacro(ReadScalar, vtkTypeBool);
97
99
105 vtkBooleanMacro(ReadTexture, vtkTypeBool);
107
109
112 vtkSetClampMacro(PartNumber, int, 1, VTK_INT_MAX);
113 vtkGetMacro(PartNumber, int);
115
122 static int CanReadFile(VTK_FILEPATH const char* filename);
123
124protected:
126 ~vtkBYUReader() override;
127
129 // This source does not know how to generate pieces yet.
130 int ComputeDivisionExtents(vtkDataObject* output, int idx, int numDivisions);
131
140
141 void ReadGeometryFile(FILE* fp, int& numPts, vtkInformation* outInfo);
142 void ReadDisplacementFile(int numPts, vtkInformation* outInfo);
143 void ReadScalarFile(int numPts, vtkInformation* outInfo);
144 void ReadTextureFile(int numPts, vtkInformation* outInfo);
145
146private:
147 vtkBYUReader(const vtkBYUReader&) = delete;
148 void operator=(const vtkBYUReader&) = delete;
149};
150
151#endif
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:34
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
int vtkTypeBool
Definition vtkABI.h:69
#define VTK_INT_MAX
Definition vtkType.h:155
#define VTK_FILEPATH