30 #ifndef vtkGenericCell_h
31 #define vtkGenericCell_h
34 #include "vtkCommonDataModelModule.h"
78 int EvaluatePosition(
const double x[3],
double closestPoint[3],
int& subId,
double pcoords[3],
79 double& dist2,
double weights[])
override;
80 void EvaluateLocation(
int& subId,
const double pcoords[3],
double x[3],
double* weights)
override;
87 int IntersectWithLine(
const double p1[3],
const double p2[3],
double tol,
double& t,
double x[3],
88 double pcoords[3],
int& subId)
override;
91 int subId,
const double pcoords[3],
const double* values,
int dim,
double* derivs)
override;
object to represent cell connectivity
represent and manipulate cell attribute data
abstract class to specify cell behavior
abstract superclass for arrays of numeric data
provides thread-safe access to cells
void SetCellTypeToLagrangeCurve()
void SetCellTypeToHexahedron()
void SetCellTypeToQuadraticLinearWedge()
vtkCell * GetRepresentativeCell()
void EvaluateLocation(int &subId, const double pcoords[3], double x[3], double *weights) override
Determine global coordinate (x[3]) from subId and parametric coordinates.
void SetCellTypeToLagrangeWedge()
void Initialize() override
void SetCellTypeToQuadraticWedge()
void SetCellTypeToQuadraticPolygon()
int CellBoundary(int subId, const double pcoords[3], vtkIdList *pts) override
Given parametric coordinates of a point, return the closest cell boundary, and whether the point is i...
void SetCellTypeToPyramid()
void SetCellTypeToQuadraticTetra()
void SetCellTypeToTriangleStrip()
void SetCellTypeToPixel()
int RequiresInitialization() override
Some cells require initialization prior to access.
int EvaluatePosition(const double x[3], double closestPoint[3], int &subId, double pcoords[3], double &dist2, double weights[]) override
Given a point x[3] return inside(=1), outside(=0) cell, or (-1) computational problem encountered; ev...
void SetCellTypeToQuadraticQuad()
void SetCellTypeToQuadraticLinearQuad()
int GetParametricCenter(double pcoords[3]) override
Return center of the cell in parametric coordinates.
void SetCellTypeToBezierWedge()
static vtkCell * InstantiateCell(int cellType)
Instantiate a new vtkCell based on it's cell type value.
void SetCellTypeToTetra()
~vtkGenericCell() override
static vtkGenericCell * New()
Create handle to any type of cell; by default a vtkEmptyCell.
void Clip(double value, vtkDataArray *cellScalars, vtkIncrementalPointLocator *locator, vtkCellArray *connectivity, vtkPointData *inPd, vtkPointData *outPd, vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd, int insideOut) override
Cut (or clip) the cell based on the input cellScalars and the specified value.
void SetCellTypeToLagrangeTetra()
void Derivatives(int subId, const double pcoords[3], const double *values, int dim, double *derivs) override
Compute derivatives given cell subId and parametric coordinates.
void Contour(double value, vtkDataArray *cellScalars, vtkIncrementalPointLocator *locator, vtkCellArray *verts, vtkCellArray *lines, vtkCellArray *polys, vtkPointData *inPd, vtkPointData *outPd, vtkCellData *inCd, vtkIdType cellId, vtkCellData *outCd) override
Generate contouring primitives.
void SetCellTypeToPolyhedron()
vtkIdType * GetFaces() override
void InterpolateDerivs(const double pcoords[3], double *derivs) override
void SetCellTypeToBezierTetra()
int IsPrimaryCell() override
Return whether this cell type has a fixed topology or whether the topology varies depending on the da...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int IsLinear() override
Non-linear cells require special treatment beyond the usual cell type and connectivity list informati...
void SetCellTypeToQuadraticHexahedron()
void SetCellTypeToVoxel()
void SetPoints(vtkPoints *points)
Set the points object to use for this cell.
double * GetParametricCoords() override
Return a contiguous array of parametric coordinates of the points defining this cell.
vtkCell * GetFace(int faceId) override
Return the face cell from the faceId of the cell.
void SetFaces(vtkIdType *faces) override
void SetCellTypeToTriQuadraticHexahedron()
int IntersectWithLine(const double p1[3], const double p2[3], double tol, double &t, double x[3], double pcoords[3], int &subId) override
Intersect with a ray.
void SetCellTypeToBiQuadraticQuadraticHexahedron()
void SetCellTypeToBiQuadraticQuad()
void SetCellTypeToCubicLine()
int RequiresExplicitFaceRepresentation() override
Determine whether the cell requires explicit face representation, and methods for setting and getting...
int GetNumberOfEdges() override
Return the number of edges in the cell.
void SetCellTypeToConvexPointSet()
int GetCellDimension() override
Return the topological dimensional of the cell (0,1,2, or 3).
void DeepCopy(vtkCell *c) override
Copy this cell by completely copying internal data structures.
void SetCellTypeToVertex()
void SetCellTypeToBezierCurve()
int GetNumberOfFaces() override
Return the number of faces in the cell.
void SetCellTypeToLagrangeTriangle()
void SetCellTypeToWedge()
void SetCellType(int cellType)
This method is used to support the vtkDataSet::GetCell(vtkGenericCell *) method.
int Triangulate(int index, vtkIdList *ptIds, vtkPoints *pts) override
Generate simplices of proper dimension.
void SetCellTypeToTriangle()
void SetCellTypeToQuadraticPyramid()
void SetCellTypeToQuadraticEdge()
int GetCellType() override
Return the type of cell.
void SetCellTypeToBiQuadraticQuadraticWedge()
void SetCellTypeToBiQuadraticTriangle()
void SetCellTypeToPolyLine()
void SetCellTypeToPentagonalPrism()
void SetCellTypeToPolygon()
void SetCellTypeToBezierQuadrilateral()
void SetCellTypeToLagrangeQuadrilateral()
void SetCellTypeToBezierTriangle()
void InterpolateFunctions(const double pcoords[3], double *weights) override
Compute the interpolation functions/derivatives (aka shape functions/derivatives)
void SetCellTypeToHexagonalPrism()
void SetCellTypeToBezierHexahedron()
vtkCell * GetEdge(int edgeId) override
Return the edge cell from the edgeId of the cell.
void SetCellTypeToEmptyCell()
void SetCellTypeToLagrangeHexahedron()
void SetCellTypeToPolyVertex()
void ShallowCopy(vtkCell *c) override
See the vtkCell API for descriptions of these methods.
void SetPointIds(vtkIdList *pointIds)
Set the point ids to use for this cell.
void SetCellTypeToQuadraticTriangle()
list of point or cell ids
Abstract class in support of both point location and point insertion.
a simple class to control print indentation
represent and manipulate point attribute data
represent and manipulate 3D points
@ VTK_QUADRATIC_HEXAHEDRON
@ VTK_BIQUADRATIC_QUADRATIC_HEXAHEDRON
@ VTK_NUMBER_OF_CELL_TYPES
@ VTK_LAGRANGE_QUADRILATERAL
@ VTK_TRIQUADRATIC_HEXAHEDRON
@ VTK_LAGRANGE_HEXAHEDRON
@ VTK_LAGRANGE_TETRAHEDRON
@ VTK_BEZIER_QUADRILATERAL
@ VTK_QUADRATIC_LINEAR_WEDGE
@ VTK_QUADRATIC_LINEAR_QUAD
@ VTK_BIQUADRATIC_QUADRATIC_WEDGE
@ VTK_BIQUADRATIC_TRIANGLE