VTK  9.6.20260703
vtkDGEvaluator.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
12
13#ifndef vtkDGEvaluator_h
14#define vtkDGEvaluator_h
15
16#include "vtkFiltersCellGridModule.h" // for export macro
17
18#include "vtkCellGridEvaluator.h" // for inheritance
20#include "vtkVector.h" // for vtkVector3d
21
22#include <vector> // for std::vector
23
24VTK_ABI_NAMESPACE_BEGIN
26class vtkCellMetadata;
27class vtkDataArray;
28class vtkDGCell;
30class vtkTypeInt64Array;
31
32class VTKFILTERSCELLGRID_EXPORT vtkDGEvaluator : public vtkCellGridResponder<vtkCellGridEvaluator>
33{
34public:
37
38 bool Query(
39 vtkCellGridEvaluator* query, vtkCellMetadata* cellType, vtkCellGridResponders* caches) override;
40
41protected:
42 vtkDGEvaluator() = default;
43 ~vtkDGEvaluator() override = default;
44
53
54private:
59 static bool EvaluatePosition(vtkInterpolateCalculator* calc, vtkDGCell* dgCell, vtkIdType cellId,
60 const vtkVector3d& testPoint, std::vector<double>& xyz, std::vector<double>& jacobian,
62
63 vtkDGEvaluator(const vtkDGEvaluator&) = delete;
64 void operator=(const vtkDGEvaluator&) = delete;
65};
66
67VTK_ABI_NAMESPACE_END
68#endif // vtkDGEvaluator_h
69// VTK-HeaderTest-Exclude: vtkDGEvaluator.h
RealT rst
Definition TetF2Basis.h:17
A function defined over the physical domain of a vtkCellGrid.
Evaluate a field (vtkCellAttribute) at some points inside cells.
A container that holds objects able to respond to queries specialized for particular vtkCellMetadata ...
Metadata for a particular type of cell (finite element).
Base class for a discontinuous Galerkin cells of all shapes.
Definition vtkDGCell.h:44
bool InterpolatePoints(vtkCellGridEvaluator *query, vtkCellMetadata *cellType, vtkCellGridResponders *caches)
Interpolate cell-attributes onto points inside or on a cell.
~vtkDGEvaluator() override=default
bool ClassifyPoints(vtkCellGridEvaluator *query, vtkCellMetadata *cellType, vtkCellGridResponders *caches)
Classify world-space points against cells using Newton-Raphson iteration.
vtkDGEvaluator()=default
bool Query(vtkCellGridEvaluator *query, vtkCellMetadata *cellType, vtkCellGridResponders *caches) override
static vtkDGEvaluator * New()
Calculate field values at a point in a cell's parametric space.
#define vtkDataArray
int vtkIdType
Definition vtkType.h:363