VTK  9.3.1
vtkMCubesReader.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
44 #ifndef vtkMCubesReader_h
45 #define vtkMCubesReader_h
46 
47 #include "vtkIOGeometryModule.h" // For export macro
48 #include "vtkPolyDataAlgorithm.h"
49 
50 #define VTK_FILE_BYTE_ORDER_BIG_ENDIAN 0
51 #define VTK_FILE_BYTE_ORDER_LITTLE_ENDIAN 1
52 
53 VTK_ABI_NAMESPACE_BEGIN
55 
56 class VTKIOGEOMETRY_EXPORT vtkMCubesReader : public vtkPolyDataAlgorithm
57 {
58 public:
60  void PrintSelf(ostream& os, vtkIndent indent) override;
61 
65  static vtkMCubesReader* New();
66 
68 
71  vtkSetFilePathMacro(FileName);
72  vtkGetFilePathMacro(FileName);
74 
76 
79  vtkSetFilePathMacro(LimitsFileName);
80  vtkGetFilePathMacro(LimitsFileName);
82 
84 
87  vtkSetClampMacro(HeaderSize, int, 0, VTK_INT_MAX);
88  vtkGetMacro(HeaderSize, int);
90 
92 
98  vtkSetMacro(FlipNormals, vtkTypeBool);
99  vtkGetMacro(FlipNormals, vtkTypeBool);
100  vtkBooleanMacro(FlipNormals, vtkTypeBool);
102 
104 
107  vtkSetMacro(Normals, vtkTypeBool);
108  vtkGetMacro(Normals, vtkTypeBool);
109  vtkBooleanMacro(Normals, vtkTypeBool);
111 
113 
126  void SetDataByteOrderToBigEndian();
127  void SetDataByteOrderToLittleEndian();
128  int GetDataByteOrder();
129  void SetDataByteOrder(int);
130  const char* GetDataByteOrderAsString();
132 
134 
137  vtkSetMacro(SwapBytes, vtkTypeBool);
138  vtkGetMacro(SwapBytes, vtkTypeBool);
139  vtkBooleanMacro(SwapBytes, vtkTypeBool);
141 
143 
147  void SetLocator(vtkIncrementalPointLocator* locator);
148  vtkGetObjectMacro(Locator, vtkIncrementalPointLocator);
150 
154  void CreateDefaultLocator();
155 
159  vtkMTimeType GetMTime() override;
160 
161 protected:
162  vtkMCubesReader();
163  ~vtkMCubesReader() override;
164 
166 
167  char* FileName;
174 
175 private:
176  vtkMCubesReader(const vtkMCubesReader&) = delete;
177  void operator=(const vtkMCubesReader&) = delete;
178 };
179 
180 VTK_ABI_NAMESPACE_END
181 #endif
Store vtkAlgorithm input/output information.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:270
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkTypeBool SwapBytes
#define VTK_INT_MAX
Definition: vtkType.h:144
Abstract class in support of both point location and point insertion.
vtkIncrementalPointLocator * Locator
vtkTypeBool FlipNormals
static vtkPolyDataAlgorithm * New()
int vtkTypeBool
Definition: vtkABI.h:64
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:28
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.