MeshLink
Computational geometry access
|
Storage for geometry association by entity reference. More...
#include <GeometryGroup.h>
Public Member Functions | |
GeometryGroup () | |
Default constructor. More... | |
~GeometryGroup () | |
Destructor. More... | |
void | setName (const char *name) |
Set the name of the GeometryGroup. More... | |
const std::string & | getName () const |
Get the name of this GeometryGroup. More... | |
void | setID (MLINT id) |
Set the ID of this GeometryGroup. More... | |
MLINT | getID () const |
Get the ID of this GeometryGroup. More... | |
void | setGroupID (MLINT id) |
Set the ID of the group containing this group. More... | |
bool | getGroupID (MLINT &id) |
Get the ID of the group containing this group. More... | |
void | addGID (MLINT gid) |
Add GeometryGroup that is part of this group. More... | |
const std::vector< MLINT > & | getGIDs () |
Return the GeometryGroup IDs that make up this group. More... | |
void | setAref (MLINT aref) |
Set the MeshLinkAttribute AttID referenced by the GeometryGroup. More... | |
MLINT | getAref () const |
Get the MeshLinkAttribute AttID referenced by the GeometryGroup. More... | |
void | addEntityName (const char *name) |
Add a geometry entity's name to the GeometryGroup. More... | |
void | setEntityNames (const std::set< std::string > &names) |
Set the GeometryGroup's geometry entity list. More... | |
const std::set< std::string > & | getEntityNameSet () const |
Get a set of geometry entity names referenced by the GeometryGroup. More... | |
const std::vector< std::string > | getEntityNames () const |
Get a list of geometry entity names referenced by the GeometryGroup. More... | |
bool | hasAref () const |
Whether the GeometryGroup has a MeshLinkAttribute AttID reference defined. More... | |
bool | getArefID (MLINT *aref) const |
Return the MeshLinkAttribute AttID referenced by the GeometryGroup. More... | |
std::vector< MLINT > | get_refAttIDs (const MeshAssociativity &meshAssoc) const |
Return list of MeshLinkAttribute AttIDs referenced by the GeometryGroup. More... | |
Private Attributes | |
std::string | name_ |
Group name. More... | |
MLINT | gid_ |
Group unique ID. More... | |
MLINT | aref_ |
Group attribute ID. More... | |
MLINT | groupID_ |
Group ID of containing group. More... | |
std::vector< MLINT > | groupIDs_ |
IDs of contained geometry groups. More... | |
std::set< std::string > | entity_names_ |
Names of contained geometry entities. More... | |
Storage for geometry association by entity reference.
Mesh entities reference geometry through a GREF attribute which is the integer ID of the geometry group associated with the mesh entity.
Definition at line 38 of file GeometryGroup.h.
GeometryGroup::GeometryGroup | ( | ) |
Default constructor.
|
inline |
Destructor.
Definition at line 43 of file GeometryGroup.h.
void GeometryGroup::addEntityName | ( | const char * | name | ) |
Add a geometry entity's name to the GeometryGroup.
[in] | name | the name of the geometry entity to add to this group |
void GeometryGroup::addGID | ( | MLINT | gid | ) |
Add GeometryGroup that is part of this group.
[in] | gid | the ID of the group to add to this group |
std::vector<MLINT> GeometryGroup::get_refAttIDs | ( | const MeshAssociativity & | meshAssoc | ) | const |
Return list of MeshLinkAttribute AttIDs referenced by the GeometryGroup.
N.B. This method will expand the GeometryGroup's AREF into a list of associated AttIDs.
[in] | meshAssoc | the MeshAssociativity to query for attributes |
MLINT GeometryGroup::getAref | ( | ) | const |
Get the MeshLinkAttribute AttID referenced by the GeometryGroup.
bool GeometryGroup::getArefID | ( | MLINT * | aref | ) | const |
Return the MeshLinkAttribute AttID referenced by the GeometryGroup.
N.B. This method returns the GeometryGroup's AREF only. The AREF could refer to a group of AttIDs.
[out] | aref | the unique id (AttID) of the associated MeshLinkAttribute |
const std::vector<std::string> GeometryGroup::getEntityNames | ( | ) | const |
Get a list of geometry entity names referenced by the GeometryGroup.
const std::set<std::string>& GeometryGroup::getEntityNameSet | ( | ) | const |
Get a set of geometry entity names referenced by the GeometryGroup.
const std::vector<MLINT>& GeometryGroup::getGIDs | ( | ) |
Return the GeometryGroup IDs that make up this group.
bool GeometryGroup::getGroupID | ( | MLINT & | id | ) |
Get the ID of the group containing this group.
[out] | id | the unique ID of this group |
MLINT GeometryGroup::getID | ( | ) | const |
Get the ID of this GeometryGroup.
const std::string& GeometryGroup::getName | ( | ) | const |
Get the name of this GeometryGroup.
bool GeometryGroup::hasAref | ( | ) | const |
Whether the GeometryGroup has a MeshLinkAttribute AttID reference defined.
void GeometryGroup::setAref | ( | MLINT | aref | ) |
Set the MeshLinkAttribute AttID referenced by the GeometryGroup.
[in] | aref | the unique attribute ID (AttID) to set |
void GeometryGroup::setEntityNames | ( | const std::set< std::string > & | names | ) |
Set the GeometryGroup's geometry entity list.
[in] | names | the list of names to add to this group |
void GeometryGroup::setGroupID | ( | MLINT | id | ) |
Set the ID of the group containing this group.
void GeometryGroup::setID | ( | MLINT | id | ) |
Set the ID of this GeometryGroup.
[in] | id | the unique ID of the group |
void GeometryGroup::setName | ( | const char * | name | ) |
Set the name of the GeometryGroup.
[in] | name | the new name of this group |
|
private |
Group attribute ID.
Definition at line 129 of file GeometryGroup.h.
|
private |
Names of contained geometry entities.
Definition at line 137 of file GeometryGroup.h.
|
private |
Group unique ID.
Definition at line 127 of file GeometryGroup.h.
|
private |
Group ID of containing group.
Definition at line 131 of file GeometryGroup.h.
|
private |
IDs of contained geometry groups.
Definition at line 133 of file GeometryGroup.h.
|
private |
Group name.
Definition at line 125 of file GeometryGroup.h.