VTK  9.2.6
vtkLagrangeHexahedron.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkLagrangeHexahedron.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 vtkLagrangeHexahedron_h
30 #define vtkLagrangeHexahedron_h
31 
32 #include "vtkCellType.h" // For GetCellType.
33 #include "vtkCommonDataModelModule.h" // For export macro
35 #include "vtkNew.h" // For member variable.
36 #include "vtkSmartPointer.h" // For member variable.
37 
38 class vtkCellData;
39 class vtkDoubleArray;
40 class vtkHexahedron;
41 class vtkIdList;
42 class vtkLagrangeCurve;
45 class vtkPointData;
46 class vtkPoints;
47 class vtkVector3d;
48 class vtkVector3i;
49 
50 class VTKCOMMONDATAMODEL_EXPORT vtkLagrangeHexahedron : public vtkHigherOrderHexahedron
51 {
52 public:
53  static vtkLagrangeHexahedron* New();
55 
56  void PrintSelf(ostream& os, vtkIndent indent) override;
57  int GetCellType() override { return VTK_LAGRANGE_HEXAHEDRON; }
58  vtkCell* GetEdge(int edgeId) override;
59  vtkCell* GetFace(int faceId) override;
60  void InterpolateFunctions(const double pcoords[3], double* weights) override;
61  void InterpolateDerivs(const double pcoords[3], double* derivs) override;
62  vtkHigherOrderCurve* GetEdgeCell() override;
65 
66 protected:
68  int subId, vtkDataArray* scalarsIn = nullptr, vtkDataArray* scalarsOut = nullptr) override;
70  ~vtkLagrangeHexahedron() override;
71 
75 
76 private:
78  void operator=(const vtkLagrangeHexahedron&) = delete;
79 };
80 
81 #endif // vtkLagrangeHexahedron_h
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.
vtkNew< vtkLagrangeInterpolation > Interp
virtual vtkHexahedron * GetApproximateHex(int subId, vtkDataArray *scalarsIn=nullptr, vtkDataArray *scalarsOut=nullptr)=0
represent and manipulate cell attribute data
Definition: vtkCellData.h:41
virtual vtkHigherOrderQuadrilateral * GetFaceCell()=0
vtkNew< vtkLagrangeQuadrilateral > FaceCell
int GetCellType() override
Return the type of cell.
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
list of point or cell ids
Definition: vtkIdList.h:33
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:55
virtual vtkHigherOrderInterpolation * GetInterpolation()=0
a cell that represents a linear 3D hexahedron
Definition: vtkHexahedron.h:44
A 3D cell that represents an arbitrary order HigherOrder hex.
void InterpolateDerivs(const double pcoords[3], double *derivs) override=0
void InterpolateFunctions(const double pcoords[3], double *weights) override=0
virtual vtkHigherOrderCurve * GetEdgeCell()=0
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
A 3D cell that represents an arbitrary order Lagrange hex.
vtkNew< vtkLagrangeCurve > EdgeCell
represent and manipulate 3D points
Definition: vtkPoints.h:39