Pointwise Plugin SDK
|
The unstructured element data class. More...
#include <CaeUnsElement.h>
Public Types | |
enum | ElementType { Bar = PWGM_ELEMTYPE_BAR, Hex = PWGM_ELEMTYPE_HEX, Quad = PWGM_ELEMTYPE_QUAD, Tri = PWGM_ELEMTYPE_TRI, Tet = PWGM_ELEMTYPE_TET, Wedge = PWGM_ELEMTYPE_WEDGE, Pyramid = PWGM_ELEMTYPE_PYRAMID, Point = PWGM_ELEMTYPE_POINT, NumTypes = PWGM_ELEMTYPE_SIZE, LastType = NumTypes - 1, Invalid = NumTypes } |
The valid element type id values. More... | |
Public Member Functions | |
CaeUnsElementData () | |
Default constructor. More... | |
CaeUnsElementData (const CaeUnsElementData &src) | |
Copy constructor. More... | |
CaeUnsElementData (const PWGM_ELEMDATA &ed) | |
Cast/Copy constructor. More... | |
PWGM_ELEMDATA & | elementData () |
Gets a non-const ref to the underlying PWGM_ELEMDATA struct. More... | |
const PWGM_ELEMDATA & | elementData () const |
Gets a const ref to the underlying PWGM_ELEMDATA struct. More... | |
PWP_UINT32 | indexAt (PWP_UINT32 ndx) const |
Gets the global index of ndx'th vertex. More... | |
bool | isOfType (ElementType type) const |
Returns true if element is of the specified ElementType. More... | |
bool | isOfType (PWGM_ENUM_ELEMTYPE type) const |
Returns true if element is of the specified PWGM_ENUM_ELEMTYPE. More... | |
bool | isValid () const |
Returns true if element type is not Invalid. More... | |
operator const PWGM_ELEMDATA & () const | |
Const PWGM_ELEMDATA casting operator. More... | |
operator PWGM_ELEMDATA & () | |
Non-const PWGM_ELEMDATA casting operator. More... | |
CaeUnsElementData & | operator= (const CaeUnsElementData &src) |
Assignment operator. More... | |
CaeUnsElementData & | operator= (const PWGM_ELEMDATA &ed) |
Assignment operator. More... | |
ElementType | type () const |
Gets the element type. More... | |
PWGM_HVERTEX | vertAt (PWP_UINT32 ndx) const |
Gets the handle of ndx'th vertex. More... | |
PWP_UINT32 | vertCount () const |
Gets the number of vertices in the element. More... | |
~CaeUnsElementData () | |
Destructor. More... | |
Static Public Attributes | |
static const PWP_UINT32 | MaxNumVerts = 8 |
The maximum number of vertices per element. More... | |
Protected Member Functions | |
CaeUnsElementData (const PWGM_ELEMDATA &ed, const PWGM_HELEMENT &he) | |
Protected constructor used by the CaeUnsEnumElementData subclass. More... | |
Protected Attributes | |
PWGM_ENUMELEMDATA | eed_ |
The element data. More... | |
The unstructured element data class.
The CaeUnsElementData class represents the data available for an unstructured grid model, block, or path element. This class's data is populated with a call to one of the overloaded CaeUnsElement::data() methods.
Definition at line 58 of file CaeUnsElement.h.
The valid element type id values.
These values are equal to the equivalent C-API PWGM_ENUM_ELEMTYPE type values.
The valid element id values are contiguous from 0 to LastType.
Definition at line 73 of file CaeUnsElement.h.
|
inline |
Default constructor.
Constructs an invalid element data object.
Definition at line 96 of file CaeUnsElement.h.
References eed_, PWGM_ENUMELEMDATA::elemData, PWGM_ENUMELEMDATA::hBlkElement, PWGM_ELEMDATA::index, Invalid, MaxNumVerts, PWGM_ELEMDATA::type, PWGM_ELEMDATA::vert, and PWGM_ELEMDATA::vertCnt.
|
inline |
|
inline |
Cast/Copy constructor.
Definition at line 115 of file CaeUnsElement.h.
References eed_, PWGM_ENUMELEMDATA::elemData, and PWGM_ENUMELEMDATA::hBlkElement.
|
inline |
Destructor.
Definition at line 123 of file CaeUnsElement.h.
|
inlineprotected |
Protected constructor used by the CaeUnsEnumElementData subclass.
Definition at line 234 of file CaeUnsElement.h.
References eed_, PWGM_ENUMELEMDATA::elemData, and PWGM_ENUMELEMDATA::hBlkElement.
|
inline |
Gets a non-const ref to the underlying PWGM_ELEMDATA struct.
Definition at line 185 of file CaeUnsElement.h.
References eed_, and PWGM_ENUMELEMDATA::elemData.
|
inline |
Gets a const ref to the underlying PWGM_ELEMDATA struct.
Definition at line 192 of file CaeUnsElement.h.
References eed_, and PWGM_ENUMELEMDATA::elemData.
|
inline |
Gets the global index of ndx'th vertex.
Definition at line 154 of file CaeUnsElement.h.
References eed_, PWGM_ENUMELEMDATA::elemData, and PWGM_ELEMDATA::index.
|
inline |
Returns true if element is of the specified ElementType.
Definition at line 170 of file CaeUnsElement.h.
References eed_, PWGM_ENUMELEMDATA::elemData, PWGM_ELEMDATA::type, and type().
|
inline |
Returns true if element is of the specified PWGM_ENUM_ELEMTYPE.
Definition at line 162 of file CaeUnsElement.h.
References eed_, PWGM_ENUMELEMDATA::elemData, PWGM_ELEMDATA::type, and type().
|
inline |
Returns true if element type is not Invalid.
Definition at line 178 of file CaeUnsElement.h.
References eed_, PWGM_ENUMELEMDATA::elemData, Invalid, and PWGM_ELEMDATA::type.
|
inline |
Const PWGM_ELEMDATA casting operator.
Definition at line 225 of file CaeUnsElement.h.
References eed_, and PWGM_ENUMELEMDATA::elemData.
|
inline |
Non-const PWGM_ELEMDATA casting operator.
Definition at line 218 of file CaeUnsElement.h.
References eed_, and PWGM_ENUMELEMDATA::elemData.
|
inline |
|
inline |
Assignment operator.
Definition at line 209 of file CaeUnsElement.h.
References eed_, PWGM_ENUMELEMDATA::elemData, and PWGM_ENUMELEMDATA::hBlkElement.
|
inline |
Gets the element type.
Definition at line 130 of file CaeUnsElement.h.
References eed_, PWGM_ENUMELEMDATA::elemData, and PWGM_ELEMDATA::type.
Referenced by isOfType().
|
inline |
Gets the handle of ndx'th vertex.
Definition at line 146 of file CaeUnsElement.h.
References eed_, PWGM_ENUMELEMDATA::elemData, and PWGM_ELEMDATA::vert.
|
inline |
Gets the number of vertices in the element.
Definition at line 138 of file CaeUnsElement.h.
References eed_, PWGM_ENUMELEMDATA::elemData, and PWGM_ELEMDATA::vertCnt.
|
protected |
The element data.
Definition at line 244 of file CaeUnsElement.h.
Referenced by CaeUnsEnumElementData::blockElement(), CaeUnsEnumElementData::blockId(), CaeUnsElementData(), elementData(), CaeUnsEnumElementData::enumElementData(), indexAt(), isOfType(), isValid(), operator const PWGM_ELEMDATA &(), CaeUnsEnumElementData::operator const PWGM_ENUMELEMDATA &(), CaeUnsEnumElementData::operator const PWGM_HELEMENT &(), operator PWGM_ELEMDATA &(), CaeUnsEnumElementData::operator PWGM_ENUMELEMDATA &(), CaeUnsEnumElementData::operator PWGM_HELEMENT &(), operator=(), CaeUnsEnumElementData::operator=(), type(), vertAt(), and vertCount().
|
static |
The maximum number of vertices per element.
Definition at line 62 of file CaeUnsElement.h.
Referenced by CaeUnsElementData().