VTK  9.2.5
vtkBezierTriangle.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkBezierTriangle.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 vtkBezierTriangle_h
35#define vtkBezierTriangle_h
36
37#include "vtkCommonDataModelModule.h" // For export macro
38#include "vtkDeprecation.h" // For VTK_DEPRECATED_IN_9_1_0
40
41class vtkDoubleArray;
42class vtkBezierCurve;
43class vtkTriangle;
44class vtkDataSet;
45
46class VTKCOMMONDATAMODEL_EXPORT vtkBezierTriangle : public vtkHigherOrderTriangle
47{
48public:
51
52 void PrintSelf(ostream& os, vtkIndent indent) override;
53 int GetCellType() override { return VTK_BEZIER_TRIANGLE; }
54 vtkCell* GetEdge(int edgeId) override;
56 "EvaluateLocationProjectedNode is deprecated, use instead EvaluateLocation.")
57 void EvaluateLocationProjectedNode(
58 int& subId, const vtkIdType point_id, double x[3], double* weights);
59 void SetRationalWeightsFromPointData(vtkPointData* point_data, const vtkIdType numPts);
60 void InterpolateFunctions(const double pcoords[3], double* weights) override;
61 void InterpolateDerivs(const double pcoords[3], double* derivs) override;
62
63 vtkHigherOrderCurve* GetEdgeCell() override;
64
65 vtkDoubleArray* GetRationalWeights();
66
67protected:
69 ~vtkBezierTriangle() override;
70
72 vtkNew<vtkDoubleArray> RationalWeights;
73
74private:
75 vtkBezierTriangle(const vtkBezierTriangle&) = delete;
76 void operator=(const vtkBezierTriangle&) = delete;
77};
78
79#endif
A 2D cell that represents an arbitrary order Bezier triangle.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkBezierTriangle * New()
vtkCell * GetEdge(int edgeId) override
Return the edge cell from the edgeId of the cell.
int GetCellType() override
Return the type of cell.
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 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 cell that represents a triangle
Definition: vtkTriangle.h:39
@ VTK_BEZIER_TRIANGLE
Definition: vtkCellType.h:120
#define VTK_DEPRECATED_IN_9_1_0(reason)
int vtkIdType
Definition: vtkType.h:332