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 =========================================================================*/
40 #ifndef vtkImplicitVolume_h
41 #define vtkImplicitVolume_h
42 
43 #include "vtkCommonDataModelModule.h" // For export macro
44 #include "vtkImplicitFunction.h"
45 
46 class vtkIdList;
47 class vtkImageData;
48 
49 class VTKCOMMONDATAMODEL_EXPORT vtkImplicitVolume : public vtkImplicitFunction
50 {
51 public:
53  void PrintSelf(ostream& os, vtkIndent indent) override;
54 
59  static vtkImplicitVolume *New();
60 
66  vtkMTimeType GetMTime() override;
67 
69 
74  double EvaluateFunction(double x[3]) override;
76 
80  void EvaluateGradient(double x[3], double n[3]) override;
81 
83 
86  virtual void SetVolume(vtkImageData*);
87  vtkGetObjectMacro(Volume,vtkImageData);
89 
91 
94  vtkSetMacro(OutValue,double);
95  vtkGetMacro(OutValue,double);
97 
99 
102  vtkSetVector3Macro(OutGradient,double);
103  vtkGetVector3Macro(OutGradient,double);
105 
106 protected:
108  ~vtkImplicitVolume() override;
109 
110  vtkImageData *Volume; // the structured points
111  double OutValue;
112  double OutGradient[3];
113  // to replace a static
115 
116 private:
117  vtkImplicitVolume(const vtkImplicitVolume&) = delete;
118  void operator=(const vtkImplicitVolume&) = delete;
119 };
120 
121 #endif
122 
123 
vtkImplicitVolume::PointIds
vtkIdList * PointIds
Definition: vtkImplicitVolume.h:114
vtkObject::New
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
vtkImplicitFunction::EvaluateFunction
virtual double EvaluateFunction(double x[3])=0
Evaluate function at position x-y-z and return value.
vtkImplicitVolume::Volume
vtkImageData * Volume
Definition: vtkImplicitVolume.h:110
vtkImplicitFunction
abstract interface for implicit functions
Definition: vtkImplicitFunction.h:60
vtkImplicitFunction::GetMTime
vtkMTimeType GetMTime() override
Overload standard modified time function.
vtkImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:39
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkImplicitFunction::EvaluateGradient
virtual void EvaluateGradient(double x[3], double g[3])=0
Evaluate function gradient at position x-y-z and pass back vector.
vtkIdList
list of point or cell ids
Definition: vtkIdList.h:30
vtkImplicitVolume
treat a volume as if it were an implicit function
Definition: vtkImplicitVolume.h:49
vtkImplicitFunction.h
vtkImplicitFunction::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkImplicitVolume::OutValue
double OutValue
Definition: vtkImplicitVolume.h:111
vtkMTimeType
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:302