VTK
vtkMCubesReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkMCubesReader.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 =========================================================================*/
55 #ifndef vtkMCubesReader_h
56 #define vtkMCubesReader_h
57 
58 #include "vtkIOGeometryModule.h" // For export macro
59 #include "vtkPolyDataAlgorithm.h"
60 
61 #define VTK_FILE_BYTE_ORDER_BIG_ENDIAN 0
62 #define VTK_FILE_BYTE_ORDER_LITTLE_ENDIAN 1
63 
65 
67 {
68 public:
70  void PrintSelf(ostream& os, vtkIndent indent);
71 
73  static vtkMCubesReader *New();
74 
76 
77  vtkSetStringMacro(FileName);
78  vtkGetStringMacro(FileName);
80 
82 
83  vtkSetStringMacro(LimitsFileName);
84  vtkGetStringMacro(LimitsFileName);
86 
88 
90  vtkSetClampMacro(HeaderSize,int,0,VTK_INT_MAX);
91  vtkGetMacro(HeaderSize,int);
93 
95 
99  vtkSetMacro(FlipNormals,int);
100  vtkGetMacro(FlipNormals,int);
101  vtkBooleanMacro(FlipNormals,int);
103 
105 
106  vtkSetMacro(Normals,int);
107  vtkGetMacro(Normals,int);
108  vtkBooleanMacro(Normals,int);
110 
112 
122  void SetDataByteOrderToBigEndian();
123  void SetDataByteOrderToLittleEndian();
124  int GetDataByteOrder();
125  void SetDataByteOrder(int);
126  const char *GetDataByteOrderAsString();
128 
130 
131  vtkSetMacro(SwapBytes,int);
132  vtkGetMacro(SwapBytes,int);
133  vtkBooleanMacro(SwapBytes,int);
135 
137 
139  void SetLocator(vtkIncrementalPointLocator *locator);
140  vtkGetObjectMacro(Locator,vtkIncrementalPointLocator);
142 
144  void CreateDefaultLocator();
145 
147  unsigned long GetMTime();
148 
149 protected:
150  vtkMCubesReader();
151  ~vtkMCubesReader();
152 
154 
155  char *FileName;
161  int Normals;
162 
163 private:
164  vtkMCubesReader(const vtkMCubesReader&); // Not implemented.
165  void operator=(const vtkMCubesReader&); // Not implemented.
166 };
167 
168 #endif
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
#define VTK_INT_MAX
Definition: vtkType.h:130
Abstract class in support of both point location and point insertion.
vtkIncrementalPointLocator * Locator
#define VTKIOGEOMETRY_EXPORT
static vtkPolyDataAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent)
Superclass for algorithms that produce only polydata as output.
virtual unsigned long GetMTime()
a simple class to control print indentation
Definition: vtkIndent.h:38
read binary marching cubes file
Store zero or more vtkInformation instances.