VTK  9.3.0
vtkImplicitDataSet.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
40 #ifndef vtkImplicitDataSet_h
41 #define vtkImplicitDataSet_h
42 
43 #include "vtkCommonDataModelModule.h" // For export macro
44 #include "vtkImplicitFunction.h"
45 
46 VTK_ABI_NAMESPACE_BEGIN
47 class vtkDataSet;
48 
49 class VTKCOMMONDATAMODEL_EXPORT vtkImplicitDataSet : public vtkImplicitFunction
50 {
51 public:
53  void PrintSelf(ostream& os, vtkIndent indent) override;
54 
60 
64  vtkMTimeType GetMTime() override;
65 
67 
72  double EvaluateFunction(double x[3]) override;
74 
78  void EvaluateGradient(double x[3], double n[3]) override;
79 
81 
84  virtual void SetDataSet(vtkDataSet*);
85  vtkGetObjectMacro(DataSet, vtkDataSet);
87 
89 
92  vtkSetMacro(OutValue, double);
93  vtkGetMacro(OutValue, double);
95 
97 
100  vtkSetVector3Macro(OutGradient, double);
101  vtkGetVector3Macro(OutGradient, double);
103 
104 protected:
107 
109 
111  double OutValue;
112  double OutGradient[3];
113 
114  double* Weights; // used to compute interpolation weights
115  int Size; // keeps track of length of weights array
116 
117 private:
118  vtkImplicitDataSet(const vtkImplicitDataSet&) = delete;
119  void operator=(const vtkImplicitDataSet&) = delete;
120 };
121 
122 VTK_ABI_NAMESPACE_END
123 #endif
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
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:38
std::map< std::string, DataArray > DataSet
key: variable name, value: DataArray
Definition: VTXTypes.h:28
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:270