VTK  9.2.6
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 =========================================================================*/
62 #ifndef vtkImplicitVolume_h
63 #define vtkImplicitVolume_h
64 
65 #include "vtkCommonDataModelModule.h" // For export macro
66 #include "vtkImplicitFunction.h"
67 
68 class vtkIdList;
69 class vtkImageData;
70 
71 class VTKCOMMONDATAMODEL_EXPORT vtkImplicitVolume : public vtkImplicitFunction
72 {
73 public:
75  void PrintSelf(ostream& os, vtkIndent indent) override;
76 
82 
88  vtkMTimeType GetMTime() override;
89 
91 
96  double EvaluateFunction(double x[3]) override;
98 
102  void EvaluateGradient(double x[3], double n[3]) override;
103 
105 
108  virtual void SetVolume(vtkImageData*);
109  vtkGetObjectMacro(Volume, vtkImageData);
111 
113 
116  vtkSetMacro(OutValue, double);
117  vtkGetMacro(OutValue, double);
119 
121 
124  vtkSetVector3Macro(OutGradient, double);
125  vtkGetVector3Macro(OutGradient, double);
127 
128 protected:
130  ~vtkImplicitVolume() override;
131 
132  vtkImageData* Volume; // the structured points
133  double OutValue;
134  double OutGradient[3];
135  // to replace a static
137 
138 private:
139  vtkImplicitVolume(const vtkImplicitVolume&) = delete;
140  void operator=(const vtkImplicitVolume&) = delete;
141 };
142 
143 #endif
list of point or cell ids
Definition: vtkIdList.h:143
topologically and geometrically regular array of data
Definition: vtkImageData.h:163
abstract interface for implicit functions
virtual double EvaluateFunction(double x[3])=0
Evaluate function at position x-y-z and return value.
treat a volume as if it were an implicit function
virtual void SetVolume(vtkImageData *)
Specify the volume for the implicit function.
void EvaluateGradient(double x[3], double n[3]) override
Evaluate ImplicitVolume gradient.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkMTimeType GetMTime() override
Returns the mtime also considering the volume.
double EvaluateFunction(double x[3]) override
Evaluate the ImplicitVolume.
~vtkImplicitVolume() override
static vtkImplicitVolume * New()
Construct an vtkImplicitVolume with no initial volume; the OutValue set to a large negative number; a...
vtkImageData * Volume
a simple class to control print indentation
Definition: vtkIndent.h:119
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287