Filtering/vtkImplicitDataSet.h Source File

Main Page Class Hierarchy Alphabetical List Compound List File List Compound 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 =========================================================================*/
    00059 #ifndef __vtkImplicitDataSet_h
    00060 #define __vtkImplicitDataSet_h
    00061
    00062 #include "vtkImplicitFunction.h"
    00063
    00064 class vtkDataSet;
    00065
    00066 class VTK_FILTERING_EXPORT vtkImplicitDataSet : public vtkImplicitFunction
    00067 {
    00068 public:
    00069   vtkTypeRevisionMacro(vtkImplicitDataSet,vtkImplicitFunction);
    00070   void PrintSelf(ostream& os, vtkIndent indent);
    00071
    00074   static vtkImplicitDataSet *New();
    00075
    00077   unsigned long GetMTime();
    00078
    00080
    00082   float EvaluateFunction(float x[3]);
    00083   float EvaluateFunction(float x, float y, float z)
    00084     {return this->vtkImplicitFunction::EvaluateFunction(x, y, z); } ;
    00086
    00088   void EvaluateGradient(float x[3], float n[3]);
    00089
    00091
    00092   virtual void SetDataSet(vtkDataSet*);
    00093   vtkGetObjectMacro(DataSet,vtkDataSet);
    00095
    00097
    00099   vtkSetMacro(OutValue,float);
    00100   vtkGetMacro(OutValue,float);
    00102
    00104
    00106   vtkSetVector3Macro(OutGradient,float);
    00107   vtkGetVector3Macro(OutGradient,float);
    00109
    00110 protected:
    00111   vtkImplicitDataSet();
    00112   ~vtkImplicitDataSet();
    00113
    00114   vtkDataSet *DataSet;
    00115   float OutValue;
    00116   float OutGradient[3];
    00117
    00118   float *Weights; //used to compute interpolation weights
    00119   int Size; //keeps track of length of weights array
    00120
    00121 private:
    00122   vtkImplicitDataSet(const vtkImplicitDataSet&);  // Not implemented.
    00123   void operator=(const vtkImplicitDataSet&);  // Not implemented.
    00124 };
    00125
    00126 #endif
    00127
    00128