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) 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 
81 protected:
83  ~vtkRecursiveDividingCubes() VTK_OVERRIDE;
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;
98 private:
99  vtkRecursiveDividingCubes(const vtkRecursiveDividingCubes&) VTK_DELETE_FUNCTION;
100  void operator=(const vtkRecursiveDividingCubes&) VTK_DELETE_FUNCTION;
101 };
102 
103 #endif
#define VTK_DOUBLE_MAX
Definition: vtkType.h:163
create points laying on isosurface (using recursive approach)
Store vtkAlgorithm input/output information.
#define VTK_INT_MAX
Definition: vtkType.h:153
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
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
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.