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 =========================================================================*/
30 #ifndef vtkBYUReader_h
31 #define vtkBYUReader_h
32 
33 #include "vtkIOGeometryModule.h" // For export macro
34 #include "vtkPolyDataAlgorithm.h"
35 
37 {
38 public:
39  static vtkBYUReader *New();
40 
42  void PrintSelf(ostream& os, vtkIndent indent);
43 
45 
46  vtkSetStringMacro(GeometryFileName);
47  vtkGetStringMacro(GeometryFileName);
49 
51 
52  virtual void SetFileName(const char* f) { this->SetGeometryFileName(f); }
53  virtual char* GetFileName() { return this->GetGeometryFileName(); }
55 
57 
58  vtkSetStringMacro(DisplacementFileName);
59  vtkGetStringMacro(DisplacementFileName);
61 
63 
64  vtkSetStringMacro(ScalarFileName);
65  vtkGetStringMacro(ScalarFileName);
67 
69 
70  vtkSetStringMacro(TextureFileName);
71  vtkGetStringMacro(TextureFileName);
73 
75 
76  vtkSetMacro(ReadDisplacement,int);
77  vtkGetMacro(ReadDisplacement,int);
78  vtkBooleanMacro(ReadDisplacement,int);
80 
82 
83  vtkSetMacro(ReadScalar,int);
84  vtkGetMacro(ReadScalar,int);
85  vtkBooleanMacro(ReadScalar,int);
87 
89 
91  vtkSetMacro(ReadTexture,int);
92  vtkGetMacro(ReadTexture,int);
93  vtkBooleanMacro(ReadTexture,int);
95 
97 
98  vtkSetClampMacro(PartNumber,int,1,VTK_INT_MAX);
99  vtkGetMacro(PartNumber,int);
101 
106  static int CanReadFile(const char *filename);
107 
108 protected:
111 
113  // This source does not know how to generate pieces yet.
115  int idx, int numDivisions);
116 
125 
126  void ReadGeometryFile(FILE *fp, int &numPts, vtkInformation *outInfo);
127  void ReadDisplacementFile(int numPts, vtkInformation *outInfo);
128  void ReadScalarFile(int numPts, vtkInformation *outInfo);
129  void ReadTextureFile(int numPts, vtkInformation *outInfo);
130 private:
131  vtkBYUReader(const vtkBYUReader&); // Not implemented.
132  void operator=(const vtkBYUReader&); // Not implemented.
133 };
134 
135 #endif
vtkIOGeometryModule.h
VTK_INT_MAX
#define VTK_INT_MAX
Definition: vtkType.h:132
vtkBYUReader::PartNumber
int PartNumber
Definition: vtkBYUReader.h:124
vtkBYUReader::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkBYUReader::ReadTextureFile
void ReadTextureFile(int numPts, vtkInformation *outInfo)
vtkBYUReader::CanReadFile
static int CanReadFile(const char *filename)
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkBYUReader::ScalarFileName
char * ScalarFileName
Definition: vtkBYUReader.h:119
vtkBYUReader::GetFileName
virtual char * GetFileName()
Definition: vtkBYUReader.h:53
vtkBYUReader::DisplacementFileName
char * DisplacementFileName
Definition: vtkBYUReader.h:118
vtkBYUReader::SetFileName
virtual void SetFileName(const char *f)
Definition: vtkBYUReader.h:52
VTKIOGEOMETRY_EXPORT
#define VTKIOGEOMETRY_EXPORT
Definition: vtkIOGeometryModule.h:15
vtkBYUReader::New
static vtkBYUReader * New()
vtkBYUReader::ComputeDivisionExtents
int ComputeDivisionExtents(vtkDataObject *output, int idx, int numDivisions)
vtkPolyDataAlgorithm.h
vtkBYUReader::ReadTexture
int ReadTexture
Definition: vtkBYUReader.h:123
vtkSetClampMacro
#define vtkSetClampMacro(name, type, min, max)
Definition: vtkSetGet.h:143
vtkBYUReader
read MOVIE.BYU polygon files
Definition: vtkBYUReader.h:37
vtkBYUReader::GeometryFileName
char * GeometryFileName
Definition: vtkBYUReader.h:117
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkSetStringMacro
#define vtkSetStringMacro(name)
Definition: vtkSetGet.h:104
vtkBYUReader::ReadDisplacementFile
void ReadDisplacementFile(int numPts, vtkInformation *outInfo)
vtkBYUReader::TextureFileName
char * TextureFileName
Definition: vtkBYUReader.h:120
vtkBYUReader::ReadDisplacement
int ReadDisplacement
Definition: vtkBYUReader.h:121
vtkBYUReader::ReadScalar
int ReadScalar
Definition: vtkBYUReader.h:122
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkGetStringMacro
vtkGetStringMacro(ExtensionsString)
vtkgl::f
GLclampf f
Definition: vtkgl.h:14181
vtkBYUReader::vtkBYUReader
vtkBYUReader()
vtkBYUReader::~vtkBYUReader
~vtkBYUReader()
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkBYUReader::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkBYUReader::ReadScalarFile
void ReadScalarFile(int numPts, vtkInformation *outInfo)
vtkBYUReader::ReadGeometryFile
void ReadGeometryFile(FILE *fp, int &numPts, vtkInformation *outInfo)
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:65
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:44