MeshLink
Computational geometry access
|
Base class for mesh topology entities. More...
#include <MeshTopo.h>
Public Member Functions | |
MeshTopo (MLINT mid, MLINT aref, MLINT gref, const std::string &name) | |
Construct without application-defined reference. More... | |
MeshTopo (const std::string &ref, MLINT mid, MLINT aref, MLINT gref, const std::string &name) | |
Construct with application-defined reference to entity in mesh data. More... | |
virtual MLINT | getID () const |
Return the ID of this MeshTopo. More... | |
virtual MLINT | getGref () const |
Return the GID of GeometryGroup associated with this MeshTopo. More... | |
virtual MLINT | getAref () const |
Return the AttID of MeshLinkAttribute associated with this MeshTopo. More... | |
virtual void | getName (const char **name) const |
Return the name of this MeshTopo. More... | |
virtual const std::string & | getName () const |
Return the name of this MeshTopo. More... | |
virtual const std::string & | getRef () const |
Return the application-defined mesh data reference of this MeshTopo. More... | |
virtual void | addParamVertex (ParamVertex *pv, bool mapID) |
Add a ParamVertex. More... | |
virtual ParamVertex * | getParamVertByVref (const std::string &vref) const |
Find a ParamVertex by vertex reference. More... | |
virtual ParamVertex * | getParamVertByID (MLINT id) const |
Find a ParamVertex by ID. More... | |
virtual MLINT | getNumParamVerts () const |
Return the number of ParamVertex objects for this MeshTopo. More... | |
void | getParamVerts (std::vector< const ParamVertex * > &pv) const |
Return vector of ParamVertex objects for this MeshTopo. More... | |
virtual const ParamVertVrefMap & | getParamVertVrefMap () const |
Return the map of application-defined reference string to ParamVertex objects for this MeshTopo. More... | |
virtual void | setID (MLINT id) |
Set the ID of this MeshTopo. More... | |
virtual void | setGref (MLINT gref) |
Set the GeometryGroup GID referenced by this MeshTopo. More... | |
virtual void | setAref (MLINT aref) |
Set the MeshLinkAttribute AttID referenced by this MeshTopo. More... | |
virtual void | setRef (const char *ref) |
Set the reference of this MeshTopo. More... | |
void | setName (const std::string &name) |
Set the name of this MeshTopo. More... | |
void | setName (const char *name) |
Set the name of this MeshTopo. More... | |
bool | hasID () const |
Whether the MeshTopo has an ID defined. More... | |
bool | hasGref () const |
Whether the MeshTopo has a GeometryGroup GID reference defined. More... | |
bool | hasAref () const |
Whether the MeshTopo has a MeshLinkAttribute AttID reference defined. More... | |
std::vector< MLINT > | getAttributeIDs (const MeshAssociativity &meshAssoc) const |
Return list of MeshLinkAttribute AttIDs referenced by the MeshTopo. More... | |
std::string | getNextName () |
Generate and return a unique name for the entity. More... | |
virtual const std::string & | getBaseName () const |
Returns the base name used for generating unique mesh entity names. More... | |
virtual MLUINT & | getNameCounter () |
Returns the current value of the counter used for generating unique mesh entity names. More... | |
void | setOrderCounter (MLUINT counter) |
Set order counter (in parent topo) More... | |
MLUINT | getOrderCounter () const |
Returns order counter (in parent topo) More... | |
MeshTopo () | |
Default constructor. More... | |
~MeshTopo () | |
Destructor. More... | |
Static Public Member Functions | |
static bool | OrderCompare (const MeshTopo *topo1, const MeshTopo *topo2) |
Protected Attributes | |
std::string | ref_ |
The application-defined reference string. More... | |
MLINT | mid_ |
The unique entity ID. More... | |
MLINT | aref_ |
The attribute reference ID (AttID) More... | |
MLINT | gref_ |
The geometry reference ID. More... | |
std::string | name_ |
The name of the mesh entity. More... | |
MLUINT | orderCounter_ |
creation order counter in parent entity More... | |
ParamVertVrefMap | paramVertVrefMap_ |
ParamVertex objects mapped to this entity by application-defined reference string. More... | |
ParamVertIDToVrefMap | paramVertIDToVrefMap_ |
ParamVertex objects mapped to this entity by unique entity ID. More... | |
Static Private Attributes | |
static MLUINT | nameCounter_ |
The unique name counter. More... | |
Friends | |
class | MeshAssociativity |
Base class for mesh topology entities.
Common data for MeshString, MeshSheet, MeshModel topology and MeshPoint, MeshEdge, MeshFace elements.
Definition at line 132 of file MeshTopo.h.
Construct without application-defined reference.
mid | unique ID of the mesh entity |
aref | the attribute reference ID (AttID) (optional) |
gref | the geometry reference ID |
name | the name of the mesh entity |
MeshTopo::MeshTopo | ( | const std::string & | ref, |
MLINT | mid, | ||
MLINT | aref, | ||
MLINT | gref, | ||
const std::string & | name | ||
) |
Construct with application-defined reference to entity in mesh data.
ref | the application-defined reference of the mesh entity |
mid | unique ID of the mesh entity |
aref | the attribute reference ID (AttID) (optional) |
gref | the geometry reference ID |
name | the name of the mesh entity |
MeshTopo::MeshTopo | ( | ) |
Default constructor.
MeshTopo::~MeshTopo | ( | ) |
Destructor.
|
virtual |
Add a ParamVertex.
pv | the vertex to add |
mapID | whether to map the unique ID to the entity name |
|
virtual |
Return the AttID of MeshLinkAttribute associated with this MeshTopo.
std::vector<MLINT> MeshTopo::getAttributeIDs | ( | const MeshAssociativity & | meshAssoc | ) | const |
Return list of MeshLinkAttribute AttIDs referenced by the MeshTopo.
|
virtual |
|
virtual |
Return the GID of GeometryGroup associated with this MeshTopo.
|
virtual |
Return the name of this MeshTopo.
N.B. return value subject to change
[out] | name | the non-modifiable name of the entity |
|
virtual |
Return the name of this MeshTopo.
|
virtual |
std::string MeshTopo::getNextName | ( | ) |
Generate and return a unique name for the entity.
|
virtual |
Return the number of ParamVertex objects for this MeshTopo.
MLUINT MeshTopo::getOrderCounter | ( | ) | const |
Returns order counter (in parent topo)
|
virtual |
Find a ParamVertex by ID.
id | the unique ID of the desired ParamVertex |
|
virtual |
Find a ParamVertex by vertex reference.
vref | the application-defined reference string of the desired ParamVertex |
void MeshTopo::getParamVerts | ( | std::vector< const ParamVertex * > & | pv | ) | const |
Return vector of ParamVertex objects for this MeshTopo.
|
virtual |
Return the map of application-defined reference string to ParamVertex objects for this MeshTopo.
|
virtual |
Return the application-defined mesh data reference of this MeshTopo.
bool MeshTopo::hasAref | ( | ) | const |
Whether the MeshTopo has a MeshLinkAttribute AttID reference defined.
bool MeshTopo::hasGref | ( | ) | const |
Whether the MeshTopo has a GeometryGroup GID reference defined.
bool MeshTopo::hasID | ( | ) | const |
Whether the MeshTopo has an ID defined.
|
virtual |
Set the MeshLinkAttribute AttID referenced by this MeshTopo.
aref | the attribute reference ID (AttID) for this mesh entity |
|
virtual |
Set the GeometryGroup GID referenced by this MeshTopo.
gref | the geometry reference ID for this mesh entity |
|
virtual |
Set the ID of this MeshTopo.
id | the unique ID of this mesh entity |
void MeshTopo::setName | ( | const std::string & | name | ) |
Set the name of this MeshTopo.
setName is special and should not be overridden, as it provides a mechanism for generating unique names
name | the name of the mesh entity, or empty if a unique name is to be generated |
void MeshTopo::setName | ( | const char * | name | ) |
Set the name of this MeshTopo.
setName is special and should not be overrided it provides a mechanism for generating unique names
name | the name of the mesh entity, or null if a unique name is to be generated |
void MeshTopo::setOrderCounter | ( | MLUINT | counter | ) |
Set order counter (in parent topo)
|
virtual |
Set the reference of this MeshTopo.
ref | the application-defined reference string for this mesh entity |
|
friend |
Definition at line 134 of file MeshTopo.h.
|
protected |
The attribute reference ID (AttID)
Definition at line 286 of file MeshTopo.h.
|
protected |
The geometry reference ID.
Definition at line 288 of file MeshTopo.h.
|
protected |
The unique entity ID.
Definition at line 284 of file MeshTopo.h.
|
protected |
The name of the mesh entity.
Definition at line 290 of file MeshTopo.h.
|
staticprivate |
The unique name counter.
Definition at line 301 of file MeshTopo.h.
|
protected |
creation order counter in parent entity
Definition at line 292 of file MeshTopo.h.
|
protected |
ParamVertex objects mapped to this entity by unique entity ID.
Definition at line 297 of file MeshTopo.h.
|
protected |
ParamVertex objects mapped to this entity by application-defined reference string.
Definition at line 295 of file MeshTopo.h.
|
protected |
The application-defined reference string.
Definition at line 280 of file MeshTopo.h.