VTK  9.2.6
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=========================================================================*/
85#ifndef vtkMCubesReader_h
86#define vtkMCubesReader_h
87
88#include "vtkIOGeometryModule.h" // For export macro
90
91#define VTK_FILE_BYTE_ORDER_BIG_ENDIAN 0
92#define VTK_FILE_BYTE_ORDER_LITTLE_ENDIAN 1
93
95
96class VTKIOGEOMETRY_EXPORT vtkMCubesReader : public vtkPolyDataAlgorithm
97{
98public:
100 void PrintSelf(ostream& os, vtkIndent indent) override;
101
106
108
114
116
119 vtkSetFilePathMacro(LimitsFileName);
120 vtkGetFilePathMacro(LimitsFileName);
122
124
127 vtkSetClampMacro(HeaderSize, int, 0, VTK_INT_MAX);
128 vtkGetMacro(HeaderSize, int);
130
132
138 vtkSetMacro(FlipNormals, vtkTypeBool);
139 vtkGetMacro(FlipNormals, vtkTypeBool);
140 vtkBooleanMacro(FlipNormals, vtkTypeBool);
142
144
147 vtkSetMacro(Normals, vtkTypeBool);
148 vtkGetMacro(Normals, vtkTypeBool);
149 vtkBooleanMacro(Normals, vtkTypeBool);
151
153
172
174
177 vtkSetMacro(SwapBytes, vtkTypeBool);
178 vtkGetMacro(SwapBytes, vtkTypeBool);
179 vtkBooleanMacro(SwapBytes, vtkTypeBool);
181
183
188 vtkGetObjectMacro(Locator, vtkIncrementalPointLocator);
190
195
200
201protected:
204
206
207 char* FileName;
214
215private:
216 vtkMCubesReader(const vtkMCubesReader&) = delete;
217 void operator=(const vtkMCubesReader&) = delete;
218};
219
220#endif
Abstract class in support of both point location and point insertion.
a simple class to control print indentation
Definition: vtkIndent.h:119
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
read binary marching cubes file
vtkMTimeType GetMTime() override
Return the mtime also considering the locator.
vtkGetFilePathMacro(FileName)
Specify file name of marching cubes file.
void CreateDefaultLocator()
Create default locator.
vtkIncrementalPointLocator * Locator
const char * GetDataByteOrderAsString()
These methods should be used instead of the SwapBytes methods.
int GetDataByteOrder()
These methods should be used instead of the SwapBytes methods.
static vtkMCubesReader * New()
Construct object with FlipNormals turned off and Normals set to true.
void SetDataByteOrder(int)
These methods should be used instead of the SwapBytes methods.
void SetDataByteOrderToLittleEndian()
These methods should be used instead of the SwapBytes methods.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkTypeBool SwapBytes
vtkGetFilePathMacro(LimitsFileName)
Set / get the file name of the marching cubes limits file.
vtkTypeBool FlipNormals
~vtkMCubesReader() override
vtkTypeBool Normals
vtkSetFilePathMacro(LimitsFileName)
Set / get the file name of the marching cubes limits file.
void SetLocator(vtkIncrementalPointLocator *locator)
Set / get a spatial locator for merging points.
void SetDataByteOrderToBigEndian()
These methods should be used instead of the SwapBytes methods.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkSetFilePathMacro(FileName)
Specify file name of marching cubes file.
Superclass for algorithms that produce only polydata as output.
int vtkTypeBool
Definition: vtkABI.h:69
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287
#define VTK_INT_MAX
Definition: vtkType.h:155