VTK  9.0.1
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 "vtkHigherOrderTriangle.h"
36 
37 class vtkDoubleArray;
38 class vtkBezierCurve;
39 class vtkTriangle;
40 class vtkDataSet;
41 
42 class VTKCOMMONDATAMODEL_EXPORT vtkBezierTriangle : public vtkHigherOrderTriangle
43 {
44 public:
47 
48  void PrintSelf(ostream& os, vtkIndent indent) override;
49  int GetCellType() override { return VTK_BEZIER_TRIANGLE; }
50  vtkCell* GetEdge(int edgeId) override;
52  int& subId, const vtkIdType point_id, double x[3], double* weights);
53  void SetRationalWeightsFromPointData(vtkPointData* point_data, const vtkIdType numPts);
54  void InterpolateFunctions(const double pcoords[3], double* weights) override;
55  void InterpolateDerivs(const double pcoords[3], double* derivs) override;
56 
57  virtual vtkHigherOrderCurve* getEdgeCell() override;
58 
60 
61 protected:
63  ~vtkBezierTriangle() override;
64 
67 
68 private:
69  vtkBezierTriangle(const vtkBezierTriangle&) = delete;
70  void operator=(const vtkBezierTriangle&) = delete;
71 };
72 
73 #endif
A 2D cell that represents an arbitrary order Bezier triangle.
vtkNew< vtkBezierCurve > EdgeCell
virtual vtkHigherOrderCurve * getEdgeCell() override
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, const vtkIdType numPts)
void InterpolateDerivs(const double pcoords[3], double *derivs) override
void EvaluateLocationProjectedNode(int &subId, const vtkIdType point_id, double x[3], double *weights)
vtkDoubleArray * GetRationalWeights()
vtkCell * GetEdge(int edgeId) override
Return the edge cell from the edgeId of the cell.
static vtkBezierTriangle * New()
~vtkBezierTriangle() override
vtkNew< vtkDoubleArray > RationalWeights
int GetCellType() override
Return the type of cell.
abstract class to specify cell behavior
Definition: vtkCell.h:57
abstract class to specify dataset behavior
Definition: vtkDataSet.h:57
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:34
represent and manipulate point attribute data
Definition: vtkPointData.h:32
a cell that represents a triangle
Definition: vtkTriangle.h:36
@ VTK_BEZIER_TRIANGLE
Definition: vtkCellType.h:119
int vtkIdType
Definition: vtkType.h:338