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=========================================================================*/
39
40#ifndef vtkImplicitVolume_h
41#define vtkImplicitVolume_h
42
43#include "vtkCommonDataModelModule.h" // For export macro
44#include "vtkImplicitFunction.h"
45
46class vtkIdList;
47class vtkImageData;
48
49class VTKCOMMONDATAMODEL_EXPORT vtkImplicitVolume : public vtkImplicitFunction
50{
51public:
53 void PrintSelf(ostream& os, vtkIndent indent) override;
54
60
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
106protected:
109
110 vtkImageData* Volume; // the structured points
111 double OutValue;
112 double OutGradient[3];
113 // to replace a static
115
116private:
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
virtual double EvaluateFunction(double x[3])=0
Evaluate function at position x-y-z and return value.
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:34
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:287