VTK
vtkImplicitDataSet.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImplicitDataSet.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
42 #ifndef __vtkImplicitDataSet_h
43 #define __vtkImplicitDataSet_h
44 
45 #include "vtkImplicitFunction.h"
46 
47 class vtkDataSet;
48 
50 {
51 public:
53  void PrintSelf(ostream& os, vtkIndent indent);
54 
57  static vtkImplicitDataSet *New();
58 
60  unsigned long GetMTime();
61 
63 
65  double EvaluateFunction(double x[3]);
66  double EvaluateFunction(double x, double y, double z)
67  {return this->vtkImplicitFunction::EvaluateFunction(x, y, z); } ;
69 
71  void EvaluateGradient(double x[3], double n[3]);
72 
74 
75  virtual void SetDataSet(vtkDataSet*);
76  vtkGetObjectMacro(DataSet,vtkDataSet);
78 
80 
82  vtkSetMacro(OutValue,double);
83  vtkGetMacro(OutValue,double);
85 
87 
89  vtkSetVector3Macro(OutGradient,double);
90  vtkGetVector3Macro(OutGradient,double);
92 
93 protected:
96 
98 
100  double OutValue;
101  double OutGradient[3];
102 
103  double *Weights; //used to compute interpolation weights
104  int Size; //keeps track of length of weights array
105 
106 private:
107  vtkImplicitDataSet(const vtkImplicitDataSet&); // Not implemented.
108  void operator=(const vtkImplicitDataSet&); // Not implemented.
109 };
110 
111 #endif
112 
113 
abstract interface for implicit functions
virtual double EvaluateFunction(double x[3])=0
double EvaluateFunction(double x, double y, double z)
#define VTK_FILTERING_EXPORT
abstract class to specify dataset behavior
Definition: vtkDataSet.h:58
unsigned long GetMTime()
virtual void EvaluateGradient(double x[3], double g[3])=0
Detect and break reference loops.
a simple class to control print indentation
Definition: vtkIndent.h:37
virtual void ReportReferences(vtkGarbageCollector *)
treat a dataset as if it were an implicit function
void PrintSelf(ostream &os, vtkIndent indent)
static vtkObject * New()