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) override;
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,vtkTypeBool);
110  vtkGetMacro(FlipNormals,vtkTypeBool);
111  vtkBooleanMacro(FlipNormals,vtkTypeBool);
113 
115 
118  vtkSetMacro(Normals,vtkTypeBool);
119  vtkGetMacro(Normals,vtkTypeBool);
120  vtkBooleanMacro(Normals,vtkTypeBool);
122 
124 
137  void SetDataByteOrderToBigEndian();
138  void SetDataByteOrderToLittleEndian();
139  int GetDataByteOrder();
140  void SetDataByteOrder(int);
141  const char *GetDataByteOrderAsString();
143 
145 
148  vtkSetMacro(SwapBytes,vtkTypeBool);
149  vtkGetMacro(SwapBytes,vtkTypeBool);
150  vtkBooleanMacro(SwapBytes,vtkTypeBool);
152 
154 
158  void SetLocator(vtkIncrementalPointLocator *locator);
159  vtkGetObjectMacro(Locator,vtkIncrementalPointLocator);
161 
165  void CreateDefaultLocator();
166 
170  vtkMTimeType GetMTime() override;
171 
172 protected:
173  vtkMCubesReader();
174  ~vtkMCubesReader() override;
175 
177 
178  char *FileName;
185 
186 private:
187  vtkMCubesReader(const vtkMCubesReader&) = delete;
188  void operator=(const vtkMCubesReader&) = delete;
189 };
190 
191 #endif
Store vtkAlgorithm input/output information.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:302
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkTypeBool SwapBytes
#define VTK_INT_MAX
Definition: vtkType.h:159
Abstract class in support of both point location and point insertion.
vtkIncrementalPointLocator * Locator
vtkTypeBool FlipNormals
static vtkPolyDataAlgorithm * New()
int vtkTypeBool
Definition: vtkABI.h:69
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:39
virtual vtkMTimeType GetMTime()
Return this object's modified time.
vtkTypeBool Normals
read binary marching cubes file
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.