VTK
vtkRecursiveDividingCubes.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkRecursiveDividingCubes.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=========================================================================*/
40#ifndef vtkRecursiveDividingCubes_h
41#define vtkRecursiveDividingCubes_h
42
43#include "vtkFiltersGeneralModule.h" // For export macro
45
46class vtkVoxel;
47
48class VTKFILTERSGENERAL_EXPORT vtkRecursiveDividingCubes : public vtkPolyDataAlgorithm
49{
50public:
53 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
54
56
59 vtkSetMacro(Value,double);
60 vtkGetMacro(Value,double);
62
64
67 vtkSetClampMacro(Distance,double,1.0e-06,VTK_DOUBLE_MAX);
68 vtkGetMacro(Distance,double);
70
72
77 vtkSetClampMacro(Increment,int,1,VTK_INT_MAX);
78 vtkGetMacro(Increment,int);
80
81protected:
84
85 int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) VTK_OVERRIDE;
86 int FillInputPortInformation(int port, vtkInformation *info) VTK_OVERRIDE;
87 void SubDivide(double origin[3], double h[3], double values[8]);
88
89 double Value;
90 double Distance;
91 int Increment;
92
93 // working variable
94 int Count;
95
96 // to replace a static
97 vtkVoxel *Voxel;
98private:
99 vtkRecursiveDividingCubes(const vtkRecursiveDividingCubes&) VTK_DELETE_FUNCTION;
100 void operator=(const vtkRecursiveDividingCubes&) VTK_DELETE_FUNCTION;
101};
102
103#endif
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only polydata as output.
create points laying on isosurface (using recursive approach)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkRecursiveDividingCubes() override
static vtkRecursiveDividingCubes * New()
a cell that represents a 3D orthogonal parallelepiped
Definition: vtkVoxel.h:45
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
#define VTK_DOUBLE_MAX
Definition: vtkType.h:163
#define VTK_INT_MAX
Definition: vtkType.h:153