GLC_World Class Reference

GLC_World : The Root of GLC_Lib Scene Graph. More...

#include <glc_world.h>

List of all members.

Public Member Functions

Constructor / Destructor

 GLC_World ()
 Default constructor.
 GLC_World (const GLC_World &)
 Copy constructor.
virtual ~GLC_World ()
 Destructor.
Get Functions

GLC_BoundingBox boundingBox ()
 Return the entire world Bounding Box.
GLC_StructOccurencerootOccurence () const
 Return the root of the world.
GLC_3DViewCollectioncollection ()
 Return the world collection.
int size () const
 Return the size of the world.
bool isEmpty () const
 Return true if the world is empty.
int numberOfFaces () const
 Return number of faces.
int numberOfVertex () const
 Return number of vertex.
int numberOfMaterials () const
 Return the number of materials.
QList< GLC_Material * > listOfMaterials () const
 Return the list of material.
QList< GLC_3DViewInstance * > instancesHandle () const
 Return list of world's instances.
QList< GLC_3DViewInstance * > visibleInstancesHandle () const
 Return all visible GLC_3DViewInstance from the world.
QList< QString > instanceNamesFromShadingGroup (GLuint id) const
 Return instances name from the specified shading group.
int numberOfUsedShadingGroup () const
 Return the number of used shading group.
GLC_WorldHandleworldHandle ()
 Return the worldHandle of this world.
GLC_StructOccurenceoccurence (GLC_uint id) const
 Return the occurence specified by an id.
QList< GLC_StructOccurence * > listOfOccurence () const
 Return the list off occurences.
int numberOfOccurence () const
 Return the number of occurence.
int contains (GLC_uint id) const
 Return true if the world contians specified id.
QList< GLC_StructInstance * > instances () const
 Return the list of instance.
QList< GLC_StructReference * > references () const
 Return the list of Reference.
int numberOfBody () const
 Return the number of body.
GLC_Vector3d upVector () const
 Return the world Up vector.
Set Functions

void mergeWithAnotherWorld (GLC_World &)
 Merge this world with another world.
void reversePartNormal ()
 Reverse worlds part normal.
GLC_Worldclear ()
 Clear this world.
void setRootName (const QString &name)
 Set the World root Name.
void setUpVector (const GLC_Vector3d &vect)
 Set the world Up Vector.
void setAttachedViewport (GLC_Viewport *pViewport)
 Set the attached viewport of this world.
Operator Overload

GLC_Worldoperator= (const GLC_World &)
 Assignement operator.
OpenGL Functions

void render (GLuint groupId, glc::RenderFlag renderFlag=glc::ShadingFlag)
 Display the world.
void renderShaderGroup (glc::RenderFlag renderFlag=glc::ShadingFlag)
 Display the world's shader group.

Private Attributes

GLC_WorldHandlem_pWorldHandle
 The World Handle.
GLC_StructOccurencem_pRoot
 The root of the structure.

Detailed Description

GLC_World : The Root of GLC_Lib Scene Graph.

GLC_World contain :

Definition at line 48 of file glc_world.h.


Constructor & Destructor Documentation

GLC_World::GLC_World (  ) 

Default constructor.

Definition at line 32 of file glc_world.cpp.

References m_pRoot, m_pWorldHandle, and GLC_StructOccurence::setWorldHandle().

GLC_World::GLC_World ( const GLC_World world  ) 

Copy constructor.

Definition at line 41 of file glc_world.cpp.

References GLC_WorldHandle::increment(), and m_pWorldHandle.

GLC_World::~GLC_World (  )  [virtual]

Destructor.

Definition at line 50 of file glc_world.cpp.

References GLC_WorldHandle::decrement(), GLC_WorldHandle::isOrphan(), m_pRoot, and m_pWorldHandle.


Member Function Documentation

GLC_BoundingBox GLC_World::boundingBox ( void   )  [inline]

Return the entire world Bounding Box.

Definition at line 71 of file glc_world.h.

GLC_World& GLC_World::clear ( void   )  [inline]

Clear this world.

Definition at line 174 of file glc_world.h.

GLC_3DViewCollection* GLC_World::collection (  )  [inline]
int GLC_World::contains ( GLC_uint  id  )  const [inline]

Return true if the world contians specified id.

Definition at line 140 of file glc_world.h.

QList<QString> GLC_World::instanceNamesFromShadingGroup ( GLuint  id  )  const [inline]

Return instances name from the specified shading group.

Definition at line 115 of file glc_world.h.

QList<GLC_StructInstance*> GLC_World::instances (  )  const [inline]

