MeshLink
Computational geometry access
|
0-D (point) mesh entity More...
#include <MeshTopo.h>
Public Member Functions | |
MeshPoint (MLINT i1, MLINT mid, MLINT aref, MLINT gref, const std::string &name, ParamVertex *pv1) | |
Constructor without application-defined reference data. More... | |
MeshPoint (const std::string &ref, MLINT mid, MLINT aref, MLINT gref, const std::string &name, ParamVertex *pv1) | |
ParamVertex *const | getParamVert () const |
Return ParamVertex associated with the MeshPoint. More... | |
MLINT | getParamVerts (ParamVertex *const **pvs) const |
Return array of ParamVertices associated with the MeshPoint. More... | |
~MeshPoint () | |
Destructor. More... | |
virtual const std::string & | getBaseName () const |
Return the base name used for generating unique names for points. More... | |
virtual MLUINT & | getNameCounter () |
Return the current value used for generating unique names for points. More... | |
Public Member Functions inherited from MeshTopo | |
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... | |
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... | |
Private Member Functions | |
MeshPoint () | |
Hidden default constructor. More... | |
pwiFnvHash::FNVHash | getHash () const |
Return the hash value for this point. More... | |
Static Private Member Functions | |
static pwiFnvHash::FNVHash | computeHash (MLINT i1) |
Compute a point hash value for the given index value. More... | |
Private Attributes | |
MLINT | i1_ |
The index of this point. More... | |
ParamVertex * | paramVert_ |
The ParamVertex associated with this point. More... | |
Static Private Attributes | |
static MLUINT | nameCounter_ |
The unique name counter for points. More... | |
Friends | |
class | MeshAssociativity |
class | MeshModel |
class | MeshSheet |
class | MeshString |
Additional Inherited Members | |
Static Public Member Functions inherited from MeshTopo | |
static bool | OrderCompare (const MeshTopo *topo1, const MeshTopo *topo2) |
Protected Attributes inherited from MeshTopo | |
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... | |
0-D (point) mesh entity
Provides access to MeshLink schema MeshPoint data
Definition at line 323 of file MeshTopo.h.
MeshPoint::MeshPoint | ( | MLINT | i1, |
MLINT | mid, | ||
MLINT | aref, | ||
MLINT | gref, | ||
const std::string & | name, | ||
ParamVertex * | pv1 | ||
) |
Constructor without application-defined reference data.
i1 | the index of the point |
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 |
pv1 | (optional) the ParamVertex to associate with this point |
MeshPoint::MeshPoint | ( | const std::string & | ref, |
MLINT | mid, | ||
MLINT | aref, | ||
MLINT | gref, | ||
const std::string & | name, | ||
ParamVertex * | pv1 | ||
) |
Construct with reference to Point 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 |
pv1 | (optional) the ParamVertex to associate with this point |
MeshPoint::~MeshPoint | ( | ) |
Destructor.
|
inlineprivate |
Hidden default constructor.
Definition at line 391 of file MeshTopo.h.
|
staticprivate |
Compute a point hash value for the given index value.
|
virtual |
Return the base name used for generating unique names for points.
Reimplemented from MeshTopo.
|
private |
Return the hash value for this point.
|
virtual |
Return the current value used for generating unique names for points.
Reimplemented from MeshTopo.
|
inline |
Return ParamVertex associated with the MeshPoint.
Definition at line 364 of file MeshTopo.h.
|
inline |
Return array of ParamVertices associated with the MeshPoint.
For MeshPoint, there ever only one ParamVertex associated
[out] | pvs | the C-style array of associated ParamVertex |
Definition at line 373 of file MeshTopo.h.
|
friend |
Definition at line 325 of file MeshTopo.h.
|
friend |
Definition at line 326 of file MeshTopo.h.
|
friend |
Definition at line 327 of file MeshTopo.h.
|
friend |
Definition at line 328 of file MeshTopo.h.
|
private |
The index of this point.
Definition at line 403 of file MeshTopo.h.
|
staticprivate |
The unique name counter for points.
Definition at line 388 of file MeshTopo.h.
|
private |
The ParamVertex associated with this point.
Definition at line 405 of file MeshTopo.h.