VTK  9.2.6
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 =========================================================================*/
34 #ifndef vtkBezierTetra_h
35 #define vtkBezierTetra_h
36 
37 #include "vtkCommonDataModelModule.h" // For export macro
38 #include "vtkDeprecation.h" // For VTK_DEPRECATED_IN_9_1_0
39 #include "vtkHigherOrderTetra.h"
40 
41 class vtkTetra;
42 class vtkBezierCurve;
43 class vtkBezierTriangle;
44 class vtkDoubleArray;
45 class vtkDataSet;
46 
47 class VTKCOMMONDATAMODEL_EXPORT vtkBezierTetra : public vtkHigherOrderTetra
48 {
49 public:
50  static vtkBezierTetra* New();
52 
53  void PrintSelf(ostream& os, vtkIndent indent) override;
54  int GetCellType() override { return VTK_BEZIER_TETRAHEDRON; }
55  vtkCell* GetEdge(int edgeId) override;
56  vtkCell* GetFace(int faceId) override;
58  "EvaluateLocationProjectedNode is deprecated, use instead EvaluateLocation.")
59  void EvaluateLocationProjectedNode(
60  int& subId, const vtkIdType point_id, double x[3], double* weights);
61  void SetRationalWeightsFromPointData(vtkPointData* point_data, const vtkIdType numPts);
62  void InterpolateFunctions(const double pcoords[3], double* weights) override;
63  void InterpolateDerivs(const double pcoords[3], double* derivs) override;
64 
65  vtkHigherOrderCurve* GetEdgeCell() override;
66  vtkHigherOrderTriangle* GetFaceCell() override;
67 
68  vtkDoubleArray* GetRationalWeights();
69 
70 protected:
72  ~vtkBezierTetra() override;
75  vtkNew<vtkDoubleArray> RationalWeights;
76 
77 private:
78  vtkBezierTetra(const vtkBezierTetra&) = delete;
79  void operator=(const vtkBezierTetra&) = delete;
80 };
81 
82 #endif
#define VTK_DEPRECATED_IN_9_1_0(reason)
represent and manipulate point attribute data
Definition: vtkPointData.h:41
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
A 2D cell that represents an arbitrary order Bezier triangle.
int vtkIdType
Definition: vtkType.h:332
vtkCell * GetFace(int faceId) override=0
Return the face cell from the faceId of the cell.
dynamic, self-adjusting array of double
a 3D cell that represents a tetrahedron
Definition: vtkTetra.h:44
abstract class to specify cell behavior
Definition: vtkCell.h:60
a simple class to control print indentation
Definition: vtkIndent.h:39
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.
Allocate and hold a VTK object.
Definition: vtkMeta.h:30
A 2D cell that represents an arbitrary order HigherOrder triangle.
A 3D cell that represents an arbitrary order HigherOrder tetrahedron.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
vtkCell * GetEdge(int edgeId) override=0
Return the edge cell from the edgeId of the cell.
int GetCellType() override
Return the type of cell.