MeshLink
Computational geometry access
MeshPoint Class Reference

0-D (point) mesh entity More...

#include <MeshTopo.h>

Inheritance diagram for MeshPoint:

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 MLUINTgetNameCounter ()
 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 ParamVertexgetParamVertByVref (const std::string &vref) const
 Find a ParamVertex by vertex reference. More...
 
virtual ParamVertexgetParamVertByID (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 ParamVertVrefMapgetParamVertVrefMap () 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< MLINTgetAttributeIDs (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...
 
ParamVertexparamVert_
 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...
 

Detailed Description

0-D (point) mesh entity

Provides access to MeshLink schema MeshPoint data

Definition at line 323 of file MeshTopo.h.

Constructor & Destructor Documentation

◆ MeshPoint() [1/3]

MeshPoint::MeshPoint ( MLINT  i1,
MLINT  mid,
MLINT  aref,
MLINT  gref,
const std::string &  name,
ParamVertex pv1 
)

Constructor without application-defined reference data.

Parameters
i1the index of the point
midunique ID of the mesh entity
arefthe attribute reference ID (AttID) (optional)
grefthe geometry reference ID
namethe name of the mesh entity
pv1(optional) the ParamVertex to associate with this point

◆ MeshPoint() [2/3]

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

Parameters
refthe application-defined reference of the mesh entity
midunique ID of the mesh entity
arefthe attribute reference ID (AttID) (optional)
grefthe geometry reference ID
namethe name of the mesh entity
pv1(optional) the ParamVertex to associate with this point

◆ ~MeshPoint()

MeshPoint::~MeshPoint ( )

Destructor.

◆ MeshPoint() [3/3]

MeshPoint::MeshPoint ( )
inlineprivate

Hidden default constructor.

Definition at line 391 of file MeshTopo.h.

Member Function Documentation

◆ computeHash()

static pwiFnvHash::FNVHash MeshPoint::computeHash ( MLINT  i1)
staticprivate

Compute a point hash value for the given index value.

◆ getBaseName()

virtual const std::string& MeshPoint::getBaseName ( ) const
virtual

Return the base name used for generating unique names for points.

Reimplemented from MeshTopo.

◆ getHash()

pwiFnvHash::FNVHash MeshPoint::getHash ( ) const
private

Return the hash value for this point.

◆ getNameCounter()

virtual MLUINT& MeshPoint::getNameCounter ( )
virtual

Return the current value used for generating unique names for points.

Reimplemented from MeshTopo.

◆ getParamVert()

ParamVertex* const MeshPoint::getParamVert ( ) const
inline

Return ParamVertex associated with the MeshPoint.

Definition at line 364 of file MeshTopo.h.

◆ getParamVerts()

MLINT MeshPoint::getParamVerts ( ParamVertex *const **  pvs) const
inline

Return array of ParamVertices associated with the MeshPoint.

For MeshPoint, there ever only one ParamVertex associated

Parameters
[out]pvsthe C-style array of associated ParamVertex

Definition at line 373 of file MeshTopo.h.

Friends And Related Function Documentation

◆ MeshAssociativity

friend class MeshAssociativity
friend

Definition at line 325 of file MeshTopo.h.

◆ MeshModel

friend class MeshModel
friend

Definition at line 326 of file MeshTopo.h.

◆ MeshSheet

friend class MeshSheet
friend

Definition at line 327 of file MeshTopo.h.

◆ MeshString

friend class MeshString
friend

Definition at line 328 of file MeshTopo.h.

Member Data Documentation

◆ i1_

MLINT MeshPoint::i1_
private

The index of this point.

Definition at line 403 of file MeshTopo.h.

◆ nameCounter_

MLUINT MeshPoint::nameCounter_
staticprivate

The unique name counter for points.

Definition at line 388 of file MeshTopo.h.

◆ paramVert_

ParamVertex* MeshPoint::paramVert_
private

The ParamVertex associated with this point.

Definition at line 405 of file MeshTopo.h.


The documentation for this class was generated from the following file: