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

Filtering/vtkImplicitVolume.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkImplicitVolume.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 =========================================================================*/
00057 #ifndef __vtkImplicitVolume_h
00058 #define __vtkImplicitVolume_h
00059 
00060 #include "vtkImplicitFunction.h"
00061 
00062 class vtkIdList;
00063 class vtkImageData;
00064 
00065 class VTK_FILTERING_EXPORT vtkImplicitVolume : public vtkImplicitFunction
00066 {
00067 public:
00068   vtkTypeRevisionMacro(vtkImplicitVolume,vtkImplicitFunction);
00069   void PrintSelf(ostream& os, vtkIndent indent);
00070 
00073   static vtkImplicitVolume *New();
00074 
00078   unsigned long GetMTime();
00079 
00081 
00083   float EvaluateFunction(float x[3]);
00084   float EvaluateFunction(float x, float y, float z)
00085     {return this->vtkImplicitFunction::EvaluateFunction(x, y, z); } ;
00087 
00089   void EvaluateGradient(float x[3], float n[3]);
00090 
00092 
00093   virtual void SetVolume(vtkImageData*);
00094   vtkGetObjectMacro(Volume,vtkImageData);
00096 
00098 
00099   vtkSetMacro(OutValue,float);
00100   vtkGetMacro(OutValue,float);
00102 
00104 
00105   vtkSetVector3Macro(OutGradient,float);
00106   vtkGetVector3Macro(OutGradient,float);
00108 
00109 protected:
00110   vtkImplicitVolume();
00111   ~vtkImplicitVolume();
00112 
00113   vtkImageData *Volume; // the structured points
00114   float OutValue;
00115   float OutGradient[3];
00116   // to replace a static
00117   vtkIdList *PointIds;
00118 
00119 private:
00120   vtkImplicitVolume(const vtkImplicitVolume&);  // Not implemented.
00121   void operator=(const vtkImplicitVolume&);  // Not implemented.
00122 };
00123 
00124 #endif
00125 
00126