VTK  9.2.6
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
39 #include "vtkHigherOrderTriangle.h"
40 
41 class vtkDoubleArray;
42 class vtkBezierCurve;
43 class vtkTriangle;
44 class vtkDataSet;
45 
46 class VTKCOMMONDATAMODEL_EXPORT vtkBezierTriangle : public vtkHigherOrderTriangle
47 {
48 public:
49  static vtkBezierTriangle* New();
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 
67 protected:
69  ~vtkBezierTriangle() override;
70 
72  vtkNew<vtkDoubleArray> RationalWeights;
73 
74 private:
75  vtkBezierTriangle(const vtkBezierTriangle&) = delete;
76  void operator=(const vtkBezierTriangle&) = delete;
77 };
78 
79 #endif
#define VTK_DEPRECATED_IN_9_1_0(reason)
represent and manipulate point attribute data
Definition: vtkPointData.h:41
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
A 2D cell that represents an arbitrary order Bezier triangle.
int vtkIdType
Definition: vtkType.h:332
dynamic, self-adjusting array of double
vtkCell * GetEdge(int edgeId) override=0
Return the edge cell from the edgeId of the cell.
abstract class to specify cell behavior
Definition: vtkCell.h:60
a simple class to control print indentation
Definition: vtkIndent.h:39
int GetCellType() override
Return the type of cell.
Allocate and hold a VTK object.
Definition: vtkMeta.h:30
a cell that represents a triangle
Definition: vtkTriangle.h:38
A 2D cell that represents an arbitrary order HigherOrder triangle.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.