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 "vtkCommonDataModelModule.h" // For export macro
46 #include "vtkImplicitFunction.h"
47 
48 class vtkDataSet;
49 
51 {
52 public:
54  void PrintSelf(ostream& os, vtkIndent indent);
55 
58  static vtkImplicitDataSet *New();
59 
61  unsigned long GetMTime();
62 
64 
66  double EvaluateFunction(double x[3]);
67  double EvaluateFunction(double x, double y, double z)
68  {return this->vtkImplicitFunction::EvaluateFunction(x, y, z); } ;
70 
72  void EvaluateGradient(double x[3], double n[3]);
73 
75 
76  virtual void SetDataSet(vtkDataSet*);
77  vtkGetObjectMacro(DataSet,vtkDataSet);
79 
81 
83  vtkSetMacro(OutValue,double);
84  vtkGetMacro(OutValue,double);
86 
88 
90  vtkSetVector3Macro(OutGradient,double);
91  vtkGetVector3Macro(OutGradient,double);
93 
94 protected:
97 
99 
101  double OutValue;
102  double OutGradient[3];
103 
104  double *Weights; //used to compute interpolation weights
105  int Size; //keeps track of length of weights array
106 
107 private:
108  vtkImplicitDataSet(const vtkImplicitDataSet&); // Not implemented.
109  void operator=(const vtkImplicitDataSet&); // Not implemented.
110 };
111 
112 #endif
113 
114 
abstract interface for implicit functions
virtual double EvaluateFunction(double x[3])=0
double EvaluateFunction(double x, double y, double z)
abstract class to specify dataset behavior
Definition: vtkDataSet.h:61
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:38
virtual void ReportReferences(vtkGarbageCollector *)
treat a dataset as if it were an implicit function
void PrintSelf(ostream &os, vtkIndent indent)
static vtkObject * New()
#define VTKCOMMONDATAMODEL_EXPORT