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

Filtering/vtkImplicitDataSet.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkImplicitDataSet.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 =========================================================================*/
00058 #ifndef __vtkImplicitDataSet_h
00059 #define __vtkImplicitDataSet_h
00060 
00061 #include "vtkImplicitFunction.h"
00062 
00063 class vtkDataSet;
00064 
00065 class VTK_FILTERING_EXPORT vtkImplicitDataSet : public vtkImplicitFunction
00066 {
00067 public:
00068   vtkTypeRevisionMacro(vtkImplicitDataSet,vtkImplicitFunction);
00069   void PrintSelf(ostream& os, vtkIndent indent);
00070 
00073   static vtkImplicitDataSet *New();
00074 
00076   unsigned long GetMTime();
00077 
00079 
00081   float EvaluateFunction(float x[3]);
00082   float EvaluateFunction(float x, float y, float z)
00083     {return this->vtkImplicitFunction::EvaluateFunction(x, y, z); } ;
00085 
00087   void EvaluateGradient(float x[3], float n[3]);
00088 
00090 
00091   virtual void SetDataSet(vtkDataSet*);
00092   vtkGetObjectMacro(DataSet,vtkDataSet);
00094 
00096 
00098   vtkSetMacro(OutValue,float);
00099   vtkGetMacro(OutValue,float);
00101 
00103 
00105   vtkSetVector3Macro(OutGradient,float);
00106   vtkGetVector3Macro(OutGradient,float);
00108 
00109 protected:
00110   vtkImplicitDataSet();
00111   ~vtkImplicitDataSet();
00112 
00113   vtkDataSet *DataSet;
00114   float OutValue;
00115   float OutGradient[3];
00116 
00117   float *Weights; //used to compute interpolation weights
00118   int Size; //keeps track of length of weights array
00119 
00120 private:
00121   vtkImplicitDataSet(const vtkImplicitDataSet&);  // Not implemented.
00122   void operator=(const vtkImplicitDataSet&);  // Not implemented.
00123 };
00124 
00125 #endif
00126 
00127