MeshLink
Computational geometry access
|
Storage for mesh topology and geometry associativity data. More...
#include <MeshAssociativity.h>
Public Member Functions | |
MeshAssociativity () | |
Default constructor. More... | |
~MeshAssociativity () | |
Destructor. More... | |
bool | addGeometryGroup (GeometryGroup &geometry_group) |
Add a GeometryGroup to the database. More... | |
MLINT | getGeometryGroupCount () const |
Get count of GeometryGroups in the database. More... | |
void | getGeometryGroupIDs (std::vector< MLINT > &gids) const |
Get list of GeometryGroup IDs in the database. More... | |
GeometryGroup * | getGeometryGroupByName (const char *name) |
Get GeometryGroup by name. More... | |
GeometryGroup * | getGeometryGroupByID (MLINT id) |
Get GeometryGroup by ID. More... | |
bool | addMeshModel (MeshModel *model, bool mapID) |
Add a MeshModel to the database. More... | |
MeshModel * | getMeshModelByID (MLINT id) const |
Get MeshModel by ID. More... | |
MeshModel * | getMeshModelByName (const std::string &name) const |
Get MeshModel by name. More... | |
MeshModel * | getMeshModelByRef (const char *ref) const |
Get MeshModel by reference. More... | |
bool | getMeshSheetByName (const std::string &name, MeshModel **model, MeshSheet **sheet) const |
Get MeshSheet by name. More... | |
bool | getMeshStringByName (const std::string &name, MeshModel **model, MeshString **string) const |
Get MeshString by name. More... | |
void | addGeometryKernel (GeometryKernel *kernel) |
Add a GeometryKernel to the database. More... | |
void | removeGeometryKernel (GeometryKernel *kernel) |
Remove a GeometryKernel from the database. More... | |
GeometryKernel * | getGeometryKernelByName (const char *name) |
Get GeometryKernel by name. More... | |
GeometryKernel * | getActiveGeometryKernel () |
Get the active GeometryKernel. More... | |
bool | setActiveGeometryKernelByName (const char *name) |
Set the active GeometryKernel by name. More... | |
const MeshLinkAttribute * | getAttributeByID (const MLINT id) const |
Get MeshLinkAttribute by ID. More... | |
void | clearAttributes () |
Remove all MeshLinkAttribute objects from the database. More... | |
bool | addAttribute (MeshLinkAttribute &att) |
Add a MeshLinkAttribute to the database. More... | |
std::vector< const MeshLinkAttribute * > | getAttributes () const |
Return list of MeshLinkAttributes in the MeshAssociativity database. More... | |
const MeshLinkTransform * | getTransformByID (const MLINT id) const |
Get MeshLinkTransform by ID. More... | |
void | clearTransforms () |
Remove all MeshLinkTransform objects from the database. More... | |
bool | addTransform (MeshLinkTransform &att) |
Add a MeshLinkTransform to the database. More... | |
void | getTransforms (std::vector< const MeshLinkTransform * > &xforms) const |
Return list of MeshLinkTransforms in the MeshAssociativity database. More... | |
size_t | getTransformCount () const |
Return count of MeshLinkTransforms in the MeshAssociativity database. More... | |
void | clearMeshElementLinkages () |
Remove all MeshElementLinkage objects from the database. More... | |
bool | addMeshElementLinkage (MeshElementLinkage *linkage) |
Add a MeshElementLinkage to the database. More... | |
MeshElementLinkage * | getMeshElementLinkageByName (const std::string &name) const |
Get MeshElementLinkage by name. More... | |
void | getMeshElementLinkages (std::vector< MeshElementLinkage * > &linkages) const |
Return list of MeshElementLinkages in the MeshAssociativity database. More... | |
size_t | getMeshElementLinkageCount () const |
Return count of MeshElementLinkages in the MeshAssociativity database. More... | |
MLINT | getNumGeometryFiles () const |
Return the number of GeometryFile objects in the database. More... | |
void | addGeometryFile (GeometryFile &file) |
Add a GeometryFile to the database. More... | |
MLINT | getNumMeshFiles () const |
Return the number of MeshFile objects in the database. More... | |
void | addMeshFile (MeshFile &file) |
Add a MeshFile to the database. More... | |
bool | getAttribute (MLINT attID, const char **name, const char **value) const |
Get the name and value of a MeshLinkAttribute by ID. More... | |
const std::vector< GeometryFile > & | getGeometryFiles () const |
Get a list of all GeometryFile objects in the database. More... | |
const std::vector< MeshFile > & | getMeshFiles () const |
Get a list of all MeshFile objects in the database. More... | |
void | getMeshModels (std::vector< MeshModel * > &models) const |
Return list of MeshModels in the MeshAssociativity database. More... | |
size_t | getMeshModelCount () const |
Return count of MeshModels in the MeshModel. More... | |
Static Private Attributes | |
static GeometryKernelManager | geometry_kernel_manager_ |
The Singleton geometry kernel manager. More... | |
Storage for mesh topology and geometry associativity data.
This is the main interface for defining, querying and updating mesh-geometry associativity.
Definition at line 523 of file MeshAssociativity.h.
|
inline |
Default constructor.
Definition at line 526 of file MeshAssociativity.h.
MeshAssociativity::~MeshAssociativity | ( | ) |
Destructor.
bool MeshAssociativity::addAttribute | ( | MeshLinkAttribute & | att | ) |
Add a MeshLinkAttribute to the database.
[in] | att | the attribute to add |
void MeshAssociativity::addGeometryFile | ( | GeometryFile & | file | ) |
Add a GeometryFile to the database.
[in] | file | the geometry file to add |
bool MeshAssociativity::addGeometryGroup | ( | GeometryGroup & | geometry_group | ) |
Add a GeometryGroup to the database.
[in] | geometry_group | the group to add |
void MeshAssociativity::addGeometryKernel | ( | GeometryKernel * | kernel | ) |
Add a GeometryKernel to the database.
Geometry kernels are application-defined. An application will typically add a kernel to its MeshAssociativity and set it active after loading MeshLink data and before loading geometry.
[in] | kernel | the geometry kernel to add |
bool MeshAssociativity::addMeshElementLinkage | ( | MeshElementLinkage * | linkage | ) |
Add a MeshElementLinkage to the database.
[in] | trans | the transform to add |
void MeshAssociativity::addMeshFile | ( | MeshFile & | file | ) |
Add a MeshFile to the database.
[in] | file | the mesh file to add |
bool MeshAssociativity::addMeshModel | ( | MeshModel * | model, |
bool | mapID | ||
) |
Add a MeshModel to the database.
[in] | model | the model to add |
[in] | mapID | whether to map the unique ID to the model name |
bool MeshAssociativity::addTransform | ( | MeshLinkTransform & | att | ) |
Add a MeshLinkTransform to the database.
[in] | trans | the transform to add |
void MeshAssociativity::clearAttributes | ( | ) |
Remove all MeshLinkAttribute objects from the database.
void MeshAssociativity::clearMeshElementLinkages | ( | ) |
Remove all MeshElementLinkage objects from the database.
void MeshAssociativity::clearTransforms | ( | ) |
Remove all MeshLinkTransform objects from the database.
GeometryKernel* MeshAssociativity::getActiveGeometryKernel | ( | ) |
Get the active GeometryKernel.
bool MeshAssociativity::getAttribute | ( | MLINT | attID, |
const char ** | name, | ||
const char ** | value | ||
) | const |
Get the name and value of a MeshLinkAttribute by ID.
[in] | attID | the unique ID of the desired attribute |
[out] | name | the name of the attribute, if found |
[out] | value | the value (content) of the attribute, if found |
const MeshLinkAttribute* MeshAssociativity::getAttributeByID | ( | const MLINT | id | ) | const |
Get MeshLinkAttribute by ID.
[in] | id | the unique ID of the desired attribute |
std::vector<const MeshLinkAttribute *> MeshAssociativity::getAttributes | ( | ) | const |
Return list of MeshLinkAttributes in the MeshAssociativity database.
const std::vector<GeometryFile>& MeshAssociativity::getGeometryFiles | ( | ) | const |
Get a list of all GeometryFile objects in the database.
GeometryGroup* MeshAssociativity::getGeometryGroupByID | ( | MLINT | id | ) |
Get GeometryGroup by ID.
[in] | id | the ID of the desired geometry group |
GeometryGroup* MeshAssociativity::getGeometryGroupByName | ( | const char * | name | ) |
Get GeometryGroup by name.
[in] | name | the name of the desired geometry group |
MLINT MeshAssociativity::getGeometryGroupCount | ( | ) | const |
Get count of GeometryGroups in the database.
void MeshAssociativity::getGeometryGroupIDs | ( | std::vector< MLINT > & | gids | ) | const |
Get list of GeometryGroup IDs in the database.
[in,out] | gids | array of GIDs |
GeometryKernel* MeshAssociativity::getGeometryKernelByName | ( | const char * | name | ) |
Get GeometryKernel by name.
[in] | name | the name of the desired geometry kernel |
MeshElementLinkage* MeshAssociativity::getMeshElementLinkageByName | ( | const std::string & | name | ) | const |
Get MeshElementLinkage by name.
[in] | name | the name of the desired linkage |
size_t MeshAssociativity::getMeshElementLinkageCount | ( | ) | const |
Return count of MeshElementLinkages in the MeshAssociativity database.
void MeshAssociativity::getMeshElementLinkages | ( | std::vector< MeshElementLinkage * > & | linkages | ) | const |
Return list of MeshElementLinkages in the MeshAssociativity database.
const std::vector<MeshFile>& MeshAssociativity::getMeshFiles | ( | ) | const |
Get a list of all MeshFile objects in the database.
MeshModel* MeshAssociativity::getMeshModelByName | ( | const std::string & | name | ) | const |
Get MeshModel by name.
[in] | name | the name of the desired model |
MeshModel* MeshAssociativity::getMeshModelByRef | ( | const char * | ref | ) | const |
Get MeshModel by reference.
[in] | ref | the application-defined reference string of the desired model |
size_t MeshAssociativity::getMeshModelCount | ( | ) | const |
Return count of MeshModels in the MeshModel.
void MeshAssociativity::getMeshModels | ( | std::vector< MeshModel * > & | models | ) | const |
Return list of MeshModels in the MeshAssociativity database.
bool MeshAssociativity::getMeshStringByName | ( | const std::string & | name, |
MeshModel ** | model, | ||
MeshString ** | string | ||
) | const |
Get MeshString by name.
Search all MeshModels for a MeshString with the given name.
[in] | name | the name of the desired string |
[out] | model | containing the desired string |
[out] | the | desired string |
MLINT MeshAssociativity::getNumGeometryFiles | ( | ) | const |
Return the number of GeometryFile objects in the database.
MLINT MeshAssociativity::getNumMeshFiles | ( | ) | const |
Return the number of MeshFile objects in the database.
const MeshLinkTransform* MeshAssociativity::getTransformByID | ( | const MLINT | id | ) | const |
Get MeshLinkTransform by ID.
[in] | id | the unique ID of the desired transform |
size_t MeshAssociativity::getTransformCount | ( | ) | const |
Return count of MeshLinkTransforms in the MeshAssociativity database.
void MeshAssociativity::getTransforms | ( | std::vector< const MeshLinkTransform * > & | xforms | ) | const |
Return list of MeshLinkTransforms in the MeshAssociativity database.
void MeshAssociativity::removeGeometryKernel | ( | GeometryKernel * | kernel | ) |
Remove a GeometryKernel from the database.
[in] | kernel | the geometry kernel to remove |
bool MeshAssociativity::setActiveGeometryKernelByName | ( | const char * | name | ) |
Set the active GeometryKernel by name.
The active geometry kernel is set by the application before performing geometric evaluations and projections.
[in] | name | the name of the desired geometry kernel |
|
private |
The associativity geometry group manager.
Definition at line 750 of file MeshAssociativity.h.
|
staticprivate |
The Singleton geometry kernel manager.
Definition at line 747 of file MeshAssociativity.h.
|
private |
Geometry files.
Definition at line 742 of file MeshAssociativity.h.
|
private |
Map of MeshAttribute to associated ID (aref)
Definition at line 753 of file MeshAssociativity.h.
|
private |
Map of MeshAttribute name to associated ID (aref)
Definition at line 755 of file MeshAssociativity.h.
|
private |
Map of element linkage name to MeshElementLinkage.
Definition at line 763 of file MeshAssociativity.h.
|
private |
Mesh files.
Definition at line 744 of file MeshAssociativity.h.
|
private |
Map of mesh model ID to MeshModel name.
Definition at line 769 of file MeshAssociativity.h.
|
private |
Map of mesh model name to MeshModel.
Definition at line 767 of file MeshAssociativity.h.
|
private |
Map of mesh model reference string to MeshModel name.
Definition at line 771 of file MeshAssociativity.h.
|
private |
Map of MeshTransform to associated XID (xref)
Definition at line 758 of file MeshAssociativity.h.
|
private |
Map of MeshTransform name to associated XID (xref)
Definition at line 760 of file MeshAssociativity.h.