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) VTK_OVERRIDE;
54 
59  static vtkImplicitVolume *New();
60 
66  vtkMTimeType GetMTime() VTK_OVERRIDE;
67 
69 
73  using vtkImplicitFunction::EvaluateFunction;
74  double EvaluateFunction(double x[3]) VTK_OVERRIDE;
76 
80  void EvaluateGradient(double x[3], double n[3]) VTK_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() VTK_OVERRIDE;
109 
110  vtkImageData *Volume; // the structured points
111  double OutValue;
112  double OutGradient[3];
113  // to replace a static
114  vtkIdList *PointIds;
115 
116 private:
117  vtkImplicitVolume(const vtkImplicitVolume&) VTK_DELETE_FUNCTION;
118  void operator=(const vtkImplicitVolume&) VTK_DELETE_FUNCTION;
119 };
120 
121 #endif
122 
123 
abstract interface for implicit functions
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:300
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkMTimeType GetMTime() override
Overload standard modified time function.
topologically and geometrically regular array of data
Definition: vtkImageData.h:39
list of point or cell ids
Definition: vtkIdList.h:30
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
treat a volume as if it were an implicit function
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.