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

vtkVoxelModeller.h

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