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 "vtkCommonDataModelModule.h" // For export macro
43 #include "vtkImplicitFunction.h"
44 
45 class vtkIdList;
46 class vtkImageData;
47 
49 {
50 public:
52  void PrintSelf(ostream& os, vtkIndent indent);
53 
57 
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 SetVolume(vtkImageData*);
79 
81 
82  vtkSetMacro(OutValue,double);
83  vtkGetMacro(OutValue,double);
85 
87 
88  vtkSetVector3Macro(OutGradient,double);
89  vtkGetVector3Macro(OutGradient,double);
91 
92 protected:
95 
96  vtkImageData *Volume; // the structured points
97  double OutValue;
98  double OutGradient[3];
99  // to replace a static
101 
102 private:
103  vtkImplicitVolume(const vtkImplicitVolume&); // Not implemented.
104  void operator=(const vtkImplicitVolume&); // Not implemented.
105 };
106 
107 #endif
108 
109 
vtkImplicitVolume::PointIds
vtkIdList * PointIds
Definition: vtkImplicitVolume.h:100
vtkgl::z
GLdouble GLdouble z
Definition: vtkgl.h:11754
vtkGetObjectMacro
#define vtkGetObjectMacro(name, type)
Definition: vtkSetGet.h:232
vtkSetVector3Macro
#define vtkSetVector3Macro(name, type)
Definition: vtkSetGet.h:287
vtkCommonDataModelModule.h
vtkImplicitFunction::EvaluateFunction
virtual double EvaluateFunction(double x[3])=0
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkgl::n
GLclampd n
Definition: vtkgl.h:14370
vtkgl::x
GLint GLint GLint GLint GLint x
Definition: vtkgl.h:11318
vtkImplicitVolume::Volume
vtkImageData * Volume
Definition: vtkImplicitVolume.h:96
vtkImplicitFunction
abstract interface for implicit functions
Definition: vtkImplicitFunction.h:58
vtkGetVector3Macro
#define vtkGetVector3Macro(name, type)
Definition: vtkSetGet.h:304
vtkImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:45
vtkImplicitVolume::EvaluateFunction
double EvaluateFunction(double x, double y, double z)
Definition: vtkImplicitVolume.h:67
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkIdList
list of point or cell ids
Definition: vtkIdList.h:36
vtkImplicitVolume::SetVolume
virtual void SetVolume(vtkImageData *)
vtkImplicitVolume::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkImplicitVolume::vtkImplicitVolume
vtkImplicitVolume()
vtkImplicitVolume::New
static vtkImplicitVolume * New()
vtkImplicitVolume::~vtkImplicitVolume
~vtkImplicitVolume()
vtkgl::y
GLint GLint GLint GLint GLint GLint y
Definition: vtkgl.h:11318
vtkImplicitVolume
treat a volume as if it were an implicit function
Definition: vtkImplicitVolume.h:49
vtkImplicitVolume::GetMTime
unsigned long GetMTime()
vtkImplicitVolume::EvaluateGradient
void EvaluateGradient(double x[3], double n[3])
vtkImplicitFunction.h
VTKCOMMONDATAMODEL_EXPORT
#define VTKCOMMONDATAMODEL_EXPORT
Definition: vtkCommonDataModelModule.h:15
vtkImplicitVolume::EvaluateFunction
double EvaluateFunction(double x[3])
vtkImplicitVolume::OutValue
double OutValue
Definition: vtkImplicitVolume.h:97