Pointwise Plugin SDK
|
The unstructured element class. More...
#include <CaeUnsElement.h>
Public Member Functions | |
CaeUnsElement () | |
Default constructor. More... | |
CaeUnsElement (const CaeUnsElement &src) | |
Copy constructor. More... | |
CaeUnsElement (const CaeUnsElementGroup &group, PWP_UINT32 ndx=0) | |
Group and element index constructor. More... | |
bool | data (CaeUnsElementData &data) const |
Get the element's connectivity data. More... | |
bool | data (CaeUnsEnumElementData &data) const |
Get the element's connectivity data. More... | |
bool | data (PWGM_ELEMDATA &data) const |
Get the element's connectivity data. More... | |
bool | data (PWGM_ENUMELEMDATA &data) const |
Get the element's connectivity data. More... | |
PWP_UINT32 | index () const |
Get the element's index. More... | |
bool | isValid () const |
Determines an element's validity. More... | |
CaeUnsGridModel | model () const |
Gets the unstructured grid model of which this element is a member. More... | |
CaeUnsElement & | moveFirst (const CaeUnsElementGroup &group) |
Rebinds an instance to the first element in an element group. More... | |
CaeUnsElement & | moveNext () |
Rebinds an instance to the next element in an element group. More... | |
CaeUnsElement & | movePrev () |
Rebinds an instance to the previous element in an element group. More... | |
CaeUnsElement & | moveTo (const CaeUnsElementGroup &group, PWP_UINT32 ndx) |
Rebinds an instance to a specific model element. More... | |
operator PWGM_HELEMENT () const | |
The PWGM_HELEMENT cast operator. More... | |
bool | operator!= (const CaeUnsElement &rhs) const |
Compares two CaeUnsElement instances for inequality. More... | |
CaeUnsElement & | operator++ () |
Prefix increment to the next element in an element group. More... | |
CaeUnsElement | operator++ (int) |
Postfix increment to the next element in an element group. More... | |
CaeUnsElement & | operator-- () |
Prefix decrement to the previous element in an element group. More... | |
CaeUnsElement | operator-- (int) |
Postfix decrement to the previous element in an element group. More... | |
bool | operator< (const CaeUnsElement &rhs) const |
Compares the relative order of two CaeUnsElement instances. More... | |
CaeUnsElement & | operator= (const CaeUnsElement &rhs) |
Assignment operator. More... | |
bool | operator== (const CaeUnsElement &rhs) const |
Compares two CaeUnsElement instances for equality. More... | |
bool | operator> (const PWGM_HELEMENT &rhs) |
Compares the relative order of two CaeUnsElement instances. More... | |
virtual | ~CaeUnsElement () |
Destructor. More... | |
Private Attributes | |
const CaeUnsElementGroup * | group_ |
The owning element group. More... | |
PWGM_HELEMENT | h_ |
The bound PWGM_HELEMENT. More... | |
The unstructured element class.
The CaeUnsElement class represents a single unstructured grid model element. The elements are indexed starting from 0 to CaeUnsElementGroup::elementCount() - 1.
Currently, only 8-point HEX, 6-point WEDGE (PRISM), 5-point PYRAMID and 4-point TET 3D elements are supported. See Cell Connectivity. In addition, only 3-point TRI and 4-point QUAD 2D elements are supported.
A CaeUnsElement object is aware of its relative position in its element group. As a result, a given element object can be moved (iterated) to its previous or next neighbor element. It can also be moved to the first element or to a element at a given index. After being moved, a CaeUnsElement object will return information about the grid element at its current position.
See CaeUnsBlock and CaeUnsPatch for usage.
Definition at line 443 of file CaeUnsElement.h.
|
inline |
Default constructor.
Constructs an invalid element.
Definition at line 452 of file CaeUnsElement.h.
References h_.
|
inline |
Group and element index constructor.
Constructs an unstructured element object bound to the element at the specified index.
group | The owning unstructured element group. |
ndx | The element's index within the group. |
Definition at line 464 of file CaeUnsElement.h.
References CaeUnsElementGroup::enumElements(), group_, and h_.
|
inline |
Copy constructor.
Binds this element to the same element as src.
src | An element instance. |
Definition at line 474 of file CaeUnsElement.h.
|
inlinevirtual |
Destructor.
Definition at line 480 of file CaeUnsElement.h.
|
inline |
Get the element's connectivity data.
data | The CaeUnsElementData object. |
Definition at line 510 of file CaeUnsElement.h.
References data(), h_, and PwElemDataMod().
|
inline |
Get the element's connectivity data.
data | The CaeUnsEnumElementData object. |
Definition at line 528 of file CaeUnsElement.h.
References data(), h_, and PwElemDataModEnum().
|
inline |
Get the element's connectivity data.
data | The PWGM_ELEMDATA buffer. |
Definition at line 501 of file CaeUnsElement.h.
References h_, and PwElemDataMod().
Referenced by data().
|
inline |
Get the element's connectivity data.
data | The PWGM_ENUMELEMDATA buffer. |
Definition at line 519 of file CaeUnsElement.h.
References data(), h_, and PwElemDataModEnum().
|
inline |
Get the element's index.
Definition at line 492 of file CaeUnsElement.h.
References h_, and PWGM_HELEMENT_ID.
Referenced by moveNext(), movePrev(), operator++(), and operator--().
|
inline |
Determines an element's validity.
Definition at line 534 of file CaeUnsElement.h.
References h_, and PWGM_HELEMENT_ISVALID.
|
inline |
Gets the unstructured grid model of which this element is a member.
Definition at line 484 of file CaeUnsElement.h.
References h_, and PWGM_HELEMENT_MODEL.
|
inline |
Rebinds an instance to the first element in an element group.
group | The owning unstructured element group. |
Definition at line 573 of file CaeUnsElement.h.
References CaeUnsElementGroup::enumElements(), group_, and h_.
|
inline |
Rebinds an instance to the next element in an element group.
Definition at line 585 of file CaeUnsElement.h.
References CaeUnsElementGroup::enumElements(), group_, h_, and index().
|
inline |
Rebinds an instance to the previous element in an element group.
Definition at line 626 of file CaeUnsElement.h.
References CaeUnsElementGroup::enumElements(), group_, h_, and index().
|
inline |
Rebinds an instance to a specific model element.
group | The owning unstructured element group. |
ndx | The element's index. |
Definition at line 559 of file CaeUnsElement.h.
References CaeUnsElementGroup::enumElements(), group_, and h_.
|
inline |
|
inline |
Compares two CaeUnsElement instances for inequality.
Definition at line 680 of file CaeUnsElement.h.
|
inline |
Prefix increment to the next element in an element group.
Definition at line 599 of file CaeUnsElement.h.
References CaeUnsElementGroup::enumElements(), group_, h_, and index().
|
inline |
Postfix increment to the next element in an element group.
Definition at line 612 of file CaeUnsElement.h.
References CaeUnsElementGroup::enumElements(), group_, h_, and index().
|
inline |
Prefix decrement to the previous element in an element group.
Definition at line 640 of file CaeUnsElement.h.
References CaeUnsElementGroup::enumElements(), group_, h_, and index().
|
inline |
Postfix decrement to the previous element in an element group.
Definition at line 653 of file CaeUnsElement.h.
References CaeUnsElementGroup::enumElements(), group_, h_, and index().
|
inline |
Compares the relative order of two CaeUnsElement instances.
Definition at line 688 of file CaeUnsElement.h.
|
inline |
Assignment operator.
Rebind this instance to the same element as rhs.
rhs | An element instance. |
Definition at line 544 of file CaeUnsElement.h.
|
inline |
Compares two CaeUnsElement instances for equality.
Definition at line 671 of file CaeUnsElement.h.
|
inline |
Compares the relative order of two CaeUnsElement instances.
Definition at line 702 of file CaeUnsElement.h.
|
private |
The owning element group.
Definition at line 714 of file CaeUnsElement.h.
Referenced by CaeUnsElement(), moveFirst(), moveNext(), movePrev(), moveTo(), operator++(), operator--(), operator<(), operator=(), and operator==().
|
private |
The bound PWGM_HELEMENT.
Definition at line 715 of file CaeUnsElement.h.
Referenced by CaeUnsElement(), data(), index(), isValid(), model(), moveFirst(), moveNext(), movePrev(), moveTo(), operator PWGM_HELEMENT(), operator++(), operator--(), operator<(), operator=(), and operator==().