VTK  9.2.5
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 =========================================================================*/
82 #ifndef vtkImplicitDataSet_h
83 #define vtkImplicitDataSet_h
84 
85 #include "vtkCommonDataModelModule.h" // For export macro
86 #include "vtkImplicitFunction.h"
87 
88 class vtkDataSet;
89 
90 class VTKCOMMONDATAMODEL_EXPORT vtkImplicitDataSet : public vtkImplicitFunction
91 {
92 public:
94  void PrintSelf(ostream& os, vtkIndent indent) override;
95 
101 
105  vtkMTimeType GetMTime() override;
106 
108 
113  double EvaluateFunction(double x[3]) override;
115 
119  void EvaluateGradient(double x[3], double n[3]) override;
120 
122 
125  virtual void SetDataSet(vtkDataSet*);
126  vtkGetObjectMacro(DataSet, vtkDataSet);
128 
130 
133  vtkSetMacro(OutValue, double);
134  vtkGetMacro(OutValue, double);
136 
138 
141  vtkSetVector3Macro(OutGradient, double);
142  vtkGetVector3Macro(OutGradient, double);
144 
145 protected:
148 
150 
152  double OutValue;
153  double OutGradient[3];
154 
155  double* Weights; // used to compute interpolation weights
156  int Size; // keeps track of length of weights array
157 
158 private:
159  vtkImplicitDataSet(const vtkImplicitDataSet&) = delete;
160  void operator=(const vtkImplicitDataSet&) = delete;
161 };
162 
163 #endif
abstract class to specify dataset behavior
Definition: vtkDataSet.h:172
Detect and break reference loops.
treat a dataset as if it were an implicit function
virtual void SetDataSet(vtkDataSet *)
Set / get the dataset used for the implicit function evaluation.
vtkMTimeType GetMTime() override
Return the MTime also considering the DataSet dependency.
double EvaluateFunction(double x[3]) override
Evaluate the implicit function.
void ReportReferences(vtkGarbageCollector *) override
void EvaluateGradient(double x[3], double n[3]) override
Evaluate implicit function gradient.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkImplicitDataSet * New()
Construct an vtkImplicitDataSet with no initial dataset; the OutValue set to a large negative number;...
~vtkImplicitDataSet() override
abstract interface for implicit functions
virtual double EvaluateFunction(double x[3])=0
Evaluate function at position x-y-z and return value.
a simple class to control print indentation
Definition: vtkIndent.h:119
std::map< std::string, DataArray > DataSet
key: variable name, value: DataArray
Definition: VTXTypes.h:39
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287