VTK  9.3.20240912
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
50#ifndef vtkImplicitDataSet_h
51#define vtkImplicitDataSet_h
52
53#include "vtkCommonDataModelModule.h" // For export macro
54#include "vtkImplicitFunction.h"
55
56VTK_ABI_NAMESPACE_BEGIN
57class vtkDataSet;
58
59class VTKCOMMONDATAMODEL_EXPORT vtkImplicitDataSet : public vtkImplicitFunction
60{
61public:
63 void PrintSelf(ostream& os, vtkIndent indent) override;
64
70
75
77
82 double EvaluateFunction(double x[3]) override;
84
88 void EvaluateGradient(double x[3], double n[3]) override;
89
91
94 virtual void SetDataSet(vtkDataSet*);
95 vtkGetObjectMacro(DataSet, vtkDataSet);
97
99
102 vtkSetMacro(OutValue, double);
103 vtkGetMacro(OutValue, double);
105
107
110 vtkSetVector3Macro(OutGradient, double);
111 vtkGetVector3Macro(OutGradient, double);
113
114protected:
117
119
121 double OutValue;
122 double OutGradient[3];
123
124 double* Weights; // used to compute interpolation weights
125 int Size; // keeps track of length of weights array
126
127private:
128 vtkImplicitDataSet(const vtkImplicitDataSet&) = delete;
129 void operator=(const vtkImplicitDataSet&) = delete;
130};
131
132VTK_ABI_NAMESPACE_END
133#endif
abstract class to specify dataset behavior
Definition vtkDataSet.h:166
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.
static vtkImplicitDataSet * New()
Construct an vtkImplicitDataSet with no initial dataset; the OutValue set to a large negative number;...
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.
~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:108
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:270