VTK  9.4.20250114
vtkBezierTriangle.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
22#ifndef vtkBezierTriangle_h
23#define vtkBezierTriangle_h
24
25#include "vtkCommonDataModelModule.h" // For export macro
27
28VTK_ABI_NAMESPACE_BEGIN
29class vtkDoubleArray;
30class vtkBezierCurve;
31class vtkTriangle;
32class vtkDataSet;
33
34class VTKCOMMONDATAMODEL_EXPORT vtkBezierTriangle : public vtkHigherOrderTriangle
35{
36public:
39
40 void PrintSelf(ostream& os, vtkIndent indent) override;
41 int GetCellType() override { return VTK_BEZIER_TRIANGLE; }
42 vtkCell* GetEdge(int edgeId) override;
44 void InterpolateFunctions(const double pcoords[3], double* weights) override;
45 void InterpolateDerivs(const double pcoords[3], double* derivs) override;
46
48
50
51protected:
54
57
58private:
59 vtkBezierTriangle(const vtkBezierTriangle&) = delete;
60 void operator=(const vtkBezierTriangle&) = delete;
61};
62
63VTK_ABI_NAMESPACE_END
64#endif
A 2D cell that represents an arbitrary order Bezier triangle.
vtkNew< vtkBezierCurve > EdgeCell
void InterpolateFunctions(const double pcoords[3], double *weights) override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetRationalWeightsFromPointData(vtkPointData *point_data, vtkIdType numPts)
vtkDoubleArray * GetRationalWeights()
void InterpolateDerivs(const double pcoords[3], double *derivs) override
static vtkBezierTriangle * New()
~vtkBezierTriangle() override
vtkNew< vtkDoubleArray > RationalWeights
vtkCell * GetEdge(int edgeId) override
Return the edge cell from the edgeId of the cell.
int GetCellType() override
Return the type of cell.
vtkHigherOrderCurve * GetEdgeCell() override
abstract class to specify cell behavior
Definition vtkCell.h:130
abstract class to specify dataset behavior
Definition vtkDataSet.h:165
dynamic, self-adjusting array of double
A 2D cell that represents an arbitrary order HigherOrder triangle.
a simple class to control print indentation
Definition vtkIndent.h:108
Allocate and hold a VTK object.
Definition vtkNew.h:167
represent and manipulate point attribute data
a cell that represents a triangle
@ VTK_BEZIER_TRIANGLE
int vtkIdType
Definition vtkType.h:315