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

vtkImplicitDataSet.h

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