GLC_Object Class Reference

GLC_Object is base class for some GLC class. More...

#include <glc_object.h>

Inheritance diagram for GLC_Object:
GLC_3DViewInstance GLC_Camera GLC_Light GLC_Material

List of all members.

Public Member Functions

Constructor / Destructor

 GLC_Object (const QString &name=QString())
 Default constructor.
 GLC_Object (GLC_uint id, const QString &name=QString())
 Construct a GLC_Object with the given UID.
 GLC_Object (const GLC_Object &sourceObject)
 Construct a GLC_Object from the given GLC_Object.
virtual ~GLC_Object ()
 Virtual destructor.
Get Functions

GLC_uint id () const
 Return this object id.
const QString name () const
 Return this object name.
bool operator== (const GLC_Object &obj)
 Return true if this object is equal to the given object.
Set Functions

void setId (const GLC_uint id)
 Set this object Id.
void setName (const QString &name)
 Set this object Name.
GLC_Objectoperator= (const GLC_Object &)
 Set this object from the given object.

Protected Attributes

GLC_uint m_Uid
 The Unique ID of an GLC_Object.
QString m_Name
 Name of an GLC_Object.
QMutex m_Mutex
 GLC_Object Mutex.

Detailed Description

GLC_Object is base class for some GLC class.

GLC_Object is a abstract class.

Every GLC_Object have :

Definition at line 47 of file glc_object.h.


Constructor & Destructor Documentation

GLC_Object::GLC_Object ( const QString &  name = QString()  ) 

Default constructor.

Construct a GLC_Object , Generate is UID GLC_Object::m_Uid and set GLC_Object::m_Name to specified name

Definition at line 31 of file glc_object.cpp.

GLC_Object::GLC_Object ( GLC_uint  id,
const QString &  name = QString() 
)

Construct a GLC_Object with the given UID.

Definition at line 39 of file glc_object.cpp.

GLC_Object::GLC_Object ( const GLC_Object sourceObject  ) 

Construct a GLC_Object from the given GLC_Object.

Definition at line 47 of file glc_object.cpp.

GLC_Object::~GLC_Object (  )  [virtual]

Virtual destructor.

Definition at line 54 of file glc_object.cpp.


Member Function Documentation

GLC_uint GLC_Object::id (  )  const [inline]
const QString GLC_Object::name (  )  const [inline]
GLC_Object & GLC_Object::operator= ( const GLC_Object object  ) 

Set this object from the given object.

This method is thread safe

Definition at line 77 of file glc_object.cpp.

References m_Mutex, m_Name, and m_Uid.

bool GLC_Object::operator== ( const GLC_Object obj  )  [inline]

Return true if this object is equal to the given object.

Definition at line 84 of file glc_object.h.

References m_Name, and m_Uid.

void GLC_Object::setId ( const GLC_uint  id  ) 

Set this object Id.

This method is thread safe

Reimplemented in GLC_3DViewInstance.

Definition at line 64 of file glc_object.cpp.

References m_Mutex, and m_Uid.

Referenced by operator>>(), and GLC_3DViewInstance::setId().

void GLC_Object::setName ( const QString &  name  ) 

Member Data Documentation

QMutex GLC_Object::m_Mutex [protected]
QString GLC_Object::m_Name [protected]

Name of an GLC_Object.

Definition at line 119 of file glc_object.h.

Referenced by operator=(), operator==(), and setName().


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

SourceForge.net Logo

©2005-2011 Laurent Ribon