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 =========================================================================*/
39 #ifndef __vtkRecursiveDividingCubes_h
40 #define __vtkRecursiveDividingCubes_h
41 
42 #include "vtkPolyDataAlgorithm.h"
43 
44 class vtkVoxel;
45 
47 {
48 public:
51  void PrintSelf(ostream& os, vtkIndent indent);
52 
54 
55  vtkSetMacro(Value,double);
56  vtkGetMacro(Value,double);
58 
60 
61  vtkSetClampMacro(Distance,double,1.0e-06,VTK_DOUBLE_MAX);
62  vtkGetMacro(Distance,double);
64 
66 
69  vtkSetClampMacro(Increment,int,1,VTK_LARGE_INTEGER);
70  vtkGetMacro(Increment,int);
72 
73 protected:
76 
79  void SubDivide(double origin[3], double h[3], double values[8]);
80 
81  double Value;
82  double Distance;
83  int Increment;
84 
85  // working variable
86  int Count;
87 
88  // to replace a static
90 private:
91  vtkRecursiveDividingCubes(const vtkRecursiveDividingCubes&); // Not implemented.
92  void operator=(const vtkRecursiveDividingCubes&); // Not implemented.
93 };
94 
95 #endif
#define VTK_GRAPHICS_EXPORT
virtual int FillInputPortInformation(int port, vtkInformation *info)
#define VTK_DOUBLE_MAX
Definition: vtkType.h:133
create points lying on isosurface (using recursive approach)
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
static vtkPolyDataAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent)
Superclass for algorithms that produce only polydata as output.
a cell that represents a 3D orthogonal parallelepiped
Definition: vtkVoxel.h:42
a simple class to control print indentation
Definition: vtkIndent.h:37
Store zero or more vtkInformation instances.
#define VTK_LARGE_INTEGER
Definition: vtkType.h:148