VTK  9.7.1
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
13 #ifndef vtkDGEvaluator_h
14 #define vtkDGEvaluator_h
15 
16 #include "vtkFiltersCellGridModule.h" // for export macro
17 
18 #include "vtkCellGridEvaluator.h" // for inheritance
19 #include "vtkCellGridResponder.h"
20 #include "vtkVector.h" // for vtkVector3d
21 
22 #include <vector> // for std::vector
23 
24 VTK_ABI_NAMESPACE_BEGIN
25 class vtkCellAttribute;
26 class vtkCellMetadata;
27 class vtkDataArray;
28 class vtkDGCell;
30 class vtkTypeInt64Array;
31 
32 class VTKFILTERSCELLGRID_EXPORT vtkDGEvaluator : public vtkCellGridResponder<vtkCellGridEvaluator>
33 {
34 public:
35  static vtkDGEvaluator* New();
37 
38  bool Query(
39  vtkCellGridEvaluator* query, vtkCellMetadata* cellType, vtkCellGridResponders* caches) override;
40 
41 protected:
42  vtkDGEvaluator() = default;
43  ~vtkDGEvaluator() override = default;
44 
48  bool ClassifyPoints(
51  bool InterpolatePoints(
53 
54 private:
59  static bool EvaluatePosition(vtkInterpolateCalculator* calc, vtkDGCell* dgCell, vtkIdType cellId,
60  const vtkVector3d& testPoint, std::vector<double>& xyz, std::vector<double>& jacobian,
61  vtkVector3d& rst);
62 
63  vtkDGEvaluator(const vtkDGEvaluator&) = delete;
64  void operator=(const vtkDGEvaluator&) = delete;
65 };
66 
67 VTK_ABI_NAMESPACE_END
68 #endif // vtkDGEvaluator_h
69 // VTK-HeaderTest-Exclude: vtkDGEvaluator.h
Respond to a query on one particular type of cell.
Metadata for a particular type of cell (finite element).
Calculate field values at a point in a cell's parametric space.
RealT rst
Definition: TetF2Basis.h:17
int vtkIdType
Definition: vtkType.h:363
A container that holds objects able to respond to queries specialized for particular vtkCellMetadata ...
A function defined over the physical domain of a vtkCellGrid.
Evaluate a field (vtkCellAttribute) at some points inside cells.
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:44
Base class for a discontinuous Galerkin cells of all shapes.
Definition: vtkDGCell.h:43
virtual bool Query(QueryClass *query, vtkCellMetadata *cellType, vtkCellGridResponders *caches)=0
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
Classify world points, evaluate cell parameters, and interpolate attributes.