GLC_StructInstance : A scene graph instance node. More...
#include <glc_structinstance.h>
Public Member Functions | |
| GLC_StructInstance (GLC_StructReference *pRef=NULL) | |
| Default constructor. | |
| GLC_StructInstance (GLC_Rep *) | |
| Create instance with a rep. | |
| GLC_StructInstance (const GLC_StructInstance &) | |
| Copy constructor. | |
| GLC_StructInstance (GLC_StructInstance *) | |
| Copy constructor. | |
| GLC_StructInstance (const QString &) | |
| Create empty instance. | |
| void | setReference (GLC_StructReference *) |
| Set the reference of an empty instance. | |
| virtual | ~GLC_StructInstance () |
Get Functions | |
| bool | hasStructOccurence () const |
| Return true if this instance have occurence. | |
| int | numberOfOccurence () const |
| Return the number of occurence. | |
| GLC_StructOccurence * | firstOccurenceHandle () const |
| Return first occurence handle. | |
| GLC_Matrix4x4 | relativeMatrix () const |
| Return the relative matrix of this instance. | |
| GLC_StructReference * | structReference () const |
| Return the reference of this instance. | |
| QList< GLC_StructOccurence * > | listOfStructOccurences () const |
| Return the list off occurence of this instance. | |
| QString | name () const |
| Return the instance name. | |
| bool | containsAttributes () const |
| Return true if the reference contains User attributes. | |
| GLC_Attributes * | attributesHandle () const |
| Return handle to the reference attributes. | |
Set Functions | |
| void | structOccurenceCreated (GLC_StructOccurence *pOccurence) |
| An occurence of this instance have been created. | |
| void | structOccurenceDeleted (GLC_StructOccurence *pOccurence) |
| GLC_StructInstance * | move (const GLC_Matrix4x4 &matrix) |
| Move the instance by specified matrix. | |
| GLC_StructInstance * | translate (double Tx, double Ty, double Tz) |
| Translate Instance. | |
| GLC_StructInstance * | translate (const GLC_Vector3d &v) |
| Translate Instance. | |
| GLC_StructInstance * | setMatrix (const GLC_Matrix4x4 &SetMat) |
| Replace the instance Matrix. | |
| GLC_StructInstance * | resetMatrix () |
| Reset the instance Matrix. | |
| void | setName (const QString &name) |
| Set the instance name. | |
| void | setAttributes (const GLC_Attributes &attr) |
| Set the instance attributes. | |
Private Attributes | |
| int * | m_pNumberOfInstance |
| Number of this Instance. | |
| GLC_StructReference * | m_pStructReference |
| The Struct reference of this instance. | |
| QList< GLC_StructOccurence * > | m_ListOfOccurences |
| The list of instance's occurences. | |
| GLC_Matrix4x4 | m_RelativeMatrix |
| The relative matrix. | |
| QString | m_Name |
| The instance Name. | |
| GLC_Attributes * | m_pAttributes |
| The Reference attributes. | |
GLC_StructInstance : A scene graph instance node.
Definition at line 46 of file glc_structinstance.h.
| GLC_StructInstance::GLC_StructInstance | ( | GLC_StructReference * | pRef = NULL |
) |
Default constructor.
Definition at line 32 of file glc_structinstance.cpp.
References GLC_StructReference::firstInstanceHandle(), GLC_StructReference::hasStructInstance(), m_Name, m_pNumberOfInstance, m_pStructReference, GLC_StructReference::name(), and GLC_StructReference::structInstanceCreated().
| GLC_StructInstance::GLC_StructInstance | ( | GLC_Rep * | pRep | ) |
Create instance with a rep.
Definition at line 61 of file glc_structinstance.cpp.
References GLC_StructReference::firstInstanceHandle(), GLC_StructReference::hasStructInstance(), m_pNumberOfInstance, m_pStructReference, and GLC_StructReference::structInstanceCreated().
| GLC_StructInstance::GLC_StructInstance | ( | const GLC_StructInstance & | structInstance | ) |
Copy constructor.
Definition at line 84 of file glc_structinstance.cpp.
References m_pAttributes, m_pStructReference, and GLC_StructReference::structInstanceCreated().
| GLC_StructInstance::GLC_StructInstance | ( | GLC_StructInstance * | pStructInstance | ) |
Copy constructor.
Definition at line 107 of file glc_structinstance.cpp.
References m_pAttributes, m_pStructReference, and GLC_StructReference::structInstanceCreated().
| GLC_StructInstance::GLC_StructInstance | ( | const QString & | name | ) |
Create empty instance.
Definition at line 130 of file glc_structinstance.cpp.
| GLC_StructInstance::~GLC_StructInstance | ( | ) | [virtual] |
Definition at line 165 of file glc_structinstance.cpp.
References GLC_StructReference::hasStructInstance(), m_pAttributes, m_pNumberOfInstance, m_pStructReference, and GLC_StructReference::structInstanceDeleted().
| GLC_Attributes* GLC_StructInstance::attributesHandle | ( | ) | const [inline] |
Return handle to the reference attributes.
Definition at line 107 of file glc_structinstance.h.
| bool GLC_StructInstance::containsAttributes | ( | ) | const [inline] |
Return true if the reference contains User attributes.
Definition at line 103 of file glc_structinstance.h.
| GLC_StructOccurence* GLC_StructInstance::firstOccurenceHandle | ( | ) | const [inline] |
Return first occurence handle.
Definition at line 83 of file glc_structinstance.h.
Referenced by GLC_3dxmlToWorld::createUnfoldedTree(), and GLC_StructOccurence::GLC_StructOccurence().
| bool GLC_StructInstance::hasStructOccurence | ( | ) | const [inline] |
Return true if this instance have occurence.
Definition at line 75 of file glc_structinstance.h.
Referenced by GLC_3dxmlToWorld::createUnfoldedTree(), GLC_StructOccurence::GLC_StructOccurence(), GLC_3dxmlToWorld::loadProductStructure(), and GLC_StructReference::setRepresentation().
| QList<GLC_StructOccurence*> GLC_StructInstance::listOfStructOccurences | ( | ) | const [inline] |
Return the list off occurence of this instance.
Definition at line 95 of file glc_structinstance.h.
Referenced by GLC_3dxmlToWorld::createUnfoldedTree(), GLC_3dxmlToWorld::loadProductStructure(), and GLC_StructReference::setRepresentation().
| GLC_StructInstance* GLC_StructInstance::move | ( | const GLC_Matrix4x4 & | matrix | ) | [inline] |
Move the instance by specified matrix.
Definition at line 127 of file glc_structinstance.h.
Referenced by GLC_ColladaToWorld::createOccurenceFromNode(), and GLC_3dxmlToWorld::loadInstance3D().
| QString GLC_StructInstance::name | ( | ) | const [inline] |
Return the instance name.
Definition at line 99 of file glc_structinstance.h.
Referenced by GLC_3dxmlToWorld::createUnfoldedTree(), GLC_StructOccurence::GLC_StructOccurence(), GLC_3dxmlToWorld::loadProductStructure(), and GLC_WorldTo3dxml::writeInstance3D().
| int GLC_StructInstance::numberOfOccurence | ( | ) | const [inline] |
Return the number of occurence.
Definition at line 79 of file glc_structinstance.h.
| GLC_Matrix4x4 GLC_StructInstance::relativeMatrix | ( | ) | const [inline] |
Return the relative matrix of this instance.
Definition at line 87 of file glc_structinstance.h.
Referenced by GLC_StructOccurence::updateAbsoluteMatrix(), and GLC_WorldTo3dxml::writeInstance3D().
| GLC_StructInstance* GLC_StructInstance::resetMatrix | ( | void | ) | [inline] |
Reset the instance Matrix.
Definition at line 154 of file glc_structinstance.h.
| void GLC_StructInstance::setAttributes | ( | const GLC_Attributes & | attr | ) | [inline] |
Set the instance attributes.
Definition at line 165 of file glc_structinstance.h.
Referenced by GLC_3dxmlToWorld::loadInstance3D().
| GLC_StructInstance* GLC_StructInstance::setMatrix | ( | const GLC_Matrix4x4 & | SetMat | ) | [inline] |
Replace the instance Matrix.
Definition at line 147 of file glc_structinstance.h.
| void GLC_StructInstance::setName | ( | const QString & | name | ) | [inline] |
Set the instance name.
Definition at line 161 of file glc_structinstance.h.
| void GLC_StructInstance::setReference | ( | GLC_StructReference * | pStructReference | ) |
Set the reference of an empty instance.
Definition at line 141 of file glc_structinstance.cpp.
References GLC_StructReference::firstInstanceHandle(), GLC_StructReference::hasStructInstance(), m_Name, m_pNumberOfInstance, m_pStructReference, GLC_StructReference::name(), and GLC_StructReference::structInstanceCreated().
Referenced by GLC_3dxmlToWorld::createUnfoldedTree(), and GLC_3dxmlToWorld::loadProductStructure().
| void GLC_StructInstance::structOccurenceCreated | ( | GLC_StructOccurence * | pOccurence | ) | [inline] |
An occurence of this instance have been created.
Definition at line 117 of file glc_structinstance.h.
Referenced by GLC_StructOccurence::GLC_StructOccurence().
| void GLC_StructInstance::structOccurenceDeleted | ( | GLC_StructOccurence * | pOccurence | ) | [inline] |
Definition at line 123 of file glc_structinstance.h.
Referenced by GLC_StructOccurence::~GLC_StructOccurence().
| GLC_StructReference* GLC_StructInstance::structReference | ( | ) | const [inline] |
Return the reference of this instance.
Definition at line 91 of file glc_structinstance.h.
Referenced by GLC_StructOccurence::checkForRepresentation(), GLC_3dxmlToWorld::createUnfoldedTree(), GLC_StructOccurence::GLC_StructOccurence(), GLC_3dxmlToWorld::loadReference3D(), GLC_StructOccurence::loadRepresentation(), GLC_StructOccurence::materialSet(), GLC_StructOccurence::numberOfFaces(), GLC_StructOccurence::numberOfMaterials(), GLC_StructOccurence::numberOfVertex(), GLC_StructOccurence::unloadRepresentation(), and GLC_WorldTo3dxml::writeInstance3D().
| GLC_StructInstance* GLC_StructInstance::translate | ( | const GLC_Vector3d & | v | ) | [inline] |
Translate Instance.
Definition at line 141 of file glc_structinstance.h.
References GLC_Vector3d::x(), GLC_Vector3d::y(), and GLC_Vector3d::z().
| GLC_StructInstance* GLC_StructInstance::translate | ( | double | Tx, | |
| double | Ty, | |||
| double | Tz | |||
| ) | [inline] |
Translate Instance.
Definition at line 134 of file glc_structinstance.h.
QList<GLC_StructOccurence*> GLC_StructInstance::m_ListOfOccurences [private] |
The list of instance's occurences.
Definition at line 185 of file glc_structinstance.h.
QString GLC_StructInstance::m_Name [private] |
The instance Name.
Definition at line 191 of file glc_structinstance.h.
Referenced by GLC_StructInstance(), and setReference().
GLC_Attributes* GLC_StructInstance::m_pAttributes [private] |
The Reference attributes.
Definition at line 194 of file glc_structinstance.h.
Referenced by GLC_StructInstance(), and ~GLC_StructInstance().
int* GLC_StructInstance::m_pNumberOfInstance [private] |
Number of this Instance.
Definition at line 179 of file glc_structinstance.h.
Referenced by GLC_StructInstance(), setReference(), and ~GLC_StructInstance().
The Struct reference of this instance.
Definition at line 182 of file glc_structinstance.h.
Referenced by GLC_StructInstance(), setReference(), and ~GLC_StructInstance().
The relative matrix.
Definition at line 188 of file glc_structinstance.h.