Pointwise Plugin SDK
|
The model unstructured element data class. More...
#include <CaeUnsElement.h>
Public Member Functions | |
PWGM_HELEMENT & | blockElement () |
Gets a non-const ref to the owning block's element handle. More... | |
const PWGM_HELEMENT & | blockElement () const |
Gets a const ref to the owning block's element handle. More... | |
PWP_UINT32 | blockId () const |
Gets the id (index) of the element's owning block. More... | |
CaeUnsEnumElementData () | |
Default constructor. More... | |
CaeUnsEnumElementData (const CaeUnsEnumElementData &src) | |
Copy constructor. More... | |
CaeUnsEnumElementData (const PWGM_ENUMELEMDATA &eed) | |
Cast/Copy constructor. More... | |
PWGM_ENUMELEMDATA & | enumElementData () |
Gets a non-const ref to the underlying PWGM_ENUMELEMDATA struct. More... | |
const PWGM_ENUMELEMDATA & | enumElementData () const |
Gets a const ref to the underlying PWGM_ENUMELEMDATA struct. More... | |
operator const PWGM_ENUMELEMDATA & () const | |
Const PWGM_ENUMELEMDATA casting operator. More... | |
operator const PWGM_HELEMENT & () const | |
Const PWGM_HELEMENT casting operator. More... | |
operator PWGM_ENUMELEMDATA & () | |
Non-const PWGM_ENUMELEMDATA casting operator. More... | |
operator PWGM_HELEMENT & () | |
Non-const PWGM_HELEMENT casting operator. More... | |
CaeUnsEnumElementData & | operator= (const CaeUnsEnumElementData &src) |
Assignment operator. More... | |
CaeUnsEnumElementData & | operator= (const PWGM_ENUMELEMDATA &eed) |
Assignment operator. More... | |
~CaeUnsEnumElementData () | |
Destructor. More... | |
Public Member Functions inherited from CaeUnsElementData | |
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... | |
Additional Inherited Members | |
Public Types inherited from CaeUnsElementData | |
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... | |
Static Public Member Functions inherited from CaeUnsElementData | |
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 inherited from CaeUnsElementData | |
static const PWP_UINT32 | MaxNumVerts = 8 |
The maximum number of vertices per element. More... | |
Protected Member Functions inherited from CaeUnsElementData | |
CaeUnsElementData (const PWGM_ELEMDATA &ed, const PWGM_HELEMENT &he) | |
Protected constructor used by the CaeUnsEnumElementData subclass. More... | |
Protected Attributes inherited from CaeUnsElementData | |
PWGM_ENUMELEMDATA | eed_ |
The element data. More... | |
The model unstructured element data class.
The CaeUnsEnumElementData class represents the data available for an unstructured grid model element. This class's data is populated with a call to one of the overloaded CaeUnsElement::data() methods. Grid model element indices are consistent with the owner/neighbor cell indices returned by the CaeFaceStreamHandler interface.
This class is equivalent to CaeUnsElementData with the addition of information about the block that owns this element.
Definition at line 388 of file CaeUnsElement.h.
|
inline |
Default constructor.
Constructs an invalid element data object.
Definition at line 396 of file CaeUnsElement.h.
|
inline |
Copy constructor.
Definition at line 403 of file CaeUnsElement.h.
|
inline |
Cast/Copy constructor.
Definition at line 410 of file CaeUnsElement.h.
|
inline |
Destructor.
Definition at line 417 of file CaeUnsElement.h.
|
inline |
Gets a non-const ref to the owning block's element handle.
Definition at line 454 of file CaeUnsElement.h.
References CaeUnsElementData::eed_, and PWGM_ENUMELEMDATA::hBlkElement.
|
inline |
Gets a const ref to the owning block's element handle.
Definition at line 461 of file CaeUnsElement.h.
References CaeUnsElementData::eed_, and PWGM_ENUMELEMDATA::hBlkElement.
|
inline |
Gets the id (index) of the element's owning block.
This index can be used to construct an unstructured block object.
Definition at line 481 of file CaeUnsElement.h.
References CaeUnsElementData::eed_, PWGM_ENUMELEMDATA::hBlkElement, and PWGM_HELEMENT_PID.
|
inline |
Gets a non-const ref to the underlying PWGM_ENUMELEMDATA struct.
Definition at line 440 of file CaeUnsElement.h.
References CaeUnsElementData::eed_.
|
inline |
Gets a const ref to the underlying PWGM_ENUMELEMDATA struct.
Definition at line 447 of file CaeUnsElement.h.
References CaeUnsElementData::eed_.
|
inline |
Const PWGM_ENUMELEMDATA casting operator.
Definition at line 495 of file CaeUnsElement.h.
References CaeUnsElementData::eed_.
|
inline |
Const PWGM_HELEMENT casting operator.
Definition at line 509 of file CaeUnsElement.h.
References CaeUnsElementData::eed_, and PWGM_ENUMELEMDATA::hBlkElement.
|
inline |
Non-const PWGM_ENUMELEMDATA casting operator.
Definition at line 488 of file CaeUnsElement.h.
References CaeUnsElementData::eed_.
|
inline |
Non-const PWGM_HELEMENT casting operator.
Definition at line 502 of file CaeUnsElement.h.
References CaeUnsElementData::eed_, and PWGM_ENUMELEMDATA::hBlkElement.
|
inline |
Assignment operator.
Definition at line 423 of file CaeUnsElement.h.
References CaeUnsElementData::eed_.
|
inline |
Assignment operator.
Definition at line 432 of file CaeUnsElement.h.
References CaeUnsElementData::eed_.