VTK
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=========================================================================*/
31#ifndef vtkBYUReader_h
32#define vtkBYUReader_h
33
34#include "vtkIOGeometryModule.h" // For export macro
36
37class VTKIOGEOMETRY_EXPORT vtkBYUReader : public vtkPolyDataAlgorithm
38{
39public:
40 static vtkBYUReader *New();
41
43 void PrintSelf(ostream& os, vtkIndent indent);
44
46
49 vtkSetStringMacro(GeometryFileName);
50 vtkGetStringMacro(GeometryFileName);
52
56 virtual void SetFileName(const char* f) { this->SetGeometryFileName(f); }
57 virtual char* GetFileName() { return this->GetGeometryFileName(); }
58
60
63 vtkSetStringMacro(DisplacementFileName);
64 vtkGetStringMacro(DisplacementFileName);
66
68
71 vtkSetStringMacro(ScalarFileName);
72 vtkGetStringMacro(ScalarFileName);
74
76
79 vtkSetStringMacro(TextureFileName);
80 vtkGetStringMacro(TextureFileName);
82
84
87 vtkSetMacro(ReadDisplacement,int);
88 vtkGetMacro(ReadDisplacement,int);
89 vtkBooleanMacro(ReadDisplacement,int);
91
93
96 vtkSetMacro(ReadScalar,int);
97 vtkGetMacro(ReadScalar,int);
98 vtkBooleanMacro(ReadScalar,int);
100
102
106 vtkSetMacro(ReadTexture,int);
107 vtkGetMacro(ReadTexture,int);
108 vtkBooleanMacro(ReadTexture,int);
110
112
115 vtkSetClampMacro(PartNumber,int,1,VTK_INT_MAX);
116 vtkGetMacro(PartNumber,int);
118
125 static int CanReadFile(const char *filename);
126
127protected:
130
132 // This source does not know how to generate pieces yet.
134 int idx, int numDivisions);
135
144
145 void ReadGeometryFile(FILE *fp, int &numPts, vtkInformation *outInfo);
146 void ReadDisplacementFile(int numPts, vtkInformation *outInfo);
147 void ReadScalarFile(int numPts, vtkInformation *outInfo);
148 void ReadTextureFile(int numPts, vtkInformation *outInfo);
149private:
150 vtkBYUReader(const vtkBYUReader&) VTK_DELETE_FUNCTION;
151 void operator=(const vtkBYUReader&) VTK_DELETE_FUNCTION;
152};
153
154#endif
read MOVIE.BYU polygon files
Definition: vtkBYUReader.h:38
int ComputeDivisionExtents(vtkDataObject *output, int idx, int numDivisions)
void ReadTextureFile(int numPts, vtkInformation *outInfo)
int ReadDisplacement
Definition: vtkBYUReader.h:140
char * GeometryFileName
Definition: vtkBYUReader.h:136
void ReadDisplacementFile(int numPts, vtkInformation *outInfo)
void ReadGeometryFile(FILE *fp, int &numPts, vtkInformation *outInfo)
char * TextureFileName
Definition: vtkBYUReader.h:139
char * ScalarFileName
Definition: vtkBYUReader.h:138
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
static int CanReadFile(const char *filename)
Returns 1 if this file can be read and 0 if the file cannot be read.
virtual void SetFileName(const char *f)
Specify name of geometry FileName (alias).
Definition: vtkBYUReader.h:56
char * DisplacementFileName
Definition: vtkBYUReader.h:137
virtual char * GetFileName()
Definition: vtkBYUReader.h:57
static vtkBYUReader * New()
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
void ReadScalarFile(int numPts, vtkInformation *outInfo)
general representation of visualization data
Definition: vtkDataObject.h:65
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only polydata as output.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
#define VTK_INT_MAX
Definition: vtkType.h:153