VTK  9.1.0
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 "vtkDeprecation.h" // For VTK_DEPRECATED_IN_9_1_0
36 #include "vtkHigherOrderTetra.h"
37 
38 class vtkTetra;
39 class vtkBezierCurve;
40 class vtkBezierTriangle;
41 class vtkDoubleArray;
42 class vtkDataSet;
43 
44 class VTKCOMMONDATAMODEL_EXPORT vtkBezierTetra : public vtkHigherOrderTetra
45 {
46 public:
47  static vtkBezierTetra* New();
49 
50  void PrintSelf(ostream& os, vtkIndent indent) override;
51  int GetCellType() override { return VTK_BEZIER_TETRAHEDRON; }
52  vtkCell* GetEdge(int edgeId) override;
53  vtkCell* GetFace(int faceId) override;
55  "EvaluateLocationProjectedNode is deprecated, use instead EvaluateLocation.")
56  void EvaluateLocationProjectedNode(
57  int& subId, const vtkIdType point_id, double x[3], double* weights);
58  void SetRationalWeightsFromPointData(vtkPointData* point_data, const vtkIdType numPts);
59  void InterpolateFunctions(const double pcoords[3], double* weights) override;
60  void InterpolateDerivs(const double pcoords[3], double* derivs) override;
61 
62  vtkHigherOrderCurve* GetEdgeCell() override;
63  vtkHigherOrderTriangle* GetFaceCell() override;
64 
65  vtkDoubleArray* GetRationalWeights();
66 
67 protected:
69  ~vtkBezierTetra() override;
72  vtkNew<vtkDoubleArray> RationalWeights;
73 
74 private:
75  vtkBezierTetra(const vtkBezierTetra&) = delete;
76  void operator=(const vtkBezierTetra&) = delete;
77 };
78 
79 #endif
A 3D cell that represents an arbitrary order Bezier tetrahedron.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkCell * GetEdge(int edgeId) override
Return the edge cell from the edgeId of the cell.
vtkCell * GetFace(int faceId) override
Return the face cell from the faceId of the cell.
static vtkBezierTetra * New()
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:58
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
Allocate and hold a VTK object.
Definition: vtkNew.h:56
represent and manipulate point attribute data
Definition: vtkPointData.h:33
a 3D cell that represents a tetrahedron
Definition: vtkTetra.h:42
@ VTK_BEZIER_TETRAHEDRON
Definition: vtkCellType.h:122
#define VTK_DEPRECATED_IN_9_1_0(reason)
int vtkIdType
Definition: vtkType.h:332