VTK
vtkImplicitVolume.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImplicitVolume.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 =========================================================================*/
39 #ifndef __vtkImplicitVolume_h
40 #define __vtkImplicitVolume_h
41 
42 #include "vtkImplicitFunction.h"
43 
44 class vtkIdList;
45 class vtkImageData;
46 
48 {
49 public:
51  void PrintSelf(ostream& os, vtkIndent indent);
52 
55  static vtkImplicitVolume *New();
56 
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 SetVolume(vtkImageData*);
76  vtkGetObjectMacro(Volume,vtkImageData);
78 
80 
81  vtkSetMacro(OutValue,double);
82  vtkGetMacro(OutValue,double);
84 
86 
87  vtkSetVector3Macro(OutGradient,double);
88  vtkGetVector3Macro(OutGradient,double);
90 
91 protected:
94 
95  vtkImageData *Volume; // the structured points
96  double OutValue;
97  double OutGradient[3];
98  // to replace a static
100 
101 private:
102  vtkImplicitVolume(const vtkImplicitVolume&); // Not implemented.
103  void operator=(const vtkImplicitVolume&); // Not implemented.
104 };
105 
106 #endif
107 
108 
abstract interface for implicit functions
virtual double EvaluateFunction(double x[3])=0
#define VTK_FILTERING_EXPORT
unsigned long GetMTime()
virtual void EvaluateGradient(double x[3], double g[3])=0
a simple class to control print indentation
Definition: vtkIndent.h:37
topologically and geometrically regular array of data
Definition: vtkImageData.h:43
list of point or cell ids
Definition: vtkIdList.h:34
vtkImageData * Volume
double EvaluateFunction(double x, double y, double z)
void PrintSelf(ostream &os, vtkIndent indent)
static vtkObject * New()
treat a volume as if it were an implicit function