VTK  9.2.6
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) 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
86 int FillInputPortInformation(int port, vtkInformation* info) override;
87 void SubDivide(double origin[3], double h[3], double values[8]);
88
89 double Value;
90 double Distance;
92
93 // working variable
94 int Count;
95
96 // to replace a static
98
99private:
101 void operator=(const vtkRecursiveDividingCubes&) = delete;
102};
103
104#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.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
~vtkRecursiveDividingCubes() override
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
static vtkRecursiveDividingCubes * New()
void SubDivide(double origin[3], double h[3], double values[8])
Computes the portion of a dataset which is inside a selection.
a cell that represents a 3D orthogonal parallelepiped
Definition vtkVoxel.h:42
#define VTK_DOUBLE_MAX
Definition vtkType.h:165
#define VTK_INT_MAX
Definition vtkType.h:155