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
44 #include "vtkPolyDataAlgorithm.h"
45 
46 class vtkVoxel;
47 
48 class VTKFILTERSGENERAL_EXPORT vtkRecursiveDividingCubes : public vtkPolyDataAlgorithm
49 {
50 public:
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 
81 protected:
83  ~vtkRecursiveDividingCubes() override;
84 
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
98 private:
100  void operator=(const vtkRecursiveDividingCubes&) = delete;
101 };
102 
103 #endif
#define VTK_DOUBLE_MAX
Definition: vtkType.h:169
create points laying on isosurface (using recursive approach)
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
#define VTK_INT_MAX
Definition: vtkType.h:159
static vtkPolyDataAlgorithm * New()
Superclass for algorithms that produce only polydata as output.
a cell that represents a 3D orthogonal parallelepiped
Definition: vtkVoxel.h:44
a simple class to control print indentation
Definition: vtkIndent.h:39
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
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.