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
41class vtkTetra;
42class vtkBezierCurve;
44class vtkDoubleArray;
45class vtkDataSet;
46
47class VTKCOMMONDATAMODEL_EXPORT vtkBezierTetra : public vtkHigherOrderTetra
48{
49public:
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
70protected:
72 ~vtkBezierTetra() override;
75 vtkNew<vtkDoubleArray> RationalWeights;
76
77private:
78 vtkBezierTetra(const vtkBezierTetra&) = delete;
79 void operator=(const vtkBezierTetra&) = delete;
80};
81
82#endif
A 3D cell that represents an arbitrary order Bezier tetrahedron.
vtkCell * GetFace(int faceId) override
Return the face cell from the faceId of the cell.
vtkCell * GetEdge(int edgeId) override
Return the edge cell from the edgeId of the cell.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
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:61
abstract class to specify dataset behavior
Definition: vtkDataSet.h:63
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:40
Allocate and hold a VTK object.
Definition: vtkNew.h:62
represent and manipulate point attribute data
Definition: vtkPointData.h:42
a 3D cell that represents a tetrahedron
Definition: vtkTetra.h:45
@ VTK_BEZIER_TETRAHEDRON
Definition: vtkCellType.h:122
#define VTK_DEPRECATED_IN_9_1_0(reason)
int vtkIdType
Definition: vtkType.h:332