Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | 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   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 =========================================================================*/
00034 #ifndef __vtkVoxelModeller_h
00035 #define __vtkVoxelModeller_h
00036 
00037 #include "vtkDataSetToImageFilter.h"
00038 
00039 class VTK_IMAGING_EXPORT vtkVoxelModeller : public vtkDataSetToImageFilter 
00040 {
00041 public:
00042   vtkTypeRevisionMacro(vtkVoxelModeller,vtkDataSetToImageFilter);
00043   void PrintSelf(ostream& os, vtkIndent indent);
00044 
00050   static vtkVoxelModeller *New();
00051 
00053   float ComputeModelBounds(float origin[3], float ar[3]);
00054 
00056   void SetSampleDimensions(int i, int j, int k);
00057 
00059 
00060   void SetSampleDimensions(int dim[3]);
00061   vtkGetVectorMacro(SampleDimensions,int,3);
00063 
00065 
00067   vtkSetClampMacro(MaximumDistance,float,0.0,1.0);
00068   vtkGetMacro(MaximumDistance,float);
00070 
00072 
00073   void SetModelBounds(float bounds[6]);
00074   void SetModelBounds(float xmin, float xmax, float ymin, float ymax, float zmin, float zmax);
00075   vtkGetVectorMacro(ModelBounds,float,6);
00077 
00079   void Write(char *);
00080 
00081 protected:
00082   vtkVoxelModeller();
00083   ~vtkVoxelModeller() {};
00084 
00085   
00086   virtual void ExecuteInformation();
00087   virtual void ExecuteData(vtkDataObject *);
00088 
00089   int SampleDimensions[3];
00090   float MaximumDistance;
00091   float ModelBounds[6];
00092 private:
00093   vtkVoxelModeller(const vtkVoxelModeller&);  // Not implemented.
00094   void operator=(const vtkVoxelModeller&);  // Not implemented.
00095 };
00096 
00097 #endif