GLC_StructReference Class Reference

GLC_StructReference : A scene graph reference node. More...

#include <glc_structreference.h>

List of all members.

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_StructReferenceoperator= (const GLC_StructReference &)
 Overload "=" operator.
virtual ~GLC_StructReference ()
 Destructor.
Get Functions

bool hasStructInstance () const
 Return true if this reference has instance.
GLC_StructInstancefirstInstanceHandle () 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_ReprepresentationHandle () 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_AttributesattributesHandle () 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_Repm_pRepresentation
 The representation of reference.
QString m_Name
 The Reference Name.
GLC_Attributesm_pAttributes
 The Reference attributes.

Detailed Description

GLC_StructReference : A scene graph reference node.

Definition at line 44 of file glc_structreference.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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]
bool GLC_StructReference::hasStructInstance (  )  const [inline]
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]
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]
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  ) 
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().


Member Data Documentation

QString GLC_StructReference::m_Name [private]

The Reference Name.

Definition at line 202 of file glc_structreference.h.

Referenced by operator=().

The Reference attributes.

Definition at line 205 of file glc_structreference.h.

Referenced by operator=(), and ~GLC_StructReference().

The representation of reference.

Definition at line 199 of file glc_structreference.h.

Referenced by GLC_StructReference(), operator=(), setRepresentation(), and ~GLC_StructReference().

The Set of reference's instances.

Definition at line 196 of file glc_structreference.h.

Referenced by operator=().


The documentation for this class was generated from the following files:

SourceForge.net Logo

©2005-2010 Laurent Ribon