GLC_StructReference : A scene graph reference node. More...
#include <glc_structreference.h>
Public Member Functions | |
Constructor / Destructor | |
| GLC_StructReference (const QString &name=QString()) | |
| Default Constructor. | |
| GLC_StructReference (GLC_Rep *) | |
| Create reference with representation. | |
| GLC_StructReference (const GLC_StructReference &) | |
| Copy constructor. | |
| GLC_StructReference & | operator= (const GLC_StructReference &) |
| Overload "=" operator. | |
| virtual | ~GLC_StructReference () |
| Destructor. | |
Get Functions | |
| bool | hasStructInstance () const |
| Return true if this reference has instance. | |
| GLC_StructInstance * | firstInstanceHandle () const |
| Return first instance handle. | |
| QList< GLC_StructInstance * > | listOfStructInstances () const |
| Return the list of instance of this reference. | |
| QList< GLC_StructOccurence * > | listOfStructOccurence () const |
| Return the list of occurence of this reference. | |
| bool | hasRepresentation () const |
| Return true if this reference has a representation. | |
| GLC_Rep * | representationHandle () const |
| Return an handle on the representation. | |
| QString | name () const |
| Return the name. | |
| unsigned int | numberOfFaces () const |
| Get number of faces. | |
| unsigned int | numberOfVertex () const |
| Get number of vertex. | |
| unsigned int | numberOfMaterials () const |
| Get number of materials. | |
| unsigned int | numberOfBody () const |
| Return the number of body. | |
| QSet< GLC_Material * > | materialSet () const |
| Get materials List. | |
| bool | containsAttributes () const |
| Return true if the reference contains User attributes. | |
| GLC_Attributes * | attributesHandle () const |
| Return handle to the reference attributes. | |
Set Functions | |
| void | structInstanceCreated (GLC_StructInstance *pInstance) |
| An Instance of this reference have been created. | |
| void | structInstanceDeleted (GLC_StructInstance *pInstance) |
| An Instance of this reference have been deleted. | |
| void | setName (const QString &name) |
| Set the reference name. | |
| void | setRepresentation (const GLC_3DRep &rep) |
| Set the reference representation. | |
| void | setAttributes (const GLC_Attributes &attr) |
| Set the reference attributes. | |
Private Attributes | |
| QSet< GLC_StructInstance * > | m_SetOfInstance |
| The Set of reference's instances. | |
| GLC_Rep * | m_pRepresentation |
| The representation of reference. | |
| QString | m_Name |
| The Reference Name. | |
| GLC_Attributes * | m_pAttributes |
| The Reference attributes. | |
GLC_StructReference : A scene graph reference node.
Definition at line 44 of file glc_structreference.h.
| GLC_StructReference::GLC_StructReference | ( | const QString & | name = QString() |
) |
Default Constructor.
Definition at line 31 of file glc_structreference.cpp.
| GLC_StructReference::GLC_StructReference | ( | GLC_Rep * | pRep | ) |
Create reference with representation.
Definition at line 42 of file glc_structreference.cpp.
| GLC_StructReference::GLC_StructReference | ( | const GLC_StructReference & | ref | ) |
Copy constructor.
Definition at line 52 of file glc_structreference.cpp.
References GLC_Rep::clone(), and m_pRepresentation.
| GLC_StructReference::~GLC_StructReference | ( | ) | [virtual] |
Destructor.
Definition at line 84 of file glc_structreference.cpp.
References m_pAttributes, and m_pRepresentation.
| GLC_Attributes* GLC_StructReference::attributesHandle | ( | ) | const [inline] |
Return handle to the reference attributes.
Definition at line 153 of file glc_structreference.h.
Referenced by GLC_WorldTo3dxml::writeReference3D().
| bool GLC_StructReference::containsAttributes | ( | ) | const [inline] |
Return true if the reference contains User attributes.
Definition at line 149 of file glc_structreference.h.
Referenced by GLC_WorldTo3dxml::writeReference3D().
| GLC_StructInstance* GLC_StructReference::firstInstanceHandle | ( | ) | const [inline] |
Return first instance handle.
Definition at line 76 of file glc_structreference.h.
Referenced by GLC_StructInstance::GLC_StructInstance(), GLC_StructInstance::setReference(), and setRepresentation().
| bool GLC_StructReference::hasRepresentation | ( | ) | const [inline] |
Return true if this reference has a representation.
Definition at line 87 of file glc_structreference.h.
Referenced by GLC_StructOccurence::checkForRepresentation(), GLC_3dxmlToWorld::create3DrepFrom3dxmlRep(), GLC_WorldTo3dxml::exportAssemblyFromOccurence(), and GLC_StructOccurence::GLC_StructOccurence().
| bool GLC_StructReference::hasStructInstance | ( | ) | const [inline] |
Return true if this reference has instance.
Definition at line 72 of file glc_structreference.h.
Referenced by GLC_3dxmlToWorld::createUnfoldedTree(), GLC_StructInstance::GLC_StructInstance(), GLC_3dxmlToWorld::loadProductStructure(), GLC_StructInstance::setReference(), setRepresentation(), and GLC_StructInstance::~GLC_StructInstance().
| QList<GLC_StructInstance*> GLC_StructReference::listOfStructInstances | ( | ) | const [inline] |
Return the list of instance of this reference.
Definition at line 80 of file glc_structreference.h.
Referenced by GLC_3dxmlToWorld::createUnfoldedTree(), and listOfStructOccurence().
| QList< GLC_StructOccurence * > GLC_StructReference::listOfStructOccurence | ( | ) | const |
Return the list of occurence of this reference.
Definition at line 96 of file glc_structreference.cpp.
References listOfStructInstances().
| QSet<GLC_Material*> GLC_StructReference::materialSet | ( | ) | const [inline] |
Get materials List.
Definition at line 140 of file glc_structreference.h.
References GLC_3DRep::materialSet().
Referenced by GLC_StructOccurence::materialSet().
| QString GLC_StructReference::name | ( | ) | const [inline] |
Return the name.
Definition at line 97 of file glc_structreference.h.
Referenced by GLC_3dxmlToWorld::create3DrepFrom3dxmlRep(), GLC_3dxmlToWorld::createUnfoldedTree(), GLC_StructInstance::GLC_StructInstance(), GLC_3dxmlToWorld::loadExternRepresentations(), GLC_3dxmlToWorld::loadLocalRepresentations(), GLC_3dxmlToWorld::loadProductStructure(), GLC_StructInstance::setReference(), and GLC_WorldTo3dxml::writeReference3D().
| unsigned int GLC_StructReference::numberOfBody | ( | ) | const [inline] |
Return the number of body.
Definition at line 128 of file glc_structreference.h.
References GLC_3DRep::numberOfBody().
| unsigned int GLC_StructReference::numberOfFaces | ( | ) | const [inline] |
Get number of faces.
Definition at line 101 of file glc_structreference.h.
References GLC_3DRep::faceCount().
Referenced by GLC_StructOccurence::numberOfFaces().
| unsigned int GLC_StructReference::numberOfMaterials | ( | ) | const [inline] |
Get number of materials.
Definition at line 119 of file glc_structreference.h.
References GLC_3DRep::materialCount().
Referenced by GLC_StructOccurence::numberOfMaterials().
| unsigned int GLC_StructReference::numberOfVertex | ( | ) | const [inline] |
Get number of vertex.
Definition at line 110 of file glc_structreference.h.
References GLC_3DRep::vertexCount().
Referenced by GLC_StructOccurence::numberOfVertex().
| GLC_StructReference & GLC_StructReference::operator= | ( | const GLC_StructReference & | ref | ) |
Overload "=" operator.
Definition at line 65 of file glc_structreference.cpp.
References GLC_Rep::clone(), m_Name, m_pAttributes, m_pRepresentation, and m_SetOfInstance.
| GLC_Rep* GLC_StructReference::representationHandle | ( | ) | const [inline] |
Return an handle on the representation.
Definition at line 91 of file glc_structreference.h.
Referenced by GLC_WorldHandle::addOccurence(), GLC_StructOccurence::checkForRepresentation(), GLC_3dxmlToWorld::create3DrepFrom3dxmlRep(), GLC_WorldTo3dxml::exportAssemblyFromOccurence(), GLC_3dxmlToWorld::loadExternRepresentations(), GLC_3dxmlToWorld::loadLocalRepresentations(), GLC_StructOccurence::loadRepresentation(), and GLC_StructOccurence::unloadRepresentation().
| void GLC_StructReference::setAttributes | ( | const GLC_Attributes & | attr | ) | [inline] |
Set the reference attributes.
Definition at line 183 of file glc_structreference.h.
Referenced by GLC_3dxmlToWorld::loadReference3D().
| void GLC_StructReference::setName | ( | const QString & | name | ) | [inline] |
Set the reference name.
Definition at line 175 of file glc_structreference.h.
Referenced by GLC_3dxmlToWorld::loadExternalRef3D(), and GLC_3dxmlToWorld::loadReference3D().
| void GLC_StructReference::setRepresentation | ( | const GLC_3DRep & | rep | ) |
Set the reference representation.
Representation must not exist
Definition at line 117 of file glc_structreference.cpp.
References firstInstanceHandle(), hasStructInstance(), GLC_StructInstance::hasStructOccurence(), GLC_StructInstance::listOfStructOccurences(), and m_pRepresentation.
Referenced by GLC_3dxmlToWorld::loadExternRepresentations(), and GLC_3dxmlToWorld::loadLocalRepresentations().
| void GLC_StructReference::structInstanceCreated | ( | GLC_StructInstance * | pInstance | ) | [inline] |
An Instance of this reference have been created.
Definition at line 164 of file glc_structreference.h.
Referenced by GLC_StructInstance::GLC_StructInstance(), and GLC_StructInstance::setReference().
| void GLC_StructReference::structInstanceDeleted | ( | GLC_StructInstance * | pInstance | ) | [inline] |
An Instance of this reference have been deleted.
Definition at line 171 of file glc_structreference.h.
Referenced by GLC_StructInstance::~GLC_StructInstance().
QString GLC_StructReference::m_Name [private] |
The Reference Name.
Definition at line 202 of file glc_structreference.h.
Referenced by operator=().
GLC_Attributes* GLC_StructReference::m_pAttributes [private] |
The Reference attributes.
Definition at line 205 of file glc_structreference.h.
Referenced by operator=(), and ~GLC_StructReference().
GLC_Rep* GLC_StructReference::m_pRepresentation [private] |
The representation of reference.
Definition at line 199 of file glc_structreference.h.
Referenced by GLC_StructReference(), operator=(), setRepresentation(), and ~GLC_StructReference().
QSet<GLC_StructInstance*> GLC_StructReference::m_SetOfInstance [private] |
The Set of reference's instances.
Definition at line 196 of file glc_structreference.h.
Referenced by operator=().