VTK  9.0.1
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 =========================================================================*/
37 #ifndef vtkRecursiveDividingCubes_h
38 #define vtkRecursiveDividingCubes_h
39 
40 #include "vtkFiltersGeneralModule.h" // For export macro
41 #include "vtkPolyDataAlgorithm.h"
42 
43 class vtkVoxel;
44 
45 class VTKFILTERSGENERAL_EXPORT vtkRecursiveDividingCubes : public vtkPolyDataAlgorithm
46 {
47 public:
50  void PrintSelf(ostream& os, vtkIndent indent) override;
51 
53 
56  vtkSetMacro(Value, double);
57  vtkGetMacro(Value, double);
59 
61 
64  vtkSetClampMacro(Distance, double, 1.0e-06, VTK_DOUBLE_MAX);
65  vtkGetMacro(Distance, double);
67 
69 
74  vtkSetClampMacro(Increment, int, 1, VTK_INT_MAX);
75  vtkGetMacro(Increment, int);
77 
78 protected:
81 
84  void SubDivide(double origin[3], double h[3], double values[8]);
85 
86  double Value;
87  double Distance;
88  int Increment;
89 
90  // working variable
91  int Count;
92 
93  // to replace a static
95 
96 private:
98  void operator=(const vtkRecursiveDividingCubes&) = delete;
99 };
100 
101 #endif
vtkFrustumSelector is a vtkSelector that selects elements based on whether they are inside or interse...
a simple class to control print indentation
Definition: vtkIndent.h:34
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.
void SubDivide(double origin[3], double h[3], double values[8])
static vtkRecursiveDividingCubes * New()
a cell that represents a 3D orthogonal parallelepiped
Definition: vtkVoxel.h:39
@ info
Definition: vtkX3D.h:382
@ port
Definition: vtkX3D.h:453
#define VTK_DOUBLE_MAX
Definition: vtkType.h:165
#define VTK_INT_MAX
Definition: vtkType.h:155