GLC_StructOccurence : A scene graph occurence node. More...
#include <glc_structoccurence.h>
Public Member Functions | |
Constructor / Destructor | |
| GLC_StructOccurence () | |
| Default constructor. | |
| GLC_StructOccurence (GLC_StructInstance *, GLC_WorldHandle *pWorldHandle=NULL, GLuint shaderId=0) | |
| Create Occurence of the specified instance. | |
| GLC_StructOccurence (GLC_3DRep *) | |
| Construct Occurence withe the specified GLC_3DRep. | |
| GLC_StructOccurence (GLC_WorldHandle *, const GLC_StructOccurence &, bool shareInstance) | |
| Copy constructor. | |
| virtual | ~GLC_StructOccurence () |
| Destructor. | |
Set Functions | |
| void | setName (const QString name) |
| Set Occurence instance Name. | |
| GLC_StructOccurence * | updateAbsoluteMatrix () |
| Update the absolute matrix. | |
| GLC_StructOccurence * | updateChildrenAbsoluteMatrix () |
| Update children obsolute Matrix. | |
| void | addChild (GLC_StructOccurence *) |
| Add Child. | |
| GLC_StructOccurence * | addChild (GLC_StructInstance *) |
| Add Child instance and returns the newly created occurence. | |
| void | makeOrphan () |
| make the occurence orphan | |
| bool | removeChild (GLC_StructOccurence *pChild) |
| Remove the specified child. | |
| void | reverseNormals () |
| Reverse Normals of this Occurence and childs. | |
| bool | create3DViewInstance () |
| Create the 3DViewInstance of this occurence if there is a valid 3DRep. | |
| bool | remove3DViewInstance () |
| Remove the 3DViewInstance of this occurence. | |
| void | setWorldHandle (GLC_WorldHandle *) |
| Set this occurence world Handle. | |
| bool | loadRepresentation () |
| Load the representation and return true if success. | |
| bool | unloadRepresentation () |
| UnLoad the representation and return true if success. | |
| void | setOccurenceNumber (unsigned int n) |
| Set the occurence number of this occurence. | |
| unsigned int | updateOccurenceNumber (unsigned int n) |
| Update the occurence number of this occurence branch. | |
| void | setVisibility (bool visibility) |
| Set this occurence visibility. | |
| void | setRenderProperties (const GLC_RenderProperties &renderProperties) |
| set the renderProperties of this occurence | |
| void | removeEmptyChildren () |
| Remove empty children. | |
| void | setReference (GLC_StructReference *pRef) |
| Set the given reference to this occurence. | |
| void | setAutomatic3DViewInstanceCreationUsage (bool usage) |
| Set the automatic creation of 3DViewInstance usage. | |
Private Member Functions | |
| void | detach () |
| Detach the occurence from the GLC_World. | |
Private Attributes | |
| GLC_uint | m_Uid |
| Occurence Unique ID. | |
| GLC_WorldHandle * | m_pWorldHandle |
| the occurence's World Handle | |
| int * | m_pNumberOfOccurence |
| Number of this Occurence. | |
| GLC_StructInstance * | m_pStructInstance |
| The struct instance of this occurence. | |
| GLC_StructOccurence * | m_pParent |
| The parent of this occurence. | |
| QList< GLC_StructOccurence * > | m_Childs |
| The Child of this occurence. | |
| GLC_Matrix4x4 | m_AbsoluteMatrix |
| The absolute matrix of the occurence. | |
| unsigned int | m_OccurenceNumber |
| The occurence number. | |
| bool | m_IsVisible |
| Flag to know if a occurence without instance is visible. | |
| GLC_RenderProperties * | m_pRenderProperties |
| The occurence rendering properties. | |
| bool | m_AutomaticCreationOf3DViewInstance |
| Automatique crŽation of 3DViewInstance. | |
Get Functions | |
|
| |
| GLC_uint | id () const |
| Return this Occurence id. | |
| const QString | name () const |
| Return the instance name of this occurence. | |
| GLC_Matrix4x4 | absoluteMatrix () const |
| Return the absolute matrix of this occurence. | |
| bool | isOrphan () const |
| Return true if this occurence is orphan. | |
| bool | hasParent () const |
| Return true if this occurence has parent. | |
| bool | hasRepresentation () const |
| Return true if this occurence has a representation. | |
| bool | has3DViewInstance () const |
| Return true if this occurence has 3DViewInstance. | |
| GLC_StructInstance * | structInstance () const |
| Return the instance of this occurence. | |
| GLC_StructReference * | structReference () const |
| Return the reference of this occurence. | |
| int | childCount () const |
| Return the number of childs. | |
| bool | hasChild () const |
| Return true if the occurence has child. | |
| bool | canBeAddedToChildren (GLC_StructOccurence *pOccurence) const |
| Return true if the given occurence can be added to this occurence children. | |
| GLC_StructOccurence * | parent () const |
| Return The parent of this occurence. | |
| GLC_StructOccurence * | child (const int index) const |
| Return a child of this occurence. | |
| QList< GLC_StructOccurence * > | children () const |
| Return the list of children of this occurence. | |
| QList< GLC_StructOccurence * > | subOccurenceList () const |
| Return the list of all accurence under this occurence. | |
| unsigned int | numberOfFaces () const |
| Return the number of faces of the representation of this occurence. | |
| unsigned int | numberOfVertex () const |
| Return the number of vertex of the representation of this occurence. | |
| unsigned int | numberOfMaterials () const |
| Return the number of materials of the representation of this occurence. | |
| QSet< GLC_Material * > | materialSet () const |
| Return the materials List of the representation of this occurence. | |
| GLC_StructOccurence * | clone (GLC_WorldHandle *, bool shareInstance) const |
| Return a clone this occurence. | |
| bool | isVisible () const |
| Return true if this occurence is visible. | |
| GLC_BoundingBox | boundingBox () const |
| Return the occurence Bounding Box. | |
| unsigned int | occurenceNumber () const |
| Return the occurence number of this occurence. | |
| GLC_RenderProperties * | renderPropertiesHandle () const |
| Return an handle of the renderProperties of this occurence. | |
| unsigned int | nodeCount () const |
| Return the number of node of this branch. | |
| GLC_WorldHandle * | worldHandle () const |
| Return the world handle of this occurence. | |
| QSet< GLC_StructReference * > | childrenReferences () const |
| Return the Set of children references of this occurence. | |
| bool | useAutomatic3DViewInstanceCreation () const |
| Return true if the automatic creation of 3DViewInstance is used. | |
| static QSet < GLC_StructReference * > | parentsReferences (const GLC_StructOccurence *pOccurence) |
| Return the set of parents references of the given occurence. | |
GLC_StructOccurence : A scene graph occurence node.
Definition at line 43 of file glc_structoccurence.h.
| GLC_StructOccurence::GLC_StructOccurence | ( | ) |
Default constructor.
Definition at line 32 of file glc_structoccurence.cpp.
References m_pStructInstance, and GLC_StructInstance::structOccurenceCreated().
Referenced by addChild(), and clone().
| GLC_StructOccurence::GLC_StructOccurence | ( | GLC_StructInstance * | pStructInstance, | |
| GLC_WorldHandle * | pWorldHandle = NULL, |
|||
| GLuint | shaderId = 0 | |||
| ) |
Create Occurence of the specified instance.
Definition at line 51 of file glc_structoccurence.cpp.
References addChild(), GLC_WorldHandle::addOccurence(), GLC_StructInstance::firstOccurenceHandle(), GLC_StructInstance::hasStructOccurence(), m_Childs, m_pNumberOfOccurence, m_pStructInstance, m_pWorldHandle, GLC_StructInstance::name(), setName(), GLC_StructInstance::structOccurenceCreated(), and updateAbsoluteMatrix().
| GLC_StructOccurence::GLC_StructOccurence | ( | GLC_3DRep * | pRep | ) |
Construct Occurence withe the specified GLC_3DRep.
Definition at line 98 of file glc_structoccurence.cpp.
References m_pStructInstance, GLC_StructInstance::name(), setName(), and GLC_StructInstance::structOccurenceCreated().
| GLC_StructOccurence::GLC_StructOccurence | ( | GLC_WorldHandle * | pWorldHandle, | |
| const GLC_StructOccurence & | structOccurence, | |||
| bool | shareInstance | |||
| ) |
Copy constructor.
Definition at line 119 of file glc_structoccurence.cpp.
References addChild(), GLC_WorldHandle::addOccurence(), child(), childCount(), clone(), GLC_WorldHandle::collection(), GLC_3DViewCollection::contains(), id(), GLC_3DViewCollection::instanceHandle(), GLC_RenderProperties::isDefault(), GLC_3DViewCollection::isInAShadingGroup(), GLC_3DViewInstance::isSelected(), m_pNumberOfOccurence, m_pRenderProperties, m_pStructInstance, m_pWorldHandle, GLC_3DViewInstance::renderPropertiesHandle(), GLC_3DViewInstance::setRenderProperties(), GLC_3DViewCollection::shadingGroup(), GLC_StructInstance::structOccurenceCreated(), updateAbsoluteMatrix(), and updateChildrenAbsoluteMatrix().
| GLC_StructOccurence::~GLC_StructOccurence | ( | ) | [virtual] |
Destructor.
Definition at line 198 of file glc_structoccurence.cpp.
References GLC_ErrorLog::addError(), GLC_StructInstance::hasStructOccurence(), m_Childs, m_pNumberOfOccurence, m_pRenderProperties, m_pStructInstance, m_pWorldHandle, GLC_StructReference::name(), removeChild(), GLC_WorldHandle::removeOccurence(), GLC_StructInstance::structOccurenceDeleted(), and GLC_StructInstance::structReference().
| GLC_Matrix4x4 GLC_StructOccurence::absoluteMatrix | ( | ) | const [inline] |
Return the absolute matrix of this occurence.
Definition at line 80 of file glc_structoccurence.h.
Referenced by updateAbsoluteMatrix().
| GLC_StructOccurence * GLC_StructOccurence::addChild | ( | GLC_StructInstance * | pInstance | ) |
Add Child instance and returns the newly created occurence.
Definition at line 535 of file glc_structoccurence.cpp.
References addChild(), GLC_StructOccurence(), and m_pWorldHandle.
| void GLC_StructOccurence::addChild | ( | GLC_StructOccurence * | pChild | ) |
Add Child.
The new child must be orphan
Definition at line 517 of file glc_structoccurence.cpp.
References isOrphan(), m_Childs, m_pParent, m_pWorldHandle, setWorldHandle(), and updateChildrenAbsoluteMatrix().
Referenced by GLC_StructReference::addChild(), addChild(), GLC_ObjToWorld::addCurrentObjMeshToWorld(), GLC_3dsToWorld::createMeshes(), GLC_ColladaToWorld::createOccurenceFromNode(), GLC_ColladaToWorld::createSceneGraph(), GLC_3dxmlToWorld::createUnfoldedTree(), GLC_OffToWorld::CreateWorldFromOff(), GLC_StlToWorld::CreateWorldFromStl(), GLC_StructOccurence(), GLC_World::mergeWithAnotherWorld(), GLC_StlToWorld::scanFacet(), and setReference().
| GLC_BoundingBox GLC_StructOccurence::boundingBox | ( | void | ) | const |
Return the occurence Bounding Box.
Definition at line 408 of file glc_structoccurence.cpp.
References GLC_3DViewInstance::boundingBox(), children(), GLC_WorldHandle::collection(), GLC_BoundingBox::combine(), GLC_3DViewCollection::contains(), has3DViewInstance(), hasChild(), GLC_3DViewCollection::instanceHandle(), and m_pWorldHandle.
| bool GLC_StructOccurence::canBeAddedToChildren | ( | GLC_StructOccurence * | pOccurence | ) | const |
Return true if the given occurence can be added to this occurence children.
Definition at line 263 of file glc_structoccurence.cpp.
References childrenReferences(), GLC_StructInstance::hasStructOccurence(), m_pStructInstance, parentsReferences(), and structReference().
| GLC_StructOccurence* GLC_StructOccurence::child | ( | const int | index | ) | const [inline] |
Return a child of this occurence.
The index must exist
Definition at line 125 of file glc_structoccurence.h.
Referenced by GLC_WorldTo3dxml::exportAssemblyFromOccurence(), GLC_StructOccurence(), and isVisible().
| int GLC_StructOccurence::childCount | ( | ) | const [inline] |
Return the number of childs.
Definition at line 109 of file glc_structoccurence.h.
Referenced by childrenReferences(), GLC_ObjToWorld::CreateWorldFromObj(), GLC_WorldTo3dxml::exportAssemblyFromOccurence(), GLC_StructOccurence(), isVisible(), GLC_World::mergeWithAnotherWorld(), setRenderProperties(), setVisibility(), subOccurenceList(), and updateOccurenceNumber().
| QList<GLC_StructOccurence*> GLC_StructOccurence::children | ( | ) | const [inline] |
Return the list of children of this occurence.
Definition at line 129 of file glc_structoccurence.h.
Referenced by boundingBox(), and GLC_World::mergeWithAnotherWorld().
| QSet< GLC_StructReference * > GLC_StructOccurence::childrenReferences | ( | ) | const |
Return the Set of children references of this occurence.
Definition at line 448 of file glc_structoccurence.cpp.
References childCount(), m_Childs, structInstance(), and structReference().
Referenced by canBeAddedToChildren().
| GLC_StructOccurence * GLC_StructOccurence::clone | ( | GLC_WorldHandle * | pWorldHandle, | |
| bool | shareInstance | |||
| ) | const |
Return a clone this occurence.
Definition at line 376 of file glc_structoccurence.cpp.
References GLC_StructOccurence().
Referenced by GLC_StructReference::addChild(), GLC_StructOccurence(), and GLC_World::mergeWithAnotherWorld().
| bool GLC_StructOccurence::create3DViewInstance | ( | ) |
Create the 3DViewInstance of this occurence if there is a valid 3DRep.
Definition at line 604 of file glc_structoccurence.cpp.
References GLC_3DViewCollection::add(), GLC_WorldHandle::collection(), hasRepresentation(), m_IsVisible, m_pWorldHandle, m_Uid, name(), GLC_StructReference::representationHandle(), GLC_3DViewInstance::setId(), GLC_Object::setName(), GLC_3DViewCollection::setVisibility(), and structReference().
Referenced by GLC_StructReference::loadRepresentation(), loadRepresentation(), and GLC_StructReference::setRepresentation().
| void GLC_StructOccurence::detach | ( | ) | [private] |
Detach the occurence from the GLC_World.
Definition at line 567 of file glc_structoccurence.cpp.
References GLC_WorldHandle::collection(), GLC_3DViewCollection::contains(), GLC_3DViewCollection::instanceHandle(), GLC_RenderProperties::isDefault(), m_Childs, m_pRenderProperties, m_pWorldHandle, m_Uid, GLC_WorldHandle::removeOccurence(), and GLC_3DViewInstance::renderPropertiesHandle().
Referenced by removeChild().
| bool GLC_StructOccurence::has3DViewInstance | ( | ) | const |
Return true if this occurence has 3DViewInstance.
Definition at line 254 of file glc_structoccurence.cpp.
References GLC_WorldHandle::collection(), GLC_3DViewCollection::contains(), m_pWorldHandle, and m_Uid.
Referenced by boundingBox(), GLC_StructReference::loadRepresentation(), loadRepresentation(), reverseNormals(), setRenderProperties(), GLC_StructReference::setRepresentation(), setVisibility(), and unloadRepresentation().
| bool GLC_StructOccurence::hasChild | ( | ) | const [inline] |
Return true if the occurence has child.
Definition at line 113 of file glc_structoccurence.h.
Referenced by boundingBox(), GLC_WorldHandle::select(), setRenderProperties(), subOccurenceList(), and GLC_WorldHandle::unselect().
| bool GLC_StructOccurence::hasParent | ( | ) | const [inline] |
Return true if this occurence has parent.
Definition at line 88 of file glc_structoccurence.h.
| bool GLC_StructOccurence::hasRepresentation | ( | ) | const |
Return true if this occurence has a representation.
Definition at line 245 of file glc_structoccurence.cpp.
References GLC_StructReference::hasRepresentation(), GLC_StructInstance::hasStructOccurence(), m_pStructInstance, and structReference().
Referenced by create3DViewInstance(), loadRepresentation(), materialSet(), numberOfFaces(), numberOfMaterials(), numberOfVertex(), and unloadRepresentation().
| GLC_uint GLC_StructOccurence::id | ( | ) | const [inline] |
Return this Occurence id.
Definition at line 72 of file glc_structoccurence.h.
Referenced by GLC_WorldHandle::addOccurence(), GLC_SelectionSet::contains(), GLC_WorldTo3dxml::exportAssemblyFromOccurence(), GLC_StructOccurence(), GLC_SelectionSet::insert(), GLC_SelectionSet::insertPrimitiveId(), GLC_SelectionSet::insertSetOfPrimitivesId(), GLC_SelectionSet::remove(), GLC_WorldHandle::removeOccurence(), GLC_SelectionSet::removePrimitiveId(), GLC_World::select(), and GLC_WorldTo3dxml::writeOccurenceDefaultViewProperty().
| bool GLC_StructOccurence::isOrphan | ( | ) | const [inline] |
Return true if this occurence is orphan.
Definition at line 84 of file glc_structoccurence.h.
Referenced by addChild(), GLC_3dxmlToWorld::createUnfoldedTree(), GLC_WorldTo3dxml::exportAssemblyFromOccurence(), GLC_3dxmlToWorld::loadProductStructure(), and makeOrphan().
| bool GLC_StructOccurence::isVisible | ( | ) | const |
Return true if this occurence is visible.
Definition at line 382 of file glc_structoccurence.cpp.
References child(), childCount(), GLC_WorldHandle::collection(), GLC_3DViewCollection::contains(), GLC_3DViewCollection::instanceHandle(), isVisible(), GLC_3DViewInstance::isVisible(), m_IsVisible, m_pWorldHandle, and m_Uid.
Referenced by isVisible(), and GLC_WorldTo3dxml::writeOccurenceDefaultViewProperty().
| bool GLC_StructOccurence::loadRepresentation | ( | ) |
Load the representation and return true if success.
Definition at line 659 of file glc_structoccurence.cpp.
References create3DViewInstance(), has3DViewInstance(), hasRepresentation(), GLC_StructReference::loadRepresentation(), m_AutomaticCreationOf3DViewInstance, m_pStructInstance, GLC_StructReference::representationIsLoaded(), GLC_StructInstance::structReference(), and structReference().
| void GLC_StructOccurence::makeOrphan | ( | ) |
make the occurence orphan
Definition at line 546 of file glc_structoccurence.cpp.
References isOrphan(), m_pParent, and removeChild().
| QSet< GLC_Material * > GLC_StructOccurence::materialSet | ( | ) | const |
Return the materials List of the representation of this occurence.
Definition at line 358 of file glc_structoccurence.cpp.
References hasRepresentation(), m_Childs, GLC_StructReference::materialSet(), structInstance(), and GLC_StructInstance::structReference().
Referenced by numberOfMaterials().
| const QString GLC_StructOccurence::name | ( | ) | const [inline] |
Return the instance name of this occurence.
Definition at line 76 of file glc_structoccurence.h.
Referenced by GLC_WorldHandle::addOccurence(), create3DViewInstance(), GLC_3dxmlToWorld::createUnfoldedTree(), and GLC_3dxmlToWorld::loadProductStructure().
| unsigned int GLC_StructOccurence::nodeCount | ( | ) | const |
Return the number of node of this branch.
Definition at line 437 of file glc_structoccurence.cpp.
References m_Childs.
| unsigned int GLC_StructOccurence::numberOfFaces | ( | ) | const |
Return the number of faces of the representation of this occurence.
Definition at line 304 of file glc_structoccurence.cpp.
References hasRepresentation(), m_Childs, GLC_StructReference::numberOfFaces(), structInstance(), and GLC_StructInstance::structReference().
| unsigned int GLC_StructOccurence::numberOfMaterials | ( | ) | const |
Return the number of materials of the representation of this occurence.
Definition at line 338 of file glc_structoccurence.cpp.
References hasRepresentation(), m_Childs, materialSet(), GLC_StructReference::numberOfMaterials(), structInstance(), and GLC_StructInstance::structReference().
| unsigned int GLC_StructOccurence::numberOfVertex | ( | ) | const |
Return the number of vertex of the representation of this occurence.
Definition at line 321 of file glc_structoccurence.cpp.
References hasRepresentation(), m_Childs, GLC_StructReference::numberOfVertex(), structInstance(), and GLC_StructInstance::structReference().
| unsigned int GLC_StructOccurence::occurenceNumber | ( | ) | const [inline] |
Return the occurence number of this occurence.
Definition at line 157 of file glc_structoccurence.h.
Referenced by GLC_WorldTo3dxml::writeOccurenceDefaultViewProperty().
| GLC_StructOccurence* GLC_StructOccurence::parent | ( | ) | const [inline] |
Return The parent of this occurence.
Definition at line 120 of file glc_structoccurence.h.
Referenced by GLC_WorldTo3dxml::exportAssemblyFromOccurence(), and parentsReferences().
| QSet< GLC_StructReference * > GLC_StructOccurence::parentsReferences | ( | const GLC_StructOccurence * | pOccurence | ) | [static] |
Return the set of parents references of the given occurence.
Definition at line 464 of file glc_structoccurence.cpp.
References parent(), structInstance(), and structReference().
Referenced by canBeAddedToChildren().
| bool GLC_StructOccurence::remove3DViewInstance | ( | ) |
Remove the 3DViewInstance of this occurence.
Definition at line 623 of file glc_structoccurence.cpp.
References GLC_WorldHandle::collection(), m_pWorldHandle, m_Uid, and GLC_3DViewCollection::remove().
| bool GLC_StructOccurence::removeChild | ( | GLC_StructOccurence * | pChild | ) |
Remove the specified child.
The removed child will not be deleted
Definition at line 556 of file glc_structoccurence.cpp.
References detach(), m_Childs, and m_pParent.
Referenced by makeOrphan(), and ~GLC_StructOccurence().
| void GLC_StructOccurence::removeEmptyChildren | ( | ) |
Remove empty children.
Definition at line 760 of file glc_structoccurence.cpp.
References m_Childs.
Referenced by GLC_ColladaToWorld::createSceneGraph().
| GLC_RenderProperties* GLC_StructOccurence::renderPropertiesHandle | ( | ) | const [inline] |
Return an handle of the renderProperties of this occurence.
Definition at line 161 of file glc_structoccurence.h.
| void GLC_StructOccurence::reverseNormals | ( | ) |
Reverse Normals of this Occurence and childs.
Definition at line 595 of file glc_structoccurence.cpp.
References GLC_WorldHandle::collection(), has3DViewInstance(), GLC_3DViewCollection::instanceHandle(), m_pWorldHandle, and GLC_3DViewInstance::reverseGeometriesNormals().
| void GLC_StructOccurence::setAutomatic3DViewInstanceCreationUsage | ( | bool | usage | ) | [inline] |
Set the automatic creation of 3DViewInstance usage.
Definition at line 250 of file glc_structoccurence.h.
| void GLC_StructOccurence::setName | ( | const QString | name | ) | [inline] |
Set Occurence instance Name.
Definition at line 190 of file glc_structoccurence.h.
Referenced by GLC_3dsToWorld::createMeshes(), and GLC_StructOccurence().
| void GLC_StructOccurence::setOccurenceNumber | ( | unsigned int | n | ) | [inline] |
Set the occurence number of this occurence.
Definition at line 231 of file glc_structoccurence.h.
| void GLC_StructOccurence::setReference | ( | GLC_StructReference * | pRef | ) |
Set the given reference to this occurence.
Definition at line 778 of file glc_structoccurence.cpp.
References addChild(), GLC_StructReference::firstInstanceHandle(), GLC_StructInstance::firstOccurenceHandle(), GLC_StructReference::hasStructInstance(), GLC_StructInstance::hasStructOccurence(), GLC_StructReference::listOfStructInstances(), m_Childs, m_pNumberOfOccurence, m_pStructInstance, m_pWorldHandle, GLC_StructInstance::setReference(), and GLC_StructInstance::structReference().
| void GLC_StructOccurence::setRenderProperties | ( | const GLC_RenderProperties & | renderProperties | ) |
set the renderProperties of this occurence
Definition at line 739 of file glc_structoccurence.cpp.
References childCount(), GLC_WorldHandle::collection(), has3DViewInstance(), hasChild(), GLC_3DViewCollection::instanceHandle(), m_Childs, m_pRenderProperties, m_pWorldHandle, m_Uid, and GLC_3DViewInstance::setRenderProperties().
| void GLC_StructOccurence::setVisibility | ( | bool | visibility | ) |
Set this occurence visibility.
Definition at line 725 of file glc_structoccurence.cpp.
References childCount(), GLC_WorldHandle::collection(), has3DViewInstance(), m_Childs, m_IsVisible, m_pWorldHandle, m_Uid, and GLC_3DViewCollection::setVisibility().
| void GLC_StructOccurence::setWorldHandle | ( | GLC_WorldHandle * | pWorldHandle | ) |
Set this occurence world Handle.
Definition at line 633 of file glc_structoccurence.cpp.
References GLC_WorldHandle::addOccurence(), GLC_WorldHandle::collection(), m_Childs, m_IsVisible, m_pWorldHandle, m_Uid, GLC_WorldHandle::removeOccurence(), and GLC_3DViewCollection::setVisibility().
Referenced by addChild(), and GLC_World::GLC_World().
| GLC_StructInstance* GLC_StructOccurence::structInstance | ( | ) | const [inline] |
Return the instance of this occurence.
Definition at line 98 of file glc_structoccurence.h.
Referenced by childrenReferences(), GLC_WorldTo3dxml::exportAssemblyFromOccurence(), GLC_3dxmlToWorld::loadReference3D(), materialSet(), numberOfFaces(), numberOfMaterials(), numberOfVertex(), and parentsReferences().
| GLC_StructReference* GLC_StructOccurence::structReference | ( | ) | const [inline] |
Return the reference of this occurence.
Definition at line 102 of file glc_structoccurence.h.
Referenced by GLC_WorldHandle::addOccurence(), canBeAddedToChildren(), childrenReferences(), create3DViewInstance(), GLC_WorldTo3dxml::exportAssemblyFromOccurence(), hasRepresentation(), loadRepresentation(), parentsReferences(), and unloadRepresentation().
| QList< GLC_StructOccurence * > GLC_StructOccurence::subOccurenceList | ( | ) | const |
Return the list of all accurence under this occurence.
Definition at line 284 of file glc_structoccurence.cpp.
References childCount(), hasChild(), m_Childs, and subOccurenceList().
Referenced by GLC_WorldHandle::select(), subOccurenceList(), and GLC_WorldHandle::unselect().
| bool GLC_StructOccurence::unloadRepresentation | ( | ) |
UnLoad the representation and return true if success.
Definition at line 685 of file glc_structoccurence.cpp.
References GLC_WorldHandle::collection(), has3DViewInstance(), hasRepresentation(), m_pWorldHandle, m_Uid, GLC_3DViewCollection::remove(), GLC_StructReference::representationIsLoaded(), GLC_StructReference::setOfStructOccurence(), structReference(), and GLC_StructReference::unloadRepresentation().
| GLC_StructOccurence * GLC_StructOccurence::updateAbsoluteMatrix | ( | ) |
Update the absolute matrix.
Definition at line 485 of file glc_structoccurence.cpp.
References absoluteMatrix(), GLC_WorldHandle::collection(), GLC_3DViewCollection::contains(), GLC_3DViewCollection::instanceHandle(), m_AbsoluteMatrix, m_pParent, m_pStructInstance, m_pWorldHandle, m_Uid, GLC_StructInstance::relativeMatrix(), and GLC_3DViewInstance::setMatrix().
Referenced by GLC_StructOccurence(), and updateChildrenAbsoluteMatrix().
| GLC_StructOccurence * GLC_StructOccurence::updateChildrenAbsoluteMatrix | ( | ) |
Update children obsolute Matrix.
Definition at line 505 of file glc_structoccurence.cpp.
References m_Childs, and updateAbsoluteMatrix().
Referenced by addChild(), GLC_ColladaToWorld::createSceneGraph(), GLC_3dxmlToWorld::createUnfoldedTree(), GLC_StructOccurence(), and GLC_World::mergeWithAnotherWorld().
| unsigned int GLC_StructOccurence::updateOccurenceNumber | ( | unsigned int | n | ) |
Update the occurence number of this occurence branch.
Definition at line 714 of file glc_structoccurence.cpp.
References childCount(), m_Childs, and m_OccurenceNumber.
Referenced by GLC_WorldTo3dxml::GLC_WorldTo3dxml(), and GLC_3dxmlToWorld::loadProductStructure().
| bool GLC_StructOccurence::useAutomatic3DViewInstanceCreation | ( | ) | const [inline] |
Return true if the automatic creation of 3DViewInstance is used.
Definition at line 178 of file glc_structoccurence.h.
Referenced by GLC_WorldHandle::addOccurence(), GLC_StructReference::loadRepresentation(), and GLC_StructReference::setRepresentation().
| GLC_WorldHandle* GLC_StructOccurence::worldHandle | ( | ) | const [inline] |
Return the world handle of this occurence.
Definition at line 168 of file glc_structoccurence.h.
Referenced by GLC_StructReference::addChild().
The absolute matrix of the occurence.
Definition at line 286 of file glc_structoccurence.h.
Referenced by updateAbsoluteMatrix().
bool GLC_StructOccurence::m_AutomaticCreationOf3DViewInstance [private] |
Automatique crŽation of 3DViewInstance.
Definition at line 298 of file glc_structoccurence.h.
Referenced by loadRepresentation().
QList<GLC_StructOccurence*> GLC_StructOccurence::m_Childs [private] |
The Child of this occurence.
Definition at line 283 of file glc_structoccurence.h.
Referenced by addChild(), childrenReferences(), detach(), GLC_StructOccurence(), materialSet(), nodeCount(), numberOfFaces(), numberOfMaterials(), numberOfVertex(), removeChild(), removeEmptyChildren(), setReference(), setRenderProperties(), setVisibility(), setWorldHandle(), subOccurenceList(), updateChildrenAbsoluteMatrix(), updateOccurenceNumber(), and ~GLC_StructOccurence().
bool GLC_StructOccurence::m_IsVisible [private] |
Flag to know if a occurence without instance is visible.
Definition at line 292 of file glc_structoccurence.h.
Referenced by create3DViewInstance(), isVisible(), setVisibility(), and setWorldHandle().
unsigned int GLC_StructOccurence::m_OccurenceNumber [private] |
The occurence number.
Definition at line 289 of file glc_structoccurence.h.
Referenced by updateOccurenceNumber().
int* GLC_StructOccurence::m_pNumberOfOccurence [private] |
Number of this Occurence.
Definition at line 274 of file glc_structoccurence.h.
Referenced by GLC_StructOccurence(), setReference(), and ~GLC_StructOccurence().
The parent of this occurence.
Definition at line 280 of file glc_structoccurence.h.
Referenced by addChild(), makeOrphan(), removeChild(), and updateAbsoluteMatrix().
The occurence rendering properties.
Definition at line 295 of file glc_structoccurence.h.
Referenced by detach(), GLC_StructOccurence(), setRenderProperties(), and ~GLC_StructOccurence().
The struct instance of this occurence.
Definition at line 277 of file glc_structoccurence.h.
Referenced by canBeAddedToChildren(), GLC_StructOccurence(), hasRepresentation(), loadRepresentation(), setReference(), updateAbsoluteMatrix(), and ~GLC_StructOccurence().
the occurence's World Handle
Definition at line 271 of file glc_structoccurence.h.
Referenced by addChild(), boundingBox(), create3DViewInstance(), detach(), GLC_StructOccurence(), has3DViewInstance(), isVisible(), remove3DViewInstance(), reverseNormals(), setReference(), setRenderProperties(), setVisibility(), setWorldHandle(), unloadRepresentation(), updateAbsoluteMatrix(), and ~GLC_StructOccurence().
GLC_uint GLC_StructOccurence::m_Uid [private] |
Occurence Unique ID.
Definition at line 268 of file glc_structoccurence.h.
Referenced by create3DViewInstance(), detach(), has3DViewInstance(), isVisible(), remove3DViewInstance(), setRenderProperties(), setVisibility(), setWorldHandle(), unloadRepresentation(), and updateAbsoluteMatrix().