|
Maya 1.0
|
Resource objects are a collection of geometric shapes associated to a name. More...
#include <maya.h>
Public Member Functions | |
| MayaResources () | |
| Empty. | |
| ~MayaResources () | |
| Empty. | |
| void | Append (const QString &, const QString &) |
| Append an object to the resource set. | |
| void | Append (const QString &, const MayaGeometry &) |
| Add a ressource. | |
| void | Append (const QString &, const MayaGeometrySet &) |
| Add a ressource. | |
| void | Append (const QString &, const MayaGeometryAll &) |
| Add a geometric object to the set of objects. | |
| void | Remove (const QString &) |
| Remove a given element from the set of objects. | |
| bool | Exist (const QString &) const |
| Check if a given object already exists. | |
| bool | GetRessource (const QString &, MayaGeometryAll &) const |
| Get the geometric object given an input name. | |
| void | Clear () |
| Clear data. | |
| QString | GetText (bool=false) const |
| Get the text information. | |
Protected Attributes | |
| QMap< QString, MayaGeometryAll > | atlas |
| Map of ressources identified by their names. | |
Resource objects are a collection of geometric shapes associated to a name.
The purpose of this class is to handle a collection of models that can be instanciated using the MayaGeometryAll framework.
| void MayaResources::Append | ( | const QString & | name, |
| const MayaGeometry & | mg ) |
| void MayaResources::Append | ( | const QString & | name, |
| const MayaGeometryAll & | mga ) |
Add a geometric object to the set of objects.
| name | Object name. |
| mga | Set of geometrical elements of the corresponding object. |
| void MayaResources::Append | ( | const QString & | name, |
| const MayaGeometrySet & | mgs ) |
| void MayaResources::Append | ( | const QString & | name, |
| const QString & | url ) |
Append an object to the resource set.
| name | Identifier of the object. |
| url | File name of the resource. |
References atlas, Exist(), and MayaGeometryAll::Load_OBJ().
Referenced by MayaGeometryAll::CreateVoxelSurface().
| bool MayaResources::Exist | ( | const QString & | name | ) | const |
| bool MayaResources::GetRessource | ( | const QString & | name, |
| MayaGeometryAll & | mga ) const |
Get the geometric object given an input name.
| name | Name of the object. |
| mga | Returned geometry. |
References atlas.
Referenced by MayaGeometryAll::MayaGeometryAll(), and MayaGeometryAll::MayaGeometryAll().
| QString MayaResources::GetText | ( | bool | html = false | ) | const |