Return the list of instance.

Definition at line 144 of file glc_world.h.

QList<GLC_3DViewInstance*> GLC_World::instancesHandle (  )  const [inline]

Return list of world's instances.

Definition at line 107 of file glc_world.h.

bool GLC_World::isEmpty ( void   )  const [inline]

Return true if the world is empty.

Definition at line 87 of file glc_world.h.

QList<GLC_Material*> GLC_World::listOfMaterials (  )  const [inline]

Return the list of material.

Definition at line 103 of file glc_world.h.

Referenced by GLC_WorldTo3dxml::writeAllMaterialRelatedFilesIn3dxml().

QList<GLC_StructOccurence*> GLC_World::listOfOccurence (  )  const [inline]

Return the list off occurences.

Definition at line 132 of file glc_world.h.

Referenced by GLC_3dxmlToWorld::loadProductStructure().

void GLC_World::mergeWithAnotherWorld ( GLC_World anotherWorld  ) 
int GLC_World::numberOfBody (  )  const [inline]

Return the number of body.

Definition at line 152 of file glc_world.h.

int GLC_World::numberOfFaces (  )  const [inline]

Return number of faces.

Definition at line 91 of file glc_world.h.

int GLC_World::numberOfMaterials (  )  const [inline]

Return the number of materials.

Definition at line 99 of file glc_world.h.

int GLC_World::numberOfOccurence (  )  const [inline]

Return the number of occurence.

Definition at line 136 of file glc_world.h.

int GLC_World::numberOfUsedShadingGroup (  )  const [inline]

Return the number of used shading group.

Definition at line 119 of file glc_world.h.

int GLC_World::numberOfVertex (  )  const [inline]

Return number of vertex.

Definition at line 95 of file glc_world.h.

GLC_StructOccurence* GLC_World::occurence ( GLC_uint  id  )  const [inline]

Return the occurence specified by an id.

Id must be a valid identifier

Definition at line 128 of file glc_world.h.

GLC_World & GLC_World::operator= ( const GLC_World world  ) 
QList<GLC_StructReference*> GLC_World::references (  )  const [inline]

Return the list of Reference.

Definition at line 148 of file glc_world.h.

void GLC_World::render ( GLuint  groupId,
glc::RenderFlag  renderFlag = glc::ShadingFlag 
) [inline]

Display the world.

Definition at line 208 of file glc_world.h.

void GLC_World::renderShaderGroup ( glc::RenderFlag  renderFlag = glc::ShadingFlag  )  [inline]

Display the world's shader group.

Definition at line 212 of file glc_world.h.

void GLC_World::reversePartNormal (  )  [inline]

Reverse worlds part normal.

Definition at line 171 of file glc_world.h.

GLC_StructOccurence* GLC_World::rootOccurence (  )  const [inline]
void GLC_World::setAttachedViewport ( GLC_Viewport pViewport  )  [inline]

Set the attached viewport of this world.

Definition at line 187 of file glc_world.h.

void GLC_World::setRootName ( const QString &  name  )  [inline]

Set the World root Name.

Definition at line 177 of file glc_world.h.

Referenced by GLC_3dxmlToWorld::loadReference3D().

void GLC_World::setUpVector ( const GLC_Vector3d vect  )  [inline]

Set the world Up Vector.

Definition at line 183 of file glc_world.h.

Referenced by GLC_ColladaToWorld::CreateWorldFromCollada().

int GLC_World::size ( void   )  const [inline]

Return the size of the world.

Definition at line 83 of file glc_world.h.

Referenced by mergeWithAnotherWorld().

GLC_Vector3d GLC_World::upVector ( void   )  const [inline]

Return the world Up vector.

Definition at line 156 of file glc_world.h.

QList<GLC_3DViewInstance*> GLC_World::visibleInstancesHandle (  )  const [inline]

Return all visible GLC_3DViewInstance from the world.

Definition at line 111 of file glc_world.h.

GLC_WorldHandle* GLC_World::worldHandle (  )  [inline]

Return the worldHandle of this world.

Definition at line 123 of file glc_world.h.

Referenced by GLC_3dxmlToWorld::createUnfoldedTree().


Member Data Documentation

The root of the structure.

Definition at line 224 of file glc_world.h.

Referenced by GLC_World(), mergeWithAnotherWorld(), operator=(), and ~GLC_World().

The World Handle.

Definition at line 221 of file glc_world.h.

Referenced by GLC_World(), mergeWithAnotherWorld(), operator=(), and ~GLC_World().


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

SourceForge.net Logo

©2005-2010 Laurent Ribon