VTK
dox/Common/DataModel/vtkImplicitDataSet.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkImplicitDataSet.h
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 =========================================================================*/
00042 #ifndef __vtkImplicitDataSet_h
00043 #define __vtkImplicitDataSet_h
00044 
00045 #include "vtkCommonDataModelModule.h" // For export macro
00046 #include "vtkImplicitFunction.h"
00047 
00048 class vtkDataSet;
00049 
00050 class VTKCOMMONDATAMODEL_EXPORT vtkImplicitDataSet : public vtkImplicitFunction
00051 {
00052 public:
00053   vtkTypeMacro(vtkImplicitDataSet,vtkImplicitFunction);
00054   void PrintSelf(ostream& os, vtkIndent indent);
00055 
00058   static vtkImplicitDataSet *New();
00059 
00061   unsigned long GetMTime();
00062 
00064 
00066   double EvaluateFunction(double x[3]);
00067   double EvaluateFunction(double x, double y, double z)
00068     {return this->vtkImplicitFunction::EvaluateFunction(x, y, z); } ;
00070 
00072   void EvaluateGradient(double x[3], double n[3]);
00073 
00075 
00076   virtual void SetDataSet(vtkDataSet*);
00077   vtkGetObjectMacro(DataSet,vtkDataSet);
00079 
00081 
00083   vtkSetMacro(OutValue,double);
00084   vtkGetMacro(OutValue,double);
00086 
00088 
00090   vtkSetVector3Macro(OutGradient,double);
00091   vtkGetVector3Macro(OutGradient,double);
00093 
00094 protected:
00095   vtkImplicitDataSet();
00096   ~vtkImplicitDataSet();
00097 
00098   virtual void ReportReferences(vtkGarbageCollector*);
00099 
00100   vtkDataSet *DataSet;
00101   double OutValue;
00102   double OutGradient[3];
00103 
00104   double *Weights; //used to compute interpolation weights
00105   int Size; //keeps track of length of weights array
00106 
00107 private:
00108   vtkImplicitDataSet(const vtkImplicitDataSet&);  // Not implemented.
00109   void operator=(const vtkImplicitDataSet&);  // Not implemented.
00110 };
00111 
00112 #endif
00113 
00114