Go to the documentation of this file.
9 #if !defined(PWGM_HIDE_UNSTRUCTURED_API)
11 #ifndef _CAEUNSELEMENT_H_
12 #define _CAEUNSELEMENT_H_
453 PWGM_HELEMENT_SET_INVALID(
h_);
681 return !(rhs == *
this);
704 return !(*
this == rhs) && !(*
this < rhs);
718 #endif // _CAEUNSELEMENT_H_
720 #endif // PWGM_HIDE_UNSTRUCTURED_API
@ Hex
3D, 6-sided (block) grid
Grid element handle declaration.
PWP_BOOL PwElemDataModEnum(PWGM_HELEMENT element, PWGM_ENUMELEMDATA *pEnumElemData)
Get the enumerated element data relative to the model's index space.
CaeUnsElement(const CaeUnsElement &src)
Copy constructor.
PWP_UINT32 indexAt(PWP_UINT32 ndx) const
Gets the global index of ndx'th vertex.
PWGM_HELEMENT hBlkElement
The owning block's locally indexed element handle.
CaeUnsElement operator++(int)
Postfix increment to the next element in an element group.
CaeUnsElement(const CaeUnsElementGroup &group, PWP_UINT32 ndx=0)
Group and element index constructor.
bool isValid() const
Determines an element's validity.
ElementType
The valid element type id values.
bool operator<(const CaeUnsElement &rhs) const
Compares the relative order of two CaeUnsElement instances.
@ PWGM_ELEMTYPE_TET
3D, 4-sided (tetrahedral) grid element
PWP_UINT32 vertCnt
Number of vertices in the face.
~CaeUnsElementData()
Destructor.
#define PWGM_ELEMDATA_VERT_SIZE
Maximum number of verts allowed per element.
bool data(CaeUnsElementData &data) const
Get the element's connectivity data.
CaeUnsElement operator--(int)
Postfix decrement to the previous element in an element group.
CaeUnsElementData(const PWGM_ELEMDATA &ed)
Cast/Copy constructor.
ElementType type() const
Gets the element type.
PWGM_ELEMDATA elemData
Element descriptor data.
bool operator!=(const CaeUnsElement &rhs) const
Compares two CaeUnsElement instances for inequality.
The unstructured grid model class.
bool data(PWGM_ELEMDATA &data) const
Get the element's connectivity data.
@ LastType
The last element type id.
PWP_UINT32 vertCount() const
Gets the number of vertices in the element.
CaeUnsElementData & operator=(const CaeUnsElementData &src)
Assignment operator.
PWGM_ENUMELEMDATA & enumElementData()
Gets a non-const ref to the underlying PWGM_ENUMELEMDATA struct.
bool data(PWGM_ENUMELEMDATA &data) const
Get the element's connectivity data.
CaeUnsElement & operator--()
Prefix decrement to the previous element in an element group.
CaeUnsGridModel model() const
Gets the unstructured grid model of which this element is a member.
PWGM_HELEMENT h_
The bound PWGM_HELEMENT.
CaeUnsEnumElementData & operator=(const PWGM_ENUMELEMDATA &eed)
Assignment operator.
PWP_UINT32 index[8]
The vertex indices.
PWGM_ENUM_ELEMTYPE type
One of the PWGM_ELEMTYPE_XXX values.
Pointwise Grid Model API Specification (PWGM-API)
Element descriptor data type.
@ Invalid
The "invalid" type id.
bool operator==(const CaeUnsElement &rhs) const
Compares two CaeUnsElement instances for equality.
@ PWGM_ELEMTYPE_TRI
2D, 3-sided grid element
PWP_BOOL PwElemDataMod(PWGM_HELEMENT element, PWGM_ELEMDATA *pElemData)
Get the element data relative to the model's index space.
The unstructured element data class.
The unstructured element group class.
~CaeUnsEnumElementData()
Destructor.
CaeUnsElement & operator++()
Prefix increment to the next element in an element group.
@ PWGM_ELEMTYPE_POINT
0D, point grid element
PWGM_HELEMENT & blockElement()
Gets a non-const ref to the owning block's element handle.
@ PWGM_ELEMTYPE_PYRAMID
3D, 5-sided, quad-based grid element
CaeUnsElement & moveTo(const CaeUnsElementGroup &group, PWP_UINT32 ndx)
Rebinds an instance to a specific model element.
CaeUnsElementData(const CaeUnsElementData &src)
Copy constructor.
@ PWGM_ELEMTYPE_BAR
1D, linear grid element
CaeUnsElement & moveFirst(const CaeUnsElementGroup &group)
Rebinds an instance to the first element in an element group.
PWGM_ENUMELEMDATA eed_
The element data.
The model unstructured element data class.
PWGM_ENUM_ELEMTYPE
Element type ids.
#define PWGM_HELEMENT_ID(h)
gets the element's guid from the handle
@ Tet
3D, 4-sided (tetrahedral) grid
PWGM_HVERTEX vertAt(PWP_UINT32 ndx) const
Gets the handle of ndx'th vertex.
CaeUnsElement()
Default constructor.
The unstructured element class.
const PWGM_ELEMDATA & elementData() const
Gets a const ref to the underlying PWGM_ELEMDATA struct.
@ PWGM_ELEMTYPE_WEDGE
3D, extruded, tri/quad grid element
PWGM_ELEMDATA & elementData()
Gets a non-const ref to the underlying PWGM_ELEMDATA struct.
@ NumTypes
The number of defined element types.
static const PWP_UINT32 MaxNumVerts
The maximum number of vertices per element.
PWGM_HELEMENT enumElements(PWP_UINT32 ndx) const
Get an element in the group.
CaeUnsEnumElementData()
Default constructor.
bool isOfType(PWGM_ENUM_ELEMTYPE type) const
Returns true if element is of the specified PWGM_ENUM_ELEMTYPE.
bool isOfType(ElementType type) const
Returns true if element is of the specified ElementType.
const PWGM_ENUMELEMDATA & enumElementData() const
Gets a const ref to the underlying PWGM_ENUMELEMDATA struct.
CaeUnsEnumElementData & operator=(const CaeUnsEnumElementData &src)
Assignment operator.
PWGM_HVERTEX vert[8]
The vertex handles.
bool isValid() const
Returns true if element type is not Invalid.
CaeUnsElement & operator=(const CaeUnsElement &rhs)
Assignment operator.
const CaeUnsElementGroup * group_
The owning element group.
CaeUnsElementData()
Default constructor.
PWP_UINT32 blockId() const
Gets the id (index) of the element's owning block.
CaeUnsElementData(const PWGM_ELEMDATA &ed, const PWGM_HELEMENT &he)
Protected constructor used by the CaeUnsEnumElementData subclass.
CaeUnsEnumElementData(const CaeUnsEnumElementData &src)
Copy constructor.
CaeUnsElement & movePrev()
Rebinds an instance to the previous element in an element group.
bool data(CaeUnsEnumElementData &data) const
Get the element's connectivity data.
const PWGM_HELEMENT & blockElement() const
Gets a const ref to the owning block's element handle.
virtual ~CaeUnsElement()
Destructor.
CaeUnsEnumElementData(const PWGM_ENUMELEMDATA &eed)
Cast/Copy constructor.
@ Wedge
3D, extruded, tri/quad grid
An opaque handle to a grid vertex element.
#define PWGM_HELEMENT_PID(h)
gets the element's parent id
Pointwise Plugin API (PWP-API)
#define PWGM_HELEMENT_MODEL(h)
gets the element's PWGM_HGRIDMODEL handle
bool operator>(const PWGM_HELEMENT &rhs)
Compares the relative order of two CaeUnsElement instances.
@ Pyramid
3D, 5-sided, quad-based grid
Enumerated model element descriptor data type.
CaeUnsElementData & operator=(const PWGM_ELEMDATA &ed)
Assignment operator.
PWP_UINT32 index() const
Get the element's index.
#define PWGM_HELEMENT_ISVALID(h)
returns non-zero value if handle is valid
@ PWGM_ELEMTYPE_QUAD
2D, 4-sided grid element
@ PWGM_ELEMTYPE_HEX
3D, 6-sided (block) grid element
CaeUnsElement & moveNext()
Rebinds an instance to the next element in an element group.