VTK
vtkImplicitDataSet.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImplicitDataSet.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 =========================================================================*/
43 #ifndef vtkImplicitDataSet_h
44 #define vtkImplicitDataSet_h
45 
46 #include "vtkCommonDataModelModule.h" // For export macro
47 #include "vtkImplicitFunction.h"
48 
49 class vtkDataSet;
50 
51 class VTKCOMMONDATAMODEL_EXPORT vtkImplicitDataSet : public vtkImplicitFunction
52 {
53 public:
55  void PrintSelf(ostream& os, vtkIndent indent) override;
56 
62 
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 SetDataSet(vtkDataSet*);
87  vtkGetObjectMacro(DataSet,vtkDataSet);
89 
91 
94  vtkSetMacro(OutValue,double);
95  vtkGetMacro(OutValue,double);
97 
99 
102  vtkSetVector3Macro(OutGradient,double);
103  vtkGetVector3Macro(OutGradient,double);
105 
106 protected:
109 
111 
113  double OutValue;
114  double OutGradient[3];
115 
116  double *Weights; //used to compute interpolation weights
117  int Size; //keeps track of length of weights array
118 
119 private:
120  vtkImplicitDataSet(const vtkImplicitDataSet&) = delete;
121  void operator=(const vtkImplicitDataSet&) = delete;
122 };
123 
124 #endif
125 
126 
vtkImplicitDataSet::New
static vtkImplicitDataSet * New()
Construct an vtkImplicitDataSet with no initial dataset; the OutValue set to a large negative number;...
vtkImplicitFunction::EvaluateFunction
virtual double EvaluateFunction(double x[3])=0
Evaluate function at position x-y-z and return value.
vtkImplicitDataSet::OutValue
double OutValue
Definition: vtkImplicitDataSet.h:113
vtkImplicitDataSet::Size
int Size
Definition: vtkImplicitDataSet.h:117
vtkImplicitDataSet::Weights
double * Weights
Definition: vtkImplicitDataSet.h:116
vtkImplicitDataSet::DataSet
vtkDataSet * DataSet
Definition: vtkImplicitDataSet.h:112
vtkImplicitDataSet::~vtkImplicitDataSet
~vtkImplicitDataSet() override
vtkImplicitDataSet::SetDataSet
virtual void SetDataSet(vtkDataSet *)
Set / get the dataset used for the implicit function evaluation.
vtkImplicitFunction
abstract interface for implicit functions
Definition: vtkImplicitFunction.h:61
vtkImplicitDataSet::vtkImplicitDataSet
vtkImplicitDataSet()
vtkImplicitDataSet::EvaluateGradient
void EvaluateGradient(double x[3], double n[3]) override
Evaluate implicit function gradient.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkImplicitDataSet::GetMTime
vtkMTimeType GetMTime() override
Return the MTime also considering the DataSet dependency.
vtkImplicitDataSet
treat a dataset as if it were an implicit function
Definition: vtkImplicitDataSet.h:52
vtkGarbageCollector
Detect and break reference loops.
Definition: vtkGarbageCollector.h:100
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:63
vtkImplicitDataSet::EvaluateFunction
double EvaluateFunction(double x[3]) override
Evaluate function at position x-y-z and return value.
vtkImplicitDataSet::ReportReferences
void ReportReferences(vtkGarbageCollector *) override
vtkImplicitFunction.h
vtkImplicitDataSet::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkMTimeType
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:302