|
VTK
9.5.2
|
Go to the source code of this file.
Classes | |
| class | vtkGenericAdaptorCell |
| defines cell interface More... | |
Typedefs | |
| typedef vtkObject | Superclass |
Functions | |
| vtkGenericAdaptorCell vtkObject | FindClosestBoundary (int subId, double pcoords[3], vtkGenericCellIterator *&boundary)=0 |
| Put into neighbors' the cells (dimension>boundary->GetDimension())
of the dataset that share the boundary boundary' with this cell. | |
| static vtkTypeBool | IsTypeOf (const char *type) |
| virtual vtkTypeBool | IsA (const char *type) |
| static vtkGenericAdaptorCell * | SafeDownCast (vtkObjectBase *o) |
| virtual vtkObjectBase * | NewInstanceInternal () const |
| vtkGenericAdaptorCell * | NewInstance () const |
| void | PrintSelf (ostream &os, vtkIndent indent) override |
| virtual vtkIdType | GetId ()=0 |
| Unique identification number of the cell over the whole data set. | |
| virtual int | GetType ()=0 |
| Does `this' a cell of a dataset? | |
| virtual int | GetDimension ()=0 |
| Return the topological dimension of the current cell. | |
| virtual int | GetGeometryOrder ()=0 |
| Return the interpolation order of the geometry. | |
| int | IsGeometryLinear () |
| Does the cell have a non-linear interpolation for the geometry? | |
| virtual int | IsPrimary ()=0 |
| Return the interpolation order of attribute `a' on the cell (may differ by cell). | |
| virtual int | GetNumberOfPoints ()=0 |
| Return the number of corner points that compose the cell. | |
| virtual int | GetNumberOfDOFNodes ()=0 |
| Return the number of boundaries of dimension `dim' (or all dimensions greater than 0 and less than GetDimension() if -1) of the cell. | |
| virtual vtkGenericCellIterator * | NewCellIterator ()=0 |
| Return the points of cell into `it'. | |
| virtual void | GetBoundaryIterator (vtkGenericCellIterator *boundaries, int dim=-1)=0 |
| Return the boundaries' cells of dimension dim' (or all dimensions less than GetDimension() if -1) that are part of the boundary of the cell. | |
| virtual int | EvaluatePosition (const double x[3], double *closestPoint, int &subId, double pcoords[3], double &dist2)=0 |
| Is x' inside the current cell?
| |
| virtual void | Clip (double value, vtkImplicitFunction *f, vtkGenericAttributeCollection *attributes, vtkGenericCellTessellator *tess, int insideOut, vtkIncrementalPointLocator *locator, vtkCellArray *connectivity, vtkPointData *outPd, vtkCellData *outCd, vtkPointData *internalPd, vtkPointData *secondaryPd, vtkCellData *secondaryCd) |
| Determine the global coordinates x' from sub-cell subId' and parametric coordinates `pcoords' in the cell. | |
| virtual void | Derivatives (int subId, double pcoords[3], vtkGenericAttribute *attribute, double *derivs)=0 |
| Is there an intersection between the current cell and the ray (p1',p2') according to a tolerance tol'?
| |
| virtual double * | GetBounds () |
| Compute the bounding box of the current cell in `bounds' in global coordinates. | |
| virtual double | GetLength2 () |
| Return the bounding box diagonal squared of the current cell. | |
| virtual double * | GetParametricCoords ()=0 |
| Get the center of the current cell (in parametric coordinates) and place it in `pcoords'. | |
| virtual void | Tessellate (vtkGenericAttributeCollection *attributes, vtkGenericCellTessellator *tess, vtkPoints *points, vtkIncrementalPointLocator *locator, vtkCellArray *cellArray, vtkPointData *internalPd, vtkPointData *pd, vtkCellData *cd, vtkUnsignedCharArray *types) |
| Tessellate the cell if it is not linear or if at least one attribute of attributes' is not linear.
| |
| virtual int | IsOnBoundary ()=0 |
| Is the face `faceId' of the current cell on the exterior boundary of the dataset? | |
| void | Reset () |
| Put into `id' the list of the dataset points that define the corner points of the cell. | |
| void | AllocateTuples (int size) |
| Allocate some memory if Tuples does not exist or is smaller than size. | |
Variables | |
| vtkTetra * | Tetra |
| vtkTriangle * | Triangle |
| vtkLine * | Line |
| vtkVertex * | Vertex |
| vtkQuad * | Quad |
| vtkHexahedron * | Hexa |
| vtkWedge * | Wedge |
| vtkPyramid * | Pyramid |
| vtkDoubleArray * | InternalPoints |
| vtkCellArray * | InternalCellArray |
| vtkDoubleArray * | InternalScalars |
| vtkDoubleArray * | PointDataScalars |
| vtkIdList * | InternalIds |
| vtkDoubleArray * | Scalars |
| vtkPointData * | PointData |
| vtkCellData * | CellData |
| double * | Tuples |
| int | TuplesCapacity |
| double | Bounds [6] |
| typedef vtkObject Superclass |
Definition at line 1 of file vtkGenericAdaptorCell.h.
|
pure virtual |
Put into neighbors' the cells (dimension>boundary->GetDimension()) of the dataset that share the boundary boundary' with this cell.
`this' IS NOT INCLUDED.
/** Compute the closest boundary of the current sub-cell subId' for point pcoord' (in parametric coordinates) in boundary', and return whether the point is inside the cell or not. boundary' is of dimension GetDimension()-1.
|
static |
|
virtual |
|
static |
|
protectedvirtual |
| vtkGenericAdaptorCell * FindClosestBoundary::NewInstance | ( | ) | const |
|
override |
|
pure virtual |
Unique identification number of the cell over the whole data set.
This unique key may not be contiguous.
|
pure virtual |
Does `this' a cell of a dataset?
(otherwise, it is a boundary cell) */ virtual int IsInDataSet() = 0;
/** Return the type of the current cell.
|
pure virtual |
Return the topological dimension of the current cell.
|
pure virtual |
Return the interpolation order of the geometry.
| int FindClosestBoundary::IsGeometryLinear | ( | ) |
Does the cell have a non-linear interpolation for the geometry?
|
pure virtual |
Return the interpolation order of attribute `a' on the cell (may differ by cell).
/** Return the index of the first point centered attribute with the highest order in `ac'.
/** Does the attribute `a' have a non-linear interpolation?
/** Is the cell primary (i.e. not composite) ?
|
pure virtual |
Return the number of corner points that compose the cell.
|
pure virtual |
Return the number of boundaries of dimension `dim' (or all dimensions greater than 0 and less than GetDimension() if -1) of the cell.
When dim is -1, the number of vertices is not included in the count because vertices are a special case: a vertex will have at most a single field value associated with it; DOF nodes may have an arbitrary number of field values associated with them.
/** Accumulated number of DOF nodes of the current cell. A DOF node is a component of cell with a given topological dimension. e.g.: a triangle has 4 DOF: 1 face and 3 edges. An hexahedron has 19 DOF: 1 region, 6 faces, and 12 edges.
The number of vertices is not included in the count because vertices are a special case: a vertex will have at most a single field value associated with it; DOF nodes may have an arbitrary number of field values associated with them.
|
pure virtual |
Return the points of cell into `it'.
/** Create an empty cell iterator. The user is responsible for deleting it.
|
pure virtual |
Return the boundaries' cells of dimension dim' (or all dimensions less than GetDimension() if -1) that are part of the boundary of the cell.
|
pure virtual |
Is x' inside the current cell?
It also evaluates parametric coordinates pcoords', sub-cell id subId' (0 means primary cell), distance squared to the sub-cell in dist2' and closest corner point closestPoint'. dist2' and closestPoint' are not evaluated if closestPoint'==0. If a numerical error occurred, -1 is returned and all other results should be ignored.
|
virtual |
Determine the global coordinates x' from sub-cell subId' and parametric coordinates `pcoords' in the cell.
/** Interpolate the attribute a' at local position pcoords' of the cell into `val'.
/** Interpolate the whole collection of attributes c' at local position pcoords' of the cell into `val'. Only point centered attributes are taken into account.
/** Generate a contour (contouring primitives) for each values' or with respect to an implicit function f'. Contouring is performed on the scalar attribute (attributes->GetActiveAttribute()' attributes->GetActiveComponent()'). Contouring interpolates the attributes->GetNumberOfattributesToInterpolate()' attributes attributes->GetAttributesToInterpolate()'. The locator', verts', lines', polys', outPd' and outCd' are cumulative data arrays over cell iterations: they store the result of each call to Contour():
NOTE: vtkGenericAttributeCollection *attributes' will be replaced by a vtkInformation'.
/** Cut (or clip) the current cell with respect to the contour defined by the value' or the implicit function f' of the scalar attribute (attributes->GetActiveAttribute()',attributes->GetActiveComponent()'). If f' exists, value' is not used. The output is the part of the current cell which is inside the contour. The output is a set of zero, one or more cells of the same topological dimension as the current cell. Normally, cell points whose scalar value is greater than "value" are considered inside. If insideOut' is on, this is reversed. Clipping interpolates the attributes->GetNumberOfattributesToInterpolate()' attributes attributes->GetAttributesToInterpolate()'. locator', connectivity', outPd' and outCd' are cumulative data arrays over cell iterations: they store the result of each call to Clip():
locator' is a points list that merges points as they are inserted (i.e., prevents duplicates).
NOTE: vtkGenericAttributeCollection *attributes' will be replaced by a vtkInformation'.
|
pure virtual |
Is there an intersection between the current cell and the ray (p1',p2') according to a tolerance tol'?
If true, x' is the global intersection, t' is the parametric coordinate for the line, pcoords' are the parametric coordinates for cell. `subId' is the sub-cell where the intersection occurs.
/** Compute derivatives derivs' of the attribute attribute' (from its values at the corner points of the cell) given sub-cell subId' (0 means primary cell) and parametric coordinates pcoords'. Derivatives are in the x-y-z coordinate directions for each data value.
|
virtual |
Compute the bounding box of the current cell in `bounds' in global coordinates.
THREAD SAFE */ virtual void GetBounds(double bounds[6]) = 0;
/** Return the bounding box of the current cell in global coordinates. NOT THREAD SAFE
|
virtual |
Return the bounding box diagonal squared of the current cell.
|
pure virtual |
Get the center of the current cell (in parametric coordinates) and place it in `pcoords'.
If the current cell is a composite, the return value is the sub-cell id that the center is in.
/** Return the distance of the parametric coordinate `pcoords' to the current cell. If inside the cell, a distance of zero is returned. This is used during picking to get the correct cell picked. (The tolerance will occasionally allow cells to be picked who are not really intersected "inside" the cell.)
/** Return a contiguous array of parametric coordinates of the corrner points defining the current cell. In other words, (px,py,pz, px,py,pz, etc..) The coordinates are ordered consistent with the definition of the point ordering for the cell. Note that 3D parametric coordinates are returned no matter what the topological dimension of the cell.
|
virtual |
Tessellate the cell if it is not linear or if at least one attribute of attributes' is not linear.
The output are linear cells of the same dimension than the cell. If the cell is linear and all attributes are linear, the output is just a copy of the current cell. points', cellArray', pd' and cd' are cumulative output data arrays over cell iterations: they store the result of each call to Tessellate(). internalPd' is initialized by the calling filter and stores the result of the tessellation. If it is not null, types' is filled with the types of the linear cells. types' is null when it is called from vtkGenericGeometryFilter and not null when it is called from vtkGenericDatasetTessellator.
|
pure virtual |
Is the face `faceId' of the current cell on the exterior boundary of the dataset?
/** Is the cell on the exterior boundary of the dataset?
| void Reset | ( | ) |
Put into `id' the list of the dataset points that define the corner points of the cell.
/** Tessellate face `index' of the cell. See Tessellate() for further explanations.
/** Return the ids of the vertices defining face `faceId'. Ids are related to the cell, not to the dataset.
/** Return the number of vertices defining face `faceId'.
/** Return the ids of the vertices defining edge `edgeId'. Ids are related to the cell, not to the dataset.
protected: vtkGenericAdaptorCell(); ~vtkGenericAdaptorCell() override;
/** Reset internal structures.
| void AllocateTuples | ( | int | size | ) |
Allocate some memory if Tuples does not exist or is smaller than size.
| vtkTetra* Tetra |
Definition at line 578 of file vtkGenericAdaptorCell.h.
| vtkTriangle* Triangle |
Definition at line 579 of file vtkGenericAdaptorCell.h.
| vtkLine* Line |
Definition at line 580 of file vtkGenericAdaptorCell.h.
| vtkVertex* Vertex |
Definition at line 581 of file vtkGenericAdaptorCell.h.
| vtkQuad* Quad |
Definition at line 582 of file vtkGenericAdaptorCell.h.
| vtkHexahedron* Hexa |
Definition at line 583 of file vtkGenericAdaptorCell.h.
| vtkWedge* Wedge |
Definition at line 584 of file vtkGenericAdaptorCell.h.
| vtkPyramid* Pyramid |
Definition at line 585 of file vtkGenericAdaptorCell.h.
| vtkDoubleArray* InternalPoints |
Definition at line 592 of file vtkGenericAdaptorCell.h.
| vtkCellArray* InternalCellArray |
Definition at line 593 of file vtkGenericAdaptorCell.h.
| vtkDoubleArray* InternalScalars |
Definition at line 594 of file vtkGenericAdaptorCell.h.
| vtkDoubleArray* PointDataScalars |
Definition at line 595 of file vtkGenericAdaptorCell.h.
| vtkIdList* InternalIds |
Definition at line 597 of file vtkGenericAdaptorCell.h.
| vtkDoubleArray* Scalars |
Definition at line 600 of file vtkGenericAdaptorCell.h.
| vtkPointData* PointData |
Definition at line 601 of file vtkGenericAdaptorCell.h.
| vtkCellData* CellData |
Definition at line 602 of file vtkGenericAdaptorCell.h.
| double* Tuples |
Definition at line 606 of file vtkGenericAdaptorCell.h.
| int TuplesCapacity |
Definition at line 607 of file vtkGenericAdaptorCell.h.
| double Bounds[6] |
Definition at line 610 of file vtkGenericAdaptorCell.h.