VTK  9.0.1
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 
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
list of point or cell ids
Definition: vtkIdList.h:31
topologically and geometrically regular array of data
Definition: vtkImageData.h:42
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 function at position x-y-z and return value.
~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:34
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:293