VTK  9.1.0
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=========================================================================*/
26#ifndef vtkBezierHexahedron_h
27#define vtkBezierHexahedron_h
28
29#include "vtkCellType.h" // For GetCellType.
30#include "vtkCommonDataModelModule.h" // For export macro
31#include "vtkDeprecation.h" // For VTK_DEPRECATED_IN_9_1_0
33#include "vtkNew.h" // For member variable.
34#include "vtkSmartPointer.h" // For member variable.
35
36class vtkCellData;
37class vtkDoubleArray;
38class vtkHexahedron;
39class vtkIdList;
40class vtkBezierCurve;
43class vtkPointData;
44class vtkPoints;
45class vtkVector3d;
46class vtkVector3i;
47class vtkDataSet;
48
49class VTKCOMMONDATAMODEL_EXPORT vtkBezierHexahedron : public vtkHigherOrderHexahedron
50{
51public:
54
55 void PrintSelf(ostream& os, vtkIndent indent) override;
56 int GetCellType() override { return VTK_BEZIER_HEXAHEDRON; }
57 vtkCell* GetEdge(int edgeId) override;
58 vtkCell* GetFace(int faceId) override;
60 "EvaluateLocationProjectedNode is deprecated, use instead EvaluateLocation.")
61 void EvaluateLocationProjectedNode(
62 int& subId, const vtkIdType point_id, double x[3], double* weights);
63 void InterpolateFunctions(const double pcoords[3], double* weights) override;
64 void InterpolateDerivs(const double pcoords[3], double* derivs) override;
65
66 void SetRationalWeightsFromPointData(vtkPointData* point_data, const vtkIdType numPts);
67
68 vtkDoubleArray* GetRationalWeights();
69 vtkHigherOrderCurve* GetEdgeCell() override;
70 vtkHigherOrderQuadrilateral* GetFaceCell() override;
71 vtkHigherOrderInterpolation* GetInterpolation() override;
72
73protected:
74 vtkHexahedron* GetApproximateHex(
75 int subId, vtkDataArray* scalarsIn = nullptr, vtkDataArray* scalarsOut = nullptr) override;
78
79 vtkNew<vtkDoubleArray> RationalWeights;
83
84private:
86 void operator=(const vtkBezierHexahedron&) = delete;
87};
88
89#endif // vtkBezierHexahedron_h
A 3D cell that represents an arbitrary order Bezier hex.
vtkCell * GetFace(int faceId) override
Return the face cell from the faceId of the cell.
int GetCellType() override
Return the type of cell.
static vtkBezierHexahedron * New()
vtkCell * GetEdge(int edgeId) override
Return the edge cell from the edgeId of the cell.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
represent and manipulate cell attribute data
Definition: vtkCellData.h:142
abstract class to specify cell behavior
Definition: vtkCell.h:147
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:159
abstract class to specify dataset behavior
Definition: vtkDataSet.h:166
dynamic, self-adjusting array of double
a cell that represents a linear 3D hexahedron
A 3D cell that represents an arbitrary order HigherOrder hex.
list of point or cell ids
Definition: vtkIdList.h:140
a simple class to control print indentation
Definition: vtkIndent.h:113
Allocate and hold a VTK object.
Definition: vtkNew.h:165
represent and manipulate point attribute data
Definition: vtkPointData.h:142
represent and manipulate 3D points
Definition: vtkPoints.h:143
@ VTK_BEZIER_HEXAHEDRON
Definition: vtkCellType.h:162
#define VTK_DEPRECATED_IN_9_1_0(reason)
int vtkIdType
Definition: vtkType.h:332