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 =========================================================================*/
00046 #ifndef __vtkImplicitDataSet_h
00047 #define __vtkImplicitDataSet_h
00048 
00049 #include "vtkImplicitFunction.h"
00050 
00051 class vtkDataSet;
00052 
00053 class VTK_FILTERING_EXPORT vtkImplicitDataSet : public vtkImplicitFunction
00054 {
00055 public:
00056   vtkTypeRevisionMacro(vtkImplicitDataSet,vtkImplicitFunction);
00057   void PrintSelf(ostream& os, vtkIndent indent);
00058 
00061   static vtkImplicitDataSet *New();
00062 
00064   unsigned long GetMTime();
00065 
00067 
00069   float EvaluateFunction(float x[3]);
00070   float EvaluateFunction(float x, float y, float z)
00071     {return this->vtkImplicitFunction::EvaluateFunction(x, y, z); } ;
00073 
00075   void EvaluateGradient(float x[3], float n[3]);
00076 
00078 
00079   virtual void SetDataSet(vtkDataSet*);
00080   vtkGetObjectMacro(DataSet,vtkDataSet);
00082 
00084 
00086   vtkSetMacro(OutValue,float);
00087   vtkGetMacro(OutValue,float);
00089 
00091 
00093   vtkSetVector3Macro(OutGradient,float);
00094   vtkGetVector3Macro(OutGradient,float);
00096 
00097 protected:
00098   vtkImplicitDataSet();
00099   ~vtkImplicitDataSet();
00100 
00101   vtkDataSet *DataSet;
00102   float OutValue;
00103   float OutGradient[3];
00104 
00105   float *Weights; //used to compute interpolation weights
00106   int Size; //keeps track of length of weights array
00107 
00108 private:
00109   vtkImplicitDataSet(const vtkImplicitDataSet&);  // Not implemented.
00110   void operator=(const vtkImplicitDataSet&);  // Not implemented.
00111 };
00112 
00113 #endif
00114 
00115