Pointwise Plugin SDK
|
The unstructured grid model class. More...
#include <CaeUnsGridModel.h>
Public Member Functions | |
bool | appendEnumElementOrder (PWGM_ENUM_ELEMORDER order) const |
Append an element type to the current face streaming order. More... | |
CaeUnsGridModel (const CaeUnsGridModel &src) | |
Copy constructor. More... | |
CaeUnsGridModel (PWGM_HGRIDMODEL model) | |
Constructor. More... | |
bool | customIndexSchemeReady (CaeUnsCustomIndexHandler &handler) const |
Notify export framework that custom index mapper is ready for use. More... | |
PWP_VOID | defaultEnumElementOrder () const |
Reset to the default element type order. More... | |
CaeUnsGridModel & | operator= (const CaeUnsGridModel &rhs) |
Assignment operator. More... | |
PWP_UINT32 | patchCount () const |
Get the number of boundary patches in the model. More... | |
PWP_UINT32 | patchElementCount (PWGM_ELEMCOUNTS *pDetails=nullptr) const |
Get the number of patch elements in the model. More... | |
bool | streamFaces (PWGM_ENUM_FACEORDER order, CaeFaceStreamHandler &handler) const |
Initiate ordered face streaming to the given handler. More... | |
PWP_UINT32 | vertexCount () const |
Get the number of unstructured vertices in the model. More... | |
virtual | ~CaeUnsGridModel () |
Destructor. More... | |
![]() | |
PWP_UINT32 | blockCount () const |
Get the number of blocks in the model. More... | |
template<typename T > | |
bool | getAttribute (const char *name, T &val) const |
Templated method that gets the value of a published plugin attribute. More... | |
operator PWGM_HGRIDMODEL () const | |
The PWGM_HGRIDMODEL cast operator. More... | |
CaeGridModel & | operator= (const CaeGridModel &rhs) |
The assignment operator. More... | |
bool | getAttribute (const char *name, const char *&val, const char *defVal) const |
bool | getAttribute (const char *name, PWP_UINT &val, PWP_UINT defVal) const |
bool | getAttribute (const char *name, PWP_UINT32 &val, PWP_UINT32 defVal) const |
bool | getAttribute (const char *name, PWP_INT &val, PWP_INT defVal) const |
bool | getAttribute (const char *name, PWP_INT32 &val, PWP_INT32 defVal) const |
bool | getAttribute (const char *name, PWP_REAL &val, PWP_REAL defVal) const |
bool | getAttribute (const char *name, PWP_FLOAT &val, PWP_FLOAT defVal) const |
bool | getAttribute (const char *name, bool &val, bool defVal) const |
bool | getAttributeEnum (const char *name, const char *&val, const char *defVal) const |
![]() | |
PWP_UINT32 | elementCount (PWGM_ELEMCOUNTS *pDetails=0) const |
Get the number of elements in the group. More... | |
PWGM_HELEMENT | enumElements (PWP_UINT32 ndx) const |
Get an element in the group. More... | |
PWGM_HELEMENT | firstElement () const |
Get the first element in the group. More... | |
virtual | ~CaeUnsElementGroup () |
Destructor. More... | |
Static Public Member Functions | |
static const char * | elemTypeStr (PWGM_ENUM_ELEMTYPE type) |
Maps an element type id to a string value. More... | |
static const char * | faceOrderStr (PWGM_ENUM_FACEORDER order) |
Maps a face order id to a string value. More... | |
Additional Inherited Members | |
![]() | |
CaeGridModel (const CaeGridModel &src) | |
Copy constructor. More... | |
CaeGridModel (PWGM_HGRIDMODEL model) | |
Constructor. More... | |
~CaeGridModel () | |
Destructor. More... | |
![]() | |
virtual PWP_UINT32 | elementCountImpl (PWGM_ELEMCOUNTS *pDetails) const =0 |
Get the number of elements in the group. More... | |
virtual PWGM_HELEMENT | enumElementsImpl (PWP_UINT32 ndx) const =0 |
Get an element in the group. More... | |
![]() | |
PWGM_HGRIDMODEL | model_ |
The bound PWGM_HGRIDMODEL. More... | |
The unstructured grid model class.
Provides read only access to an unstructured grid model.
Definition at line 176 of file CaeUnsGridModel.h.
CaeUnsGridModel::CaeUnsGridModel | ( | PWGM_HGRIDMODEL | model | ) |
Constructor.
model | The model handle to bind. |
Definition at line 22 of file CaeUnsGridModel.cxx.
CaeUnsGridModel::CaeUnsGridModel | ( | const CaeUnsGridModel & | src | ) |
Copy constructor.
Binds this model to the same model as src.
src | An unstructured grid model instance. |
Definition at line 28 of file CaeUnsGridModel.cxx.
|
virtual |
Destructor.
Definition at line 34 of file CaeUnsGridModel.cxx.
bool CaeUnsGridModel::appendEnumElementOrder | ( | PWGM_ENUM_ELEMORDER | order | ) | const |
Append an element type to the current face streaming order.
order | The element order flag. |
Definition at line 104 of file CaeUnsGridModel.cxx.
References CaeGridModel::model_, and PwModAppendEnumElementOrder().
bool CaeUnsGridModel::customIndexSchemeReady | ( | CaeUnsCustomIndexHandler & | handler | ) | const |
Notify export framework that custom index mapper is ready for use.
handler | The index mapper handler. |
Definition at line 96 of file CaeUnsGridModel.cxx.
References CaeGridModel::model_, ndxMapperCB(), and PwModCustomIndexSchemeReady().
PWP_VOID CaeUnsGridModel::defaultEnumElementOrder | ( | ) | const |
Reset to the default element type order.
Definition at line 111 of file CaeUnsGridModel.cxx.
References CaeGridModel::model_, and PwModDefaultEnumElementOrder().
|
inlinestatic |
Maps an element type id to a string value.
Definition at line 262 of file CaeUnsGridModel.h.
References PwElemTypeToText().
|
inlinestatic |
Maps a face order id to a string value.
Definition at line 256 of file CaeUnsGridModel.h.
References PwFaceOrderToText().
CaeUnsGridModel & CaeUnsGridModel::operator= | ( | const CaeUnsGridModel & | rhs | ) |
Assignment operator.
Definition at line 145 of file CaeUnsGridModel.cxx.
References CaeGridModel::model_.
PWP_UINT32 CaeUnsGridModel::patchCount | ( | ) | const |
Get the number of boundary patches in the model.
The elements of a patch all share the same boundary condition.
Definition at line 40 of file CaeUnsGridModel.cxx.
References CaeGridModel::model_, and PwModDomainCount().
PWP_UINT32 CaeUnsGridModel::patchElementCount | ( | PWGM_ELEMCOUNTS * | pDetails = nullptr | ) | const |
Get the number of patch elements in the model.
pDetails | Optional pointer to a PWGM_ELEMCOUNTS buffer. If provided, pDetails receives the breakdown of patch element counts by type. |
Definition at line 118 of file CaeUnsGridModel.cxx.
References CaeUnsElementGroup::elementCount(), CaeUnsPatch::isValid(), PWGM_ECNT_Bar, PWGM_ECNT_Polygon, PWGM_ECNT_Quad, and PWGM_ECNT_Tri.
bool CaeUnsGridModel::streamFaces | ( | PWGM_ENUM_FACEORDER | order, |
CaeFaceStreamHandler & | handler | ||
) | const |
Initiate ordered face streaming to the given handler.
order | The face stream order. |
handler | The face stream handler. |
Definition at line 79 of file CaeUnsGridModel.cxx.
References beginCB(), endCB(), faceCB(), CaeGridModel::model_, and PwModStreamFaces().
PWP_UINT32 CaeUnsGridModel::vertexCount | ( | ) | const |
Get the number of unstructured vertices in the model.
Definition at line 47 of file CaeUnsGridModel.cxx.
References CaeGridModel::model_, and PwModVertexCount().