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

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 =========================================================================*/
00052 #ifndef __vtkRecursiveDividingCubes_h
00053 #define __vtkRecursiveDividingCubes_h
00054 
00055 #include "vtkStructuredPointsToPolyDataFilter.h"
00056 
00057 class vtkVoxel;
00058 
00059 class VTK_GRAPHICS_EXPORT vtkRecursiveDividingCubes : public vtkStructuredPointsToPolyDataFilter
00060 {
00061 public:
00062   static vtkRecursiveDividingCubes *New();
00063   vtkTypeRevisionMacro(vtkRecursiveDividingCubes,vtkStructuredPointsToPolyDataFilter);
00064   void PrintSelf(ostream& os, vtkIndent indent);
00065 
00067 
00068   vtkSetMacro(Value,double);
00069   vtkGetMacro(Value,double);
00071 
00073 
00074   vtkSetClampMacro(Distance,double,1.0e-06,VTK_DOUBLE_MAX);
00075   vtkGetMacro(Distance,double);
00077 
00079 
00082   vtkSetClampMacro(Increment,int,1,VTK_LARGE_INTEGER);
00083   vtkGetMacro(Increment,int);
00085 
00086 protected:
00087   vtkRecursiveDividingCubes();
00088   ~vtkRecursiveDividingCubes();
00089 
00090   void Execute();
00091   void SubDivide(double origin[3], double h[3], double values[8]);
00092 
00093   double Value;
00094   double Distance;
00095   int Increment;
00096 
00097   // working variable
00098   int Count;
00099   
00100   // to replace a static
00101   vtkVoxel *Voxel;
00102 private:
00103   vtkRecursiveDividingCubes(const vtkRecursiveDividingCubes&); // Not implemented.
00104   void operator=(const vtkRecursiveDividingCubes&);  // Not implemented.
00105 };
00106 
00107 #endif
00108 
00109