Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound 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   Language:  C++
00006 
00007   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 
00008   All rights reserved.
00009   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00010 
00011      This software is distributed WITHOUT ANY WARRANTY; without even 
00012      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00013      PURPOSE.  See the above copyright notice for more information.
00014 
00015 =========================================================================*/
00056 #ifndef __vtkRecursiveDividingCubes_h
00057 #define __vtkRecursiveDividingCubes_h
00058 
00059 #include "vtkStructuredPointsToPolyDataFilter.h"
00060 
00061 class vtkVoxel;
00062 
00063 class VTK_GRAPHICS_EXPORT vtkRecursiveDividingCubes : public vtkStructuredPointsToPolyDataFilter
00064 {
00065 public:
00066   static vtkRecursiveDividingCubes *New();
00067   vtkTypeRevisionMacro(vtkRecursiveDividingCubes,vtkStructuredPointsToPolyDataFilter);
00068   void PrintSelf(ostream& os, vtkIndent indent);
00069 
00071 
00072   vtkSetMacro(Value,float);
00073   vtkGetMacro(Value,float);
00075 
00077 
00078   vtkSetClampMacro(Distance,float,1.0e-06,VTK_LARGE_FLOAT);
00079   vtkGetMacro(Distance,float);
00081 
00083 
00086   vtkSetClampMacro(Increment,int,1,VTK_LARGE_INTEGER);
00087   vtkGetMacro(Increment,int);
00089 
00090 protected:
00091   vtkRecursiveDividingCubes();
00092   ~vtkRecursiveDividingCubes();
00093 
00094   void Execute();
00095   void SubDivide(float origin[3], float h[3], float values[8]);
00096 
00097   float Value;
00098   float Distance;
00099   int Increment;
00100 
00101   // working variable
00102   int Count;
00103   
00104   // to replace a static
00105   vtkVoxel *Voxel;
00106 private:
00107   vtkRecursiveDividingCubes(const vtkRecursiveDividingCubes&);  // Not implemented.
00108   void operator=(const vtkRecursiveDividingCubes&);  // Not implemented.
00109 };
00110 
00111 #endif
00112 
00113