VTK  9.1.0
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=========================================================================*/
31#ifndef vtkBezierTriangle_h
32#define vtkBezierTriangle_h
33
34#include "vtkCommonDataModelModule.h" // For export macro
35#include "vtkDeprecation.h" // For VTK_DEPRECATED_IN_9_1_0
37
38class vtkDoubleArray;
39class vtkBezierCurve;
40class vtkTriangle;
41class vtkDataSet;
42
43class VTKCOMMONDATAMODEL_EXPORT vtkBezierTriangle : public vtkHigherOrderTriangle
44{
45public:
48
49 void PrintSelf(ostream& os, vtkIndent indent) override;
50 int GetCellType() override { return VTK_BEZIER_TRIANGLE; }
51 vtkCell* GetEdge(int edgeId) override;
53 "EvaluateLocationProjectedNode is deprecated, use instead EvaluateLocation.")
54 void EvaluateLocationProjectedNode(
55 int& subId, const vtkIdType point_id, double x[3], double* weights);
56 void SetRationalWeightsFromPointData(vtkPointData* point_data, const vtkIdType numPts);
57 void InterpolateFunctions(const double pcoords[3], double* weights) override;
58 void InterpolateDerivs(const double pcoords[3], double* derivs) override;
59
60 vtkHigherOrderCurve* GetEdgeCell() override;
61
62 vtkDoubleArray* GetRationalWeights();
63
64protected:
66 ~vtkBezierTriangle() override;
67
69 vtkNew<vtkDoubleArray> RationalWeights;
70
71private:
72 vtkBezierTriangle(const vtkBezierTriangle&) = delete;
73 void operator=(const vtkBezierTriangle&) = delete;
74};
75
76#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:147
abstract class to specify dataset behavior
Definition: vtkDataSet.h:166
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:113
Allocate and hold a VTK object.
Definition: vtkNew.h:165
represent and manipulate point attribute data
Definition: vtkPointData.h:142
a cell that represents a triangle
Definition: vtkTriangle.h:145
@ VTK_BEZIER_TRIANGLE
Definition: vtkCellType.h:159
#define VTK_DEPRECATED_IN_9_1_0(reason)
int vtkIdType
Definition: vtkType.h:332