VTK  9.0.1
vtkBezierTetra.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkBezierTetra.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 =========================================================================*/
31 #ifndef vtkBezierTetra_h
32 #define vtkBezierTetra_h
33 
34 #include "vtkCommonDataModelModule.h" // For export macro
35 #include "vtkHigherOrderTetra.h"
36 
37 class vtkTetra;
38 class vtkBezierCurve;
39 class vtkBezierTriangle;
40 class vtkDoubleArray;
41 class vtkDataSet;
42 
43 class VTKCOMMONDATAMODEL_EXPORT vtkBezierTetra : public vtkHigherOrderTetra
44 {
45 public:
46  static vtkBezierTetra* New();
48 
49  void PrintSelf(ostream& os, vtkIndent indent) override;
50  int GetCellType() override { return VTK_BEZIER_TETRAHEDRON; }
51  vtkCell* GetEdge(int edgeId) override;
52  vtkCell* GetFace(int faceId) override;
54  int& subId, const vtkIdType point_id, double x[3], double* weights);
55  void SetRationalWeightsFromPointData(vtkPointData* point_data, const vtkIdType numPts);
56  void InterpolateFunctions(const double pcoords[3], double* weights) override;
57  void InterpolateDerivs(const double pcoords[3], double* derivs) override;
58 
59  virtual vtkHigherOrderCurve* getEdgeCell() override;
60  virtual vtkHigherOrderTriangle* getFaceCell() override;
61 
63 
64 protected:
66  ~vtkBezierTetra() override;
70 
71 private:
72  vtkBezierTetra(const vtkBezierTetra&) = delete;
73  void operator=(const vtkBezierTetra&) = delete;
74 };
75 
76 #endif
A 3D cell that represents an arbitrary order Bezier tetrahedron.
void InterpolateFunctions(const double pcoords[3], double *weights) override
vtkNew< vtkDoubleArray > RationalWeights
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkNew< vtkBezierTriangle > FaceCell
virtual vtkHigherOrderCurve * getEdgeCell() override
vtkCell * GetEdge(int edgeId) override
Return the edge cell from the edgeId of the cell.
~vtkBezierTetra() override
virtual vtkHigherOrderTriangle * getFaceCell() override
void EvaluateLocationProjectedNode(int &subId, const vtkIdType point_id, double x[3], double *weights)
vtkCell * GetFace(int faceId) override
Return the face cell from the faceId of the cell.
vtkNew< vtkBezierCurve > EdgeCell
void InterpolateDerivs(const double pcoords[3], double *derivs) override
void SetRationalWeightsFromPointData(vtkPointData *point_data, const vtkIdType numPts)
static vtkBezierTetra * New()
vtkDoubleArray * GetRationalWeights()
int GetCellType() override
Return the type of cell.
A 2D cell that represents an arbitrary order Bezier triangle.
abstract class to specify cell behavior
Definition: vtkCell.h:57
abstract class to specify dataset behavior
Definition: vtkDataSet.h:57
dynamic, self-adjusting array of double
A 3D cell that represents an arbitrary order HigherOrder tetrahedron.
A 2D cell that represents an arbitrary order HigherOrder triangle.
a simple class to control print indentation
Definition: vtkIndent.h:34
represent and manipulate point attribute data
Definition: vtkPointData.h:32
a 3D cell that represents a tetrahedron
Definition: vtkTetra.h:42
@ VTK_BEZIER_TETRAHEDRON
Definition: vtkCellType.h:121
int vtkIdType
Definition: vtkType.h:338