Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

Graphics/vtkRecursiveDividingCubes.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkRecursiveDividingCubes.h,v $
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00039 #ifndef __vtkRecursiveDividingCubes_h
00040 #define __vtkRecursiveDividingCubes_h
00041 
00042 #include "vtkStructuredPointsToPolyDataFilter.h"
00043 
00044 class vtkVoxel;
00045 
00046 class VTK_GRAPHICS_EXPORT vtkRecursiveDividingCubes : public vtkStructuredPointsToPolyDataFilter
00047 {
00048 public:
00049   static vtkRecursiveDividingCubes *New();
00050   vtkTypeRevisionMacro(vtkRecursiveDividingCubes,vtkStructuredPointsToPolyDataFilter);
00051   void PrintSelf(ostream& os, vtkIndent indent);
00052 
00054 
00055   vtkSetMacro(Value,double);
00056   vtkGetMacro(Value,double);
00058 
00060 
00061   vtkSetClampMacro(Distance,double,1.0e-06,VTK_DOUBLE_MAX);
00062   vtkGetMacro(Distance,double);
00064 
00066 
00069   vtkSetClampMacro(Increment,int,1,VTK_LARGE_INTEGER);
00070   vtkGetMacro(Increment,int);
00072 
00073 protected:
00074   vtkRecursiveDividingCubes();
00075   ~vtkRecursiveDividingCubes();
00076 
00077   void Execute();
00078   void SubDivide(double origin[3], double h[3], double values[8]);
00079 
00080   double Value;
00081   double Distance;
00082   int Increment;
00083 
00084   // working variable
00085   int Count;
00086   
00087   // to replace a static
00088   vtkVoxel *Voxel;
00089 private:
00090   vtkRecursiveDividingCubes(const vtkRecursiveDividingCubes&); // Not implemented.
00091   void operator=(const vtkRecursiveDividingCubes&);  // Not implemented.
00092 };
00093 
00094 #endif
00095 
00096