VTK  9.2.6
vtkBezierHexahedron.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkBezierHexahedron.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 =========================================================================*/
29 #ifndef vtkBezierHexahedron_h
30 #define vtkBezierHexahedron_h
31 
32 #include "vtkCellType.h" // For GetCellType.
33 #include "vtkCommonDataModelModule.h" // For export macro
34 #include "vtkDeprecation.h" // For VTK_DEPRECATED_IN_9_1_0
36 #include "vtkNew.h" // For member variable.
37 #include "vtkSmartPointer.h" // For member variable.
38 
39 class vtkCellData;
40 class vtkDoubleArray;
41 class vtkHexahedron;
42 class vtkIdList;
43 class vtkBezierCurve;
46 class vtkPointData;
47 class vtkPoints;
48 class vtkVector3d;
49 class vtkVector3i;
50 class vtkDataSet;
51 
52 class VTKCOMMONDATAMODEL_EXPORT vtkBezierHexahedron : public vtkHigherOrderHexahedron
53 {
54 public:
55  static vtkBezierHexahedron* New();
57 
58  void PrintSelf(ostream& os, vtkIndent indent) override;
59  int GetCellType() override { return VTK_BEZIER_HEXAHEDRON; }
60  vtkCell* GetEdge(int edgeId) override;
61  vtkCell* GetFace(int faceId) override;
63  "EvaluateLocationProjectedNode is deprecated, use instead EvaluateLocation.")
64  void EvaluateLocationProjectedNode(
65  int& subId, const vtkIdType point_id, double x[3], double* weights);
66  void InterpolateFunctions(const double pcoords[3], double* weights) override;
67  void InterpolateDerivs(const double pcoords[3], double* derivs) override;
68 
69  void SetRationalWeightsFromPointData(vtkPointData* point_data, const vtkIdType numPts);
70 
71  vtkDoubleArray* GetRationalWeights();
72  vtkHigherOrderCurve* GetEdgeCell() override;
73  vtkHigherOrderQuadrilateral* GetFaceCell() override;
74  vtkHigherOrderInterpolation* GetInterpolation() override;
75 
76 protected:
77  vtkHexahedron* GetApproximateHex(
78  int subId, vtkDataArray* scalarsIn = nullptr, vtkDataArray* scalarsOut = nullptr) override;
80  ~vtkBezierHexahedron() override;
81 
82  vtkNew<vtkDoubleArray> RationalWeights;
86 
87 private:
89  void operator=(const vtkBezierHexahedron&) = delete;
90 };
91 
92 #endif // vtkBezierHexahedron_h
#define VTK_DEPRECATED_IN_9_1_0(reason)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
represent and manipulate point attribute data
Definition: vtkPointData.h:41
vtkCell * GetEdge(int edgeId) override=0
Return the edge cell from the edgeId of the cell.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
represent and manipulate cell attribute data
Definition: vtkCellData.h:41
A 3D cell that represents an arbitrary order Bezier hex.
int vtkIdType
Definition: vtkType.h:332
dynamic, self-adjusting array of double
abstract class to specify cell behavior
Definition: vtkCell.h:60
vtkCell * GetFace(int faceId) override=0
Return the face cell from the faceId of the cell.
a simple class to control print indentation
Definition: vtkIndent.h:39
int GetCellType() override
Return the type of cell.
list of point or cell ids
Definition: vtkIdList.h:33
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:55
a cell that represents a linear 3D hexahedron
Definition: vtkHexahedron.h:44
A 3D cell that represents an arbitrary order HigherOrder hex.
Allocate and hold a VTK object.
Definition: vtkMeta.h:30
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
represent and manipulate 3D points
Definition: vtkPoints.h:39