VTK  9.1.0
vtkBezierWedge.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkBezierWedge.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 vtkBezierWedge_h
35#define vtkBezierWedge_h
36
37#include "vtkCellType.h" // For GetCellType.
38#include "vtkCommonDataModelModule.h" // For export macro
39#include "vtkDeprecation.h" // For VTK_DEPRECATED_IN_9_1_0
40#include "vtkHigherOrderWedge.h"
41#include "vtkNew.h" // For member variable.
42#include "vtkSmartPointer.h" // For member variable.
43
44class vtkCellData;
45class vtkDoubleArray;
46class vtkWedge;
47class vtkIdList;
48class vtkPointData;
49class vtkPoints;
50class vtkVector3d;
51class vtkVector3i;
52class vtkBezierCurve;
56class vtkDataSet;
57
58class VTKCOMMONDATAMODEL_EXPORT vtkBezierWedge : public vtkHigherOrderWedge
59{
60public:
63
64 void PrintSelf(ostream& os, vtkIndent indent) override;
65 int GetCellType() override { return VTK_BEZIER_WEDGE; }
66 vtkCell* GetEdge(int edgeId) override;
67 vtkCell* GetFace(int faceId) override;
69 "EvaluateLocationProjectedNode is deprecated, use instead EvaluateLocation.")
70 void EvaluateLocationProjectedNode(
71 int& subId, const vtkIdType point_id, double x[3], double* weights);
72 void InterpolateFunctions(const double pcoords[3], double* weights) override;
73 void InterpolateDerivs(const double pcoords[3], double* derivs) override;
74
75 void SetRationalWeightsFromPointData(vtkPointData* point_data, const vtkIdType numPts);
76
77 vtkHigherOrderQuadrilateral* GetBoundaryQuad() override;
78 vtkHigherOrderTriangle* GetBoundaryTri() override;
79 vtkHigherOrderCurve* GetEdgeCell() override;
80 vtkHigherOrderInterpolation* GetInterpolation() override;
81
82 vtkDoubleArray* GetRationalWeights();
83
84protected:
86 ~vtkBezierWedge() override;
87
88 vtkNew<vtkDoubleArray> RationalWeights;
94
95private:
96 vtkBezierWedge(const vtkBezierWedge&) = delete;
97 void operator=(const vtkBezierWedge&) = delete;
98};
99
100#endif // vtkBezierWedge_h
A 2D cell that represents an arbitrary order Bezier triangle.
A 3D cell that represents an arbitrary order Bezier wedge.
int GetCellType() override
Return the type of cell.
static vtkBezierWedge * New()
vtkCell * GetFace(int faceId) override
Return the face cell from the faceId of the cell.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkCell * GetEdge(int edgeId) override
Return the edge cell from the edgeId of the cell.
represent and manipulate cell attribute data
Definition: vtkCellData.h:142
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 3D cell that represents an arbitrary order HigherOrder wedge.
list of point or cell ids
Definition: vtkIdList.h:140
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
represent and manipulate 3D points
Definition: vtkPoints.h:143
a 3D cell that represents a linear wedge
Definition: vtkWedge.h:93
@ VTK_BEZIER_WEDGE
Definition: vtkCellType.h:163
#define VTK_DEPRECATED_IN_9_1_0(reason)
int vtkIdType
Definition: vtkType.h:332