VTK
|
Implementation of vtkGenericAdaptorCell. More...
#include <vtkBridgeCell.h>
Public Types | |
typedef vtkGenericAdaptorCell | Superclass |
Public Types inherited from vtkGenericAdaptorCell | |
typedef vtkObject | Superclass |
Public Types inherited from vtkObject | |
typedef vtkObjectBase | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkBridgeCell * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual vtkIdType | GetId () |
virtual int | IsInDataSet () |
virtual int | GetType () |
virtual int | GetDimension () |
virtual int | GetGeometryOrder () |
int | IsGeometryLinear () |
virtual int | GetAttributeOrder (vtkGenericAttribute *a) |
int | IsAttributeLinear (vtkGenericAttribute *a) |
virtual int | IsPrimary () |
virtual int | GetNumberOfPoints () |
virtual int | GetNumberOfBoundaries (int dim=-1) |
virtual int | GetNumberOfDOFNodes () |
virtual void | GetPointIterator (vtkGenericPointIterator *it) |
virtual vtkGenericCellIterator * | NewCellIterator () |
virtual void | GetBounds (double bounds[6]) |
virtual double * | GetBounds () |
virtual double | GetLength2 () |
virtual int | GetParametricCenter (double pcoords[3]) |
virtual double | GetParametricDistance (double pcoords[3]) |
int * | GetFaceArray (int faceId) |
int | GetNumberOfVerticesOnFace (int faceId) |
int * | GetEdgeArray (int edgeId) |
void | DeepCopy (vtkBridgeCell *other) |
virtual void | GetBoundaryIterator (vtkGenericCellIterator *boundaries, int dim=-1) |
virtual int | CountNeighbors (vtkGenericAdaptorCell *boundary) |
void | CountEdgeNeighbors (int *sharing) |
virtual void | GetNeighbors (vtkGenericAdaptorCell *boundary, vtkGenericCellIterator *neighbors) |
virtual int | FindClosestBoundary (int subId, double pcoords[3], vtkGenericCellIterator *&boundary) |
virtual int | EvaluatePosition (double x[3], double *closestPoint, int &subId, double pcoords[3], double &dist2) |
virtual void | EvaluateLocation (int subId, double pcoords[3], double x[3]) |
virtual void | InterpolateTuple (vtkGenericAttribute *a, double pcoords[3], double *val) |
virtual void | InterpolateTuple (vtkGenericAttributeCollection *c, double pcoords[3], double *val) |
virtual int | IntersectWithLine (double p1[3], double p2[3], double tol, double &t, double x[3], double pcoords[3], int &subId) |
virtual void | Derivatives (int subId, double pcoords[3], vtkGenericAttribute *attribute, double *derivs) |
virtual double * | GetParametricCoords () |
virtual int | IsFaceOnBoundary (vtkIdType faceId) |
virtual int | IsOnBoundary () |
virtual void | GetPointIds (vtkIdType *id) |
void | Init (vtkBridgeDataSet *ds, vtkIdType cellid) |
void | InitWithCell (vtkCell *c, vtkIdType id) |
Public Member Functions inherited from vtkGenericAdaptorCell | |
vtkGenericAdaptorCell * | NewInstance () const |
int | IsGeometryLinear () |
virtual int | GetHighestOrderAttribute (vtkGenericAttributeCollection *ac) |
int | IsAttributeLinear (vtkGenericAttribute *a) |
virtual void | Contour (vtkContourValues *values, vtkImplicitFunction *f, vtkGenericAttributeCollection *attributes, vtkGenericCellTessellator *tess, vtkIncrementalPointLocator *locator, vtkCellArray *verts, vtkCellArray *lines, vtkCellArray *polys, vtkPointData *outPd, vtkCellData *outCd, vtkPointData *internalPd, vtkPointData *secondaryPd, vtkCellData *secondaryCd) |
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) |
virtual void | Tessellate (vtkGenericAttributeCollection *attributes, vtkGenericCellTessellator *tess, vtkPoints *points, vtkIncrementalPointLocator *locator, vtkCellArray *cellArray, vtkPointData *internalPd, vtkPointData *pd, vtkCellData *cd, vtkUnsignedCharArray *types) |
virtual void | TriangulateFace (vtkGenericAttributeCollection *attributes, vtkGenericCellTessellator *tess, int index, vtkPoints *points, vtkIncrementalPointLocator *locator, vtkCellArray *cellArray, vtkPointData *internalPd, vtkPointData *pd, vtkCellData *cd) |
Public Member Functions inherited from vtkObject | |
vtkObject * | NewInstance () const |
virtual void | DebugOn () |
virtual void | DebugOff () |
bool | GetDebug () |
void | SetDebug (bool debugFlag) |
virtual void | Modified () |
virtual unsigned long | GetMTime () |
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
vtkCommand * | GetCommand (unsigned long tag) |
void | RemoveObserver (vtkCommand *) |
void | RemoveObservers (unsigned long event, vtkCommand *) |
void | RemoveObservers (const char *event, vtkCommand *) |
int | HasObserver (unsigned long event, vtkCommand *) |
int | HasObserver (const char *event, vtkCommand *) |
void | RemoveObserver (unsigned long tag) |
void | RemoveObservers (unsigned long event) |
void | RemoveObservers (const char *event) |
void | RemoveAllObservers () |
int | HasObserver (unsigned long event) |
int | HasObserver (const char *event) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
int | InvokeEvent (unsigned long event, void *callData) |
int | InvokeEvent (const char *event, void *callData) |
int | InvokeEvent (unsigned long event) |
int | InvokeEvent (const char *event) |
Public Member Functions inherited from vtkObjectBase | |
const char * | GetClassName () const |
virtual void | Delete () |
virtual void | FastDelete () |
void | Print (ostream &os) |
virtual void | Register (vtkObjectBase *o) |
virtual void | UnRegister (vtkObjectBase *o) |
void | SetReferenceCount (int) |
void | PrintRevisions (ostream &) |
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
int | GetReferenceCount () |
Static Public Member Functions | |
static vtkBridgeCell * | New () |
static int | IsTypeOf (const char *type) |
static vtkBridgeCell * | SafeDownCast (vtkObjectBase *o) |
Static Public Member Functions inherited from vtkGenericAdaptorCell | |
static int | IsTypeOf (const char *type) |
static vtkGenericAdaptorCell * | SafeDownCast (vtkObjectBase *o) |
Static Public Member Functions inherited from vtkObject | |
static int | IsTypeOf (const char *type) |
static vtkObject * | SafeDownCast (vtkObjectBase *o) |
static vtkObject * | New () |
static void | BreakOnError () |
static void | SetGlobalWarningDisplay (int val) |
static void | GlobalWarningDisplayOn () |
static void | GlobalWarningDisplayOff () |
static int | GetGlobalWarningDisplay () |
Static Public Member Functions inherited from vtkObjectBase | |
static int | IsTypeOf (const char *name) |
static vtkObjectBase * | New () |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkBridgeCell () | |
virtual | ~vtkBridgeCell () |
void | AllocateWeights () |
void | InterpolationFunctions (double pcoords[3], double *weights) |
Protected Member Functions inherited from vtkGenericAdaptorCell | |
vtkGenericAdaptorCell () | |
virtual | ~vtkGenericAdaptorCell () |
void | Reset () |
void | AllocateTuples (int size) |
Protected Member Functions inherited from vtkObject | |
vtkObject () | |
virtual | ~vtkObject () |
virtual void | RegisterInternal (vtkObjectBase *, int check) |
virtual void | UnRegisterInternal (vtkObjectBase *, int check) |
void | InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL) |
void | InternalReleaseFocus () |
Protected Member Functions inherited from vtkObjectBase | |
vtkObjectBase () | |
virtual | ~vtkObjectBase () |
virtual void | CollectRevisions (ostream &) |
virtual void | ReportReferences (vtkGarbageCollector *) |
vtkObjectBase (const vtkObjectBase &) | |
void | operator= (const vtkObjectBase &) |
Protected Attributes | |
vtkCell * | Cell |
vtkBridgeDataSet * | DataSet |
vtkIdType | Id |
int | BoolIsInDataSet |
vtkBridgeCellIterator * | InternalIterator |
double * | Weights |
int | WeightsCapacity |
Protected Attributes inherited from vtkGenericAdaptorCell | |
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] |
Protected Attributes inherited from vtkObject | |
bool | Debug |
vtkTimeStamp | MTime |
vtkSubjectHelper * | SubjectHelper |
Protected Attributes inherited from vtkObjectBase | |
vtkAtomicInt32 | ReferenceCount |
vtkWeakPointerBase ** | WeakPointers |
Friends | |
class | vtkBridgeDataSet |
class | vtkBridgeAttribute |
class | vtkBridgeCellIterator |
class | vtkBridgeCellIteratorOnDataSet |
class | vtkBridgeCellIteratorOne |
class | vtkBridgeCellIteratorOnCellBoundaries |
class | vtkBridgePointIteratorOnCell |
Implementation of vtkGenericAdaptorCell.
It is just an example that show how to implement the Generic. It is also used for testing and evaluating the Generic.
Definition at line 37 of file vtkBridgeCell.h.
Definition at line 41 of file vtkBridgeCell.h.
|
protected |
|
protectedvirtual |
|
static |
|
static |
|
virtual |
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkGenericAdaptorCell.
|
static |
|
protectedvirtual |
Reimplemented from vtkGenericAdaptorCell.
vtkBridgeCell* vtkBridgeCell::NewInstance | ( | ) | const |
|
virtual |
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from vtkGenericAdaptorCell.
|
virtual |
Unique identification number of the cell over the whole data set. This unique key may not be contiguous.
Implements vtkGenericAdaptorCell.
|
virtual |
Does `this' a cell of a dataset? (otherwise, it is a boundary cell)
Implements vtkGenericAdaptorCell.
|
virtual |
Type of the current cell.
Implements vtkGenericAdaptorCell.
|
virtual |
Topological dimension of the current cell.
Implements vtkGenericAdaptorCell.
|
virtual |
Interpolation order of the geometry.
Implements vtkGenericAdaptorCell.
int vtkBridgeCell::IsGeometryLinear | ( | ) |
Does the cell have no higher-order interpolation for geometry?
|
virtual |
Interpolation order of attribute `a' on the cell (may differ by cell).
Implements vtkGenericAdaptorCell.
int vtkBridgeCell::IsAttributeLinear | ( | vtkGenericAttribute * | a | ) |
Does the attribute `a' have no higher-order interpolation for the cell?
|
virtual |
Is the cell primary (i.e. not composite) ?
Implements vtkGenericAdaptorCell.
|
virtual |
Number of points that compose the cell.
Implements vtkGenericAdaptorCell.
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.
Implements vtkGenericAdaptorCell.
|
virtual |
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.
Implements vtkGenericAdaptorCell.
|
virtual |
|
virtual |
Create an empty cell iterator.
Implements vtkGenericAdaptorCell.
|
virtual |
Return in `boundaries' the cells of dimension `dim' (or all dimensions less than GetDimension() if -1) that are part of the boundary of the cell.
Implements vtkGenericAdaptorCell.
|
virtual |
Number of cells (dimension>boundary->GetDimension()) of the dataset that share the boundary `boundary' of `this'. `this' IS NOT INCLUDED.
Implements vtkGenericAdaptorCell.
|
virtual |
Number of cells (dimension>boundary->GetDimension()) of the dataset that share the boundary `boundary' of `this'. `this' IS NOT INCLUDED.
Implements vtkGenericAdaptorCell.
|
virtual |
Put into `neighbors' the cells (dimension>boundary->GetDimension()) of the dataset that share the boundary `boundary' of `this'. `this' IS NOT INCLUDED.
Implements vtkGenericAdaptorCell.
|
virtual |
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.
Implements vtkGenericAdaptorCell.
|
virtual |
Is `x' inside the current cell? It also evaluate 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.
Implements vtkGenericAdaptorCell.
Determine global coordinates `x' from sub-cell `subId' and parametric coordinates `pcoords' in the cell.
Implements vtkGenericAdaptorCell.
|
virtual |
Interpolate the attribute `a' at local position `pcoords' of the cell into `val'.
Implements vtkGenericAdaptorCell.
|
virtual |
Interpolate the whole collection of attributes `c' at local position `pcoords' of the cell into `val'. Only point centered attributes are taken into account.
Implements vtkGenericAdaptorCell.
|
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.
Implements vtkGenericAdaptorCell.
|
virtual |
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.
Implements vtkGenericAdaptorCell.
|
virtual |
Compute the bounding box of the current cell in `bounds' in global coordinates. THREAD SAFE
Implements vtkGenericAdaptorCell.
|
virtual |
Return the bounding box of the current cell in global coordinates. NOT THREAD SAFE
Reimplemented from vtkGenericAdaptorCell.
|
virtual |
Bounding box diagonal squared of the current cell.
Reimplemented from vtkGenericAdaptorCell.
Center of the current cell in parametric coordinates `pcoords'. If the current cell is a composite, the return value is the sub-cell id that the center is in.
Implements vtkGenericAdaptorCell.
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.)
Implements vtkGenericAdaptorCell.
|
virtual |
Return a contiguous array of parametric coordinates of the 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. It includes the DOF nodes.
Implements vtkGenericAdaptorCell.
Return a contiguous array of parametric coordinates of the 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. It includes the DOF nodes.
Implements vtkGenericAdaptorCell.
|
virtual |
Return a contiguous array of parametric coordinates of the 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. It includes the DOF nodes.
Implements vtkGenericAdaptorCell.
|
virtual |
Put into `id' the list of ids the point of the cell.
Implements vtkGenericAdaptorCell.
Return the ids of the vertices defining face `faceId'.
Implements vtkGenericAdaptorCell.
Return the number of vertices defining face `faceId'
Implements vtkGenericAdaptorCell.
Return the ids of the vertices defining edge `edgeId'.
Implements vtkGenericAdaptorCell.
void vtkBridgeCell::Init | ( | vtkBridgeDataSet * | ds, |
vtkIdType | cellid | ||
) |
Used internally for the Bridge. Initialize the cell from a dataset `ds' and `cellid'.
Used internally for the Bridge. Initialize the cell from a cell `c' and an `id'.
void vtkBridgeCell::DeepCopy | ( | vtkBridgeCell * | other | ) |
Recursive copy of `other' into `this'.
|
protected |
Allocate an array for the weights, only if it does not exist yet or if the capacity is too small.
Compute the weights for parametric coordinates `pcoords'.
|
friend |
Definition at line 419 of file vtkBridgeCell.h.
|
friend |
Definition at line 420 of file vtkBridgeCell.h.
|
friend |
Definition at line 421 of file vtkBridgeCell.h.
|
friend |
Definition at line 422 of file vtkBridgeCell.h.
|
friend |
Definition at line 423 of file vtkBridgeCell.h.
|
friend |
Definition at line 424 of file vtkBridgeCell.h.
|
friend |
Definition at line 425 of file vtkBridgeCell.h.
|
protected |
Definition at line 427 of file vtkBridgeCell.h.
|
protected |
Definition at line 428 of file vtkBridgeCell.h.
|
protected |
Definition at line 429 of file vtkBridgeCell.h.
|
protected |
Definition at line 430 of file vtkBridgeCell.h.
|
protected |
Definition at line 431 of file vtkBridgeCell.h.
|
protected |
Definition at line 433 of file vtkBridgeCell.h.
|
protected |
Definition at line 434 of file vtkBridgeCell.h.