VTK  9.0.20210301
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
VTK_INT_MAX
#define VTK_INT_MAX
Definition: vtkType.h:155
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:36
vtkRecursiveDividingCubes::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkPolyDataAlgorithm.h
vtkX3D::port
@ port
Definition: vtkX3D.h:453
vtkRecursiveDividingCubes::Value
double Value
Definition: vtkRecursiveDividingCubes.h:86
vtkRecursiveDividingCubes
create points laying on isosurface (using recursive approach)
Definition: vtkRecursiveDividingCubes.h:46
vtkRecursiveDividingCubes::Voxel
vtkVoxel * Voxel
Definition: vtkRecursiveDividingCubes.h:94
vtkRecursiveDividingCubes::Count
int Count
Definition: vtkRecursiveDividingCubes.h:91
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:34
vtkRecursiveDividingCubes::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkRecursiveDividingCubes::vtkRecursiveDividingCubes
vtkRecursiveDividingCubes()
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:74
vtkX3D::info
@ info
Definition: vtkX3D.h:382
vtkRecursiveDividingCubes::~vtkRecursiveDividingCubes
~vtkRecursiveDividingCubes() override
vtkRecursiveDividingCubes::New
static vtkRecursiveDividingCubes * New()
vtkRecursiveDividingCubes::Increment
int Increment
Definition: vtkRecursiveDividingCubes.h:88
vtkRecursiveDividingCubes::Distance
double Distance
Definition: vtkRecursiveDividingCubes.h:87
vtkRecursiveDividingCubes::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
VTK_DOUBLE_MAX
#define VTK_DOUBLE_MAX
Definition: vtkType.h:165
h
vtkFrustumSelector is a vtkSelector that selects elements based on whether they are inside or interse...
vtkRecursiveDividingCubes::SubDivide
void SubDivide(double origin[3], double h[3], double values[8])
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:42
vtkVoxel
a cell that represents a 3D orthogonal parallelepiped
Definition: vtkVoxel.h:39