VTK  9.0.1
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
32 #include "vtkNew.h" // For member variable.
33 #include "vtkSmartPointer.h" // For member variable.
34 
35 class vtkCellData;
36 class vtkDoubleArray;
37 class vtkHexahedron;
38 class vtkIdList;
39 class vtkBezierCurve;
42 class vtkPointData;
43 class vtkPoints;
44 class vtkVector3d;
45 class vtkVector3i;
46 class vtkDataSet;
47 
48 class VTKCOMMONDATAMODEL_EXPORT vtkBezierHexahedron : public vtkHigherOrderHexahedron
49 {
50 public:
53 
54  void PrintSelf(ostream& os, vtkIndent indent) override;
55  int GetCellType() override { return VTK_BEZIER_HEXAHEDRON; }
56  vtkCell* GetEdge(int edgeId) override;
57  vtkCell* GetFace(int faceId) override;
59  int& subId, const vtkIdType point_id, double x[3], double* weights);
60  void InterpolateFunctions(const double pcoords[3], double* weights) override;
61  void InterpolateDerivs(const double pcoords[3], double* derivs) override;
62 
63  void SetRationalWeightsFromPointData(vtkPointData* point_data, const vtkIdType numPts);
64 
66  virtual vtkHigherOrderCurve* getEdgeCell() override;
69 
70 protected:
72  int subId, vtkDataArray* scalarsIn = nullptr, vtkDataArray* scalarsOut = nullptr) override;
75 
80 
81 private:
83  void operator=(const vtkBezierHexahedron&) = delete;
84 };
85 
86 #endif // vtkBezierHexahedron_h
vtkPoints
represent and manipulate 3D points
Definition: vtkPoints.h:34
vtkBezierQuadrilateral
Definition: vtkBezierQuadrilateral.h:40
vtkBezierHexahedron::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkHexahedron
a cell that represents a linear 3D hexahedron
Definition: vtkHexahedron.h:42
vtkPointData
represent and manipulate point attribute data
Definition: vtkPointData.h:32
vtkIdType
int vtkIdType
Definition: vtkType.h:338
vtkBezierHexahedron::Interp
vtkNew< vtkBezierInterpolation > Interp
Definition: vtkBezierHexahedron.h:79
vtkBezierCurve
Definition: vtkBezierCurve.h:39
vtkBezierHexahedron::getFaceCell
virtual vtkHigherOrderQuadrilateral * getFaceCell() override
vtkDataArray
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:50
vtkHigherOrderCurve
Definition: vtkHigherOrderCurve.h:38
vtkHigherOrderHexahedron.h
vtkBezierHexahedron::RationalWeights
vtkNew< vtkDoubleArray > RationalWeights
Definition: vtkBezierHexahedron.h:76
vtkBezierInterpolation
Definition: vtkBezierInterpolation.h:36
vtkBezierHexahedron
A 3D cell that represents an arbitrary order Bezier hex.
Definition: vtkBezierHexahedron.h:49
vtkBezierHexahedron::getEdgeCell
virtual vtkHigherOrderCurve * getEdgeCell() override
vtkVector3i
Definition: vtkVector.h:463
vtkBezierHexahedron::vtkBezierHexahedron
vtkBezierHexahedron()
vtkBezierHexahedron::GetApproximateHex
vtkHexahedron * GetApproximateHex(int subId, vtkDataArray *scalarsIn=nullptr, vtkDataArray *scalarsOut=nullptr) override
vtkCell
abstract class to specify cell behavior
Definition: vtkCell.h:57
vtkCellData
represent and manipulate cell attribute data
Definition: vtkCellData.h:33
vtkBezierHexahedron::GetEdge
vtkCell * GetEdge(int edgeId) override
Return the edge cell from the edgeId of the cell.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:34
vtkBezierHexahedron::EvaluateLocationProjectedNode
void EvaluateLocationProjectedNode(int &subId, const vtkIdType point_id, double x[3], double *weights)
vtkHigherOrderQuadrilateral
Definition: vtkHigherOrderQuadrilateral.h:41
vtkBezierHexahedron::SetRationalWeightsFromPointData
void SetRationalWeightsFromPointData(vtkPointData *point_data, const vtkIdType numPts)
vtkCellType.h
vtkSmartPointer.h
vtkIdList
list of point or cell ids
Definition: vtkIdList.h:31
vtkNew< vtkDoubleArray >
vtkBezierHexahedron::EdgeCell
vtkNew< vtkBezierCurve > EdgeCell
Definition: vtkBezierHexahedron.h:78
vtkBezierHexahedron::GetFace
vtkCell * GetFace(int faceId) override
Return the face cell from the faceId of the cell.
vtkBezierHexahedron::InterpolateDerivs
void InterpolateDerivs(const double pcoords[3], double *derivs) override
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:57
vtkBezierHexahedron::getInterp
virtual vtkHigherOrderInterpolation * getInterp() override
vtkNew.h
vtkBezierHexahedron::InterpolateFunctions
void InterpolateFunctions(const double pcoords[3], double *weights) override
vtkBezierHexahedron::GetCellType
int GetCellType() override
Return the type of cell.
Definition: vtkBezierHexahedron.h:55
vtkBezierHexahedron::~vtkBezierHexahedron
~vtkBezierHexahedron() override
vtkHigherOrderInterpolation
Definition: vtkHigherOrderInterpolation.h:36
vtkDoubleArray
dynamic, self-adjusting array of double
Definition: vtkDoubleArray.h:36
vtkHigherOrderHexahedron
A 3D cell that represents an arbitrary order HigherOrder hex.
Definition: vtkHigherOrderHexahedron.h:49
vtkBezierHexahedron::FaceCell
vtkNew< vtkBezierQuadrilateral > FaceCell
Definition: vtkBezierHexahedron.h:77
vtkBezierHexahedron::New
static vtkBezierHexahedron * New()
vtkVector3d
Definition: vtkVector.h:489
vtkBezierHexahedron::GetRationalWeights
vtkDoubleArray * GetRationalWeights()
VTK_BEZIER_HEXAHEDRON
@ VTK_BEZIER_HEXAHEDRON
Definition: vtkCellType.h:122