GLC_Object is base class for some GLC class. More...
#include <glc_object.h>
Public Member Functions | |
Constructor / Destructor | |
| GLC_Object (const QString &name=QString()) | |
| Default constructor. | |
| GLC_Object (const GLC_Object &sourceObject) | |
| Construct a GLC_Object from the given GLC_Object. | |
| virtual | ~GLC_Object () |
| Virtual destructor. | |
Get Functions | |
| GLC_uint | id () const |
| Return this object id. | |
| const QString | name () const |
| Return this object name. | |
| bool | operator== (const GLC_Object &obj) |
| Return true if this object is equal to the given object. | |
Set Functions | |
| void | setId (const GLC_uint id) |
| Set this object Id. | |
| void | setName (const QString &name) |
| Set this object Name. | |
| GLC_Object & | operator= (const GLC_Object &) |
| Set this object from the given object. | |
Protected Attributes | |
| GLC_uint | m_Uid |
| The Unique ID of an GLC_Object. | |
| QString | m_Name |
| Name of an GLC_Object. | |
| QMutex | m_Mutex |
| GLC_Object Mutex. | |
GLC_Object is base class for some GLC class.
GLC_Object is a abstract class.
Every GLC_Object have :
Definition at line 49 of file glc_object.h.
| GLC_Object::GLC_Object | ( | const QString & | name = QString() |
) |
Default constructor.
Construct a GLC_Object , Generate is UID GLC_Object::m_Uid and set GLC_Object::m_Name to specified name
Definition at line 33 of file glc_object.cpp.
| GLC_Object::GLC_Object | ( | const GLC_Object & | sourceObject | ) |
Construct a GLC_Object from the given GLC_Object.
Definition at line 40 of file glc_object.cpp.
| GLC_Object::~GLC_Object | ( | ) | [virtual] |
Virtual destructor.
Definition at line 46 of file glc_object.cpp.
| GLC_uint GLC_Object::id | ( | ) | const [inline] |
Return this object id.
Definition at line 75 of file glc_object.h.
Referenced by GLC_3DViewCollection::add(), GLC_3DWidgetManagerHandle::add3DViewInstance(), GLC_3DWidget::add3DViewInstance(), GLC_Geometry::addMaterial(), GLC_3dxmlToWorld::factorizeMaterial(), operator<<(), operator>>(), GLC_Mesh::replaceMasterMaterial(), GLC_Mesh::replaceMaterial(), GLC_3DRep::replaceMaterial(), GLC_3DViewCollection::select(), GLC_3DViewCollection::selectAll(), GLC_Mesh::setCurrentMaterial(), GLC_3DViewCollection::unselectAll(), GLC_WorldTo3dxml::writeCATRepresentationImage(), GLC_WorldTo3dxml::writeImageFileIn3dxml(), GLC_WorldTo3dxml::writeMaterial(), GLC_WorldTo3dxml::writeMaterialToCatMaterialRef(), and GLC_WorldTo3dxml::writeSurfaceAttributes().
| const QString GLC_Object::name | ( | ) | const [inline] |
Return this object name.
Definition at line 79 of file glc_object.h.
Referenced by GLC_ObjMtlLoader::loadMaterials(), operator<<(), GLC_WorldTo3dxml::writeCATRepresentationImage(), and GLC_WorldTo3dxml::writeMaterial().
| GLC_Object & GLC_Object::operator= | ( | const GLC_Object & | object | ) |
Set this object from the given object.
This method is thread safe
Definition at line 69 of file glc_object.cpp.
| bool GLC_Object::operator== | ( | const GLC_Object & | obj | ) | [inline] |
Return true if this object is equal to the given object.
Definition at line 83 of file glc_object.h.
| void GLC_Object::setId | ( | const GLC_uint | id | ) |
Set this object Id.
This method is thread safe
Reimplemented in GLC_3DViewInstance.
Definition at line 56 of file glc_object.cpp.
References m_Mutex, and m_Uid.
Referenced by operator>>(), and GLC_3DViewInstance::setId().
| void GLC_Object::setName | ( | const QString & | name | ) |
Set this object Name.
This method is thread safe
Definition at line 62 of file glc_object.cpp.
References m_Mutex, and m_Name.
Referenced by GLC_WorldHandle::addOccurence(), GLC_StructOccurence::checkForRepresentation(), GLC_ObjMtlLoader::extractMaterialName(), GLC_3dxmlToWorld::getMaterial(), GLC_3DViewInstance::GLC_3DViewInstance(), GLC_ColladaToWorld::loadEffect(), GLC_3dsToWorld::loadMaterial(), GLC_3dxmlToWorld::loadMaterialDef(), operator>>(), and GLC_Geometry::render().
QMutex GLC_Object::m_Mutex [protected] |
GLC_Object Mutex.
Reimplemented in GLC_3DViewInstance.
Definition at line 121 of file glc_object.h.
Referenced by GLC_Material::addGLC_Geom(), GLC_Material::addUsage(), GLC_Material::delGLC_Geom(), GLC_Material::delUsage(), operator=(), setId(), and setName().
QString GLC_Object::m_Name [protected] |
Name of an GLC_Object.
Definition at line 118 of file glc_object.h.
Referenced by operator=(), operator==(), and setName().
GLC_uint GLC_Object::m_Uid [protected] |
The Unique ID of an GLC_Object.
Generated on GLC_Object creation
Definition at line 115 of file glc_object.h.
Referenced by GLC_Material::delUsage(), GLC_3DViewInstance::GLC_3DViewInstance(), GLC_3DViewInstance::instanciate(), operator=(), GLC_3DViewInstance::operator=(), operator==(), and setId().