VTK  9.1.0
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=========================================================================*/
79#ifndef vtkImplicitDataSet_h
80#define vtkImplicitDataSet_h
81
82#include "vtkCommonDataModelModule.h" // For export macro
83#include "vtkImplicitFunction.h"
84
85class vtkDataSet;
86
87class VTKCOMMONDATAMODEL_EXPORT vtkImplicitDataSet : public vtkImplicitFunction
88{
89public:
91 void PrintSelf(ostream& os, vtkIndent indent) override;
92
98
103
105
110 double EvaluateFunction(double x[3]) override;
112
116 void EvaluateGradient(double x[3], double n[3]) override;
117
119
122 virtual void SetDataSet(vtkDataSet*);
123 vtkGetObjectMacro(DataSet, vtkDataSet);
125
127
130 vtkSetMacro(OutValue, double);
131 vtkGetMacro(OutValue, double);
133
135
138 vtkSetVector3Macro(OutGradient, double);
139 vtkGetVector3Macro(OutGradient, double);
141
142protected:
145
147
149 double OutValue;
150 double OutGradient[3];
151
152 double* Weights; // used to compute interpolation weights
153 int Size; // keeps track of length of weights array
154
155private:
156 vtkImplicitDataSet(const vtkImplicitDataSet&) = delete;
157 void operator=(const vtkImplicitDataSet&) = delete;
158};
159
160#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:113
std::map< std::string, DataArray > DataSet
key: variable name, value: DataArray
Definition: VTXTypes.h:39
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287