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 =========================================================================*/
56 #ifndef vtkMCubesReader_h
57 #define vtkMCubesReader_h
58 
59 #include "vtkIOGeometryModule.h" // For export macro
60 #include "vtkPolyDataAlgorithm.h"
61 
62 #define VTK_FILE_BYTE_ORDER_BIG_ENDIAN 0
63 #define VTK_FILE_BYTE_ORDER_LITTLE_ENDIAN 1
64 
66 
67 class VTKIOGEOMETRY_EXPORT vtkMCubesReader : public vtkPolyDataAlgorithm
68 {
69 public:
71  void PrintSelf(ostream& os, vtkIndent indent);
72 
76  static vtkMCubesReader *New();
77 
79 
82  vtkSetStringMacro(FileName);
83  vtkGetStringMacro(FileName);
85 
87 
90  vtkSetStringMacro(LimitsFileName);
91  vtkGetStringMacro(LimitsFileName);
93 
95 
98  vtkSetClampMacro(HeaderSize,int,0,VTK_INT_MAX);
99  vtkGetMacro(HeaderSize,int);
101 
103 
109  vtkSetMacro(FlipNormals,int);
110  vtkGetMacro(FlipNormals,int);
111  vtkBooleanMacro(FlipNormals,int);
113 
115 
118  vtkSetMacro(Normals,int);
119  vtkGetMacro(Normals,int);
120  vtkBooleanMacro(Normals,int);
122 
124 
140  void SetDataByteOrder(int);
143 
145 
148  vtkSetMacro(SwapBytes,int);
149  vtkGetMacro(SwapBytes,int);
150  vtkBooleanMacro(SwapBytes,int);
152 
154 
159  vtkGetObjectMacro(Locator,vtkIncrementalPointLocator);
161 
166 
171 
172 protected:
175 
177 
178  char *FileName;
184  int Normals;
185 
186 private:
187  vtkMCubesReader(const vtkMCubesReader&) VTK_DELETE_FUNCTION;
188  void operator=(const vtkMCubesReader&) VTK_DELETE_FUNCTION;
189 };
190 
191 #endif
vtkMCubesReader::New
static vtkMCubesReader * New()
Construct object with FlipNormals turned off and Normals set to true.
VTK_INT_MAX
#define VTK_INT_MAX
Definition: vtkType.h:153
vtkMCubesReader::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
vtkMCubesReader::Locator
vtkIncrementalPointLocator * Locator
Definition: vtkMCubesReader.h:180
vtkMCubesReader::GetDataByteOrderAsString
const char * GetDataByteOrderAsString()
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:42
vtkMCubesReader::SetDataByteOrderToLittleEndian
void SetDataByteOrderToLittleEndian()
vtkMCubesReader::GetDataByteOrder
int GetDataByteOrder()
vtkMCubesReader::SetDataByteOrderToBigEndian
void SetDataByteOrderToBigEndian()
These methods should be used instead of the SwapBytes methods.
vtkMCubesReader::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkMCubesReader::LimitsFileName
char * LimitsFileName
Definition: vtkMCubesReader.h:179
vtkMTimeType
vtkTypeUInt64 vtkMTimeType
Definition: vtkType.h:248
vtkPolyDataAlgorithm.h
vtkMCubesReader::vtkMCubesReader
vtkMCubesReader()
vtkMCubesReader::CreateDefaultLocator
void CreateDefaultLocator()
Create default locator.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkMCubesReader::HeaderSize
int HeaderSize
Definition: vtkMCubesReader.h:182
vtkMCubesReader::FileName
char * FileName
Definition: vtkMCubesReader.h:178
vtkIncrementalPointLocator
Abstract class in support of both point location and point insertion.
Definition: vtkIncrementalPointLocator.h:52
vtkMCubesReader::SwapBytes
int SwapBytes
Definition: vtkMCubesReader.h:181
vtkMCubesReader::GetMTime
vtkMTimeType GetMTime()
Return the mtime also considering the locator.
vtkGetStringMacro
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
vtkMCubesReader::SetDataByteOrder
void SetDataByteOrder(int)
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkMCubesReader
read binary marching cubes file
Definition: vtkMCubesReader.h:68
vtkMCubesReader::FlipNormals
int FlipNormals
Definition: vtkMCubesReader.h:183
vtkMCubesReader::SetLocator
void SetLocator(vtkIncrementalPointLocator *locator)
Set / get a spatial locator for merging points.
vtkMCubesReader::~vtkMCubesReader
~vtkMCubesReader()
vtkMCubesReader::Normals
int Normals
Definition: vtkMCubesReader.h:184
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:45