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
38class vtkTetra;
39class vtkBezierCurve;
41class vtkDoubleArray;
42class vtkDataSet;
43
44class VTKCOMMONDATAMODEL_EXPORT vtkBezierTetra : public vtkHigherOrderTetra
45{
46public:
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
67protected:
69 ~vtkBezierTetra() override;
72 vtkNew<vtkDoubleArray> RationalWeights;
73
74private:
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.
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:147
abstract class to specify dataset behavior
Definition: vtkDataSet.h:166
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:113
Allocate and hold a VTK object.
Definition: vtkNew.h:165
represent and manipulate point attribute data
Definition: vtkPointData.h:142
a 3D cell that represents a tetrahedron
Definition: vtkTetra.h:111
@ VTK_BEZIER_TETRAHEDRON
Definition: vtkCellType.h:161
#define VTK_DEPRECATED_IN_9_1_0(reason)
int vtkIdType
Definition: vtkType.h:332