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, Polyhedron = PWGM_ELEMTYPE_POLYH, Polygon = PWGM_ELEMTYPE_POLYG, 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... | |
template<typename FTOR > | |
void | walkPolyhedronFaces (const FTOR &f) |
If element is a polyhedron, functor f is invoked once for each face of the element. This call does nothing if element is not a polyhedron. More... | |
~CaeUnsElementData () | |
Destructor. More... | |
Static Public Member Functions | |
template<typename FTOR > | |
static void | walkPolyhedronFaces (const PWGM_POLYELEMDATA &ped, const FTOR &f) |
Invokes functor f once for each polygon face of the polyhedron ped. 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 59 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 74 of file CaeUnsElement.h.
|
inline |
Default constructor.
Constructs an invalid element data object.
Definition at line 99 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 118 of file CaeUnsElement.h.
References eed_, PWGM_ENUMELEMDATA::elemData, and PWGM_ENUMELEMDATA::hBlkElement.
|
inline |
Destructor.
Definition at line 126 of file CaeUnsElement.h.
|
inlineprotected |
Protected constructor used by the CaeUnsEnumElementData subclass.
Definition at line 335 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 189 of file CaeUnsElement.h.
References eed_, and PWGM_ENUMELEMDATA::elemData.
|
inline |
Gets a const ref to the underlying PWGM_ELEMDATA struct.
Definition at line 197 of file CaeUnsElement.h.
References eed_, and PWGM_ENUMELEMDATA::elemData.
|
inline |
Gets the global index of ndx'th vertex.
Definition at line 157 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 173 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 165 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 181 of file CaeUnsElement.h.
References eed_, PWGM_ENUMELEMDATA::elemData, Invalid, and PWGM_ELEMDATA::type.
|
inline |
Const PWGM_ELEMDATA casting operator.
Definition at line 230 of file CaeUnsElement.h.
References eed_, and PWGM_ENUMELEMDATA::elemData.
|
inline |
Non-const PWGM_ELEMDATA casting operator.
Definition at line 223 of file CaeUnsElement.h.
References eed_, and PWGM_ENUMELEMDATA::elemData.
|
inline |
|
inline |
Assignment operator.
Definition at line 214 of file CaeUnsElement.h.
References eed_, PWGM_ENUMELEMDATA::elemData, and PWGM_ENUMELEMDATA::hBlkElement.
|
inline |
Gets the element type.
Definition at line 133 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 149 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 141 of file CaeUnsElement.h.
References eed_, PWGM_ENUMELEMDATA::elemData, and PWGM_ELEMDATA::vertCnt.
|
protected |
The element data.
Definition at line 345 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(), vertCount(), and walkPolyhedronFaces().
|
static |
The maximum number of vertices per element.
Definition at line 63 of file CaeUnsElement.h.
Referenced by CaeUnsElementData().