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

Imaging/vtkVoxelModeller.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkVoxelModeller.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 =========================================================================*/
00047 #ifndef __vtkVoxelModeller_h
00048 #define __vtkVoxelModeller_h
00049 
00050 #include "vtkDataSetToImageFilter.h"
00051 
00052 class VTK_IMAGING_EXPORT vtkVoxelModeller : public vtkDataSetToImageFilter 
00053 {
00054 public:
00055   vtkTypeRevisionMacro(vtkVoxelModeller,vtkDataSetToImageFilter);
00056   void PrintSelf(ostream& os, vtkIndent indent);
00057 
00063   static vtkVoxelModeller *New();
00064 
00066   float ComputeModelBounds(float origin[3], float ar[3]);
00067 
00069   void SetSampleDimensions(int i, int j, int k);
00070 
00072 
00073   void SetSampleDimensions(int dim[3]);
00074   vtkGetVectorMacro(SampleDimensions,int,3);
00076 
00078 
00080   vtkSetClampMacro(MaximumDistance,float,0.0,1.0);
00081   vtkGetMacro(MaximumDistance,float);
00083 
00085 
00086   void SetModelBounds(float bounds[6]);
00087   void SetModelBounds(float xmin, float xmax, float ymin, float ymax, float zmin, float zmax);
00088   vtkGetVectorMacro(ModelBounds,float,6);
00090 
00092   void Write(char *);
00093 
00094 protected:
00095   vtkVoxelModeller();
00096   ~vtkVoxelModeller() {};
00097 
00098   
00099   virtual void ExecuteInformation();
00100   virtual void ExecuteData(vtkDataObject *);
00101 
00102   int SampleDimensions[3];
00103   float MaximumDistance;
00104   float ModelBounds[6];
00105 private:
00106   vtkVoxelModeller(const vtkVoxelModeller&);  // Not implemented.
00107   void operator=(const vtkVoxelModeller&);  // Not implemented.
00108 };
00109 
00110 #endif