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:
109  vtkBYUReader();
110  ~vtkBYUReader();
111 
113  // This source does not know how to generate pieces yet.
114  int ComputeDivisionExtents(vtkDataObject *output,
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
int ReadDisplacement
Definition: vtkBYUReader.h:121
char * TextureFileName
Definition: vtkBYUReader.h:120
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
virtual void SetFileName(const char *f)
Definition: vtkBYUReader.h:52
#define VTK_INT_MAX
Definition: vtkType.h:132
virtual char * GetFileName()
Definition: vtkBYUReader.h:53
#define VTKIOGEOMETRY_EXPORT
static vtkPolyDataAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent)
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:38
char * GeometryFileName
Definition: vtkBYUReader.h:117
read MOVIE.BYU polygon files
Definition: vtkBYUReader.h:36
char * DisplacementFileName
Definition: vtkBYUReader.h:118
char * ScalarFileName
Definition: vtkBYUReader.h:119
Store zero or more vtkInformation instances.
general representation of visualization data
Definition: vtkDataObject.h:64