glc_object.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00024
00025 #ifndef GLC_OBJECT_H_
00026 #define GLC_OBJECT_H_
00027
00028 #include <QtOpenGL>
00029 #include <QString>
00030 #include <QUuid>
00031 #include <QMutex>
00032 #include "glc_global.h"
00033
00034 #include "glc_config.h"
00035
00038
00045
00046
00047 class GLC_LIB_EXPORT GLC_Object
00048 {
00050
00052
00053 public:
00054
00056
00058 GLC_Object(const QString& name= QString());
00059
00061 GLC_Object(const GLC_Object& sourceObject);
00062
00064 virtual ~GLC_Object();
00066
00068
00070
00071 public:
00073 inline GLC_uint id() const
00074 {return m_Uid;}
00075
00077 inline const QString name() const
00078 {return m_Name;}
00079
00081 inline bool operator == (const GLC_Object& obj)
00082 {return (m_Uid == obj.m_Uid) && (m_Name == obj.m_Name);}
00084
00086
00088
00089 public:
00090
00092
00093 void setId(const GLC_uint id);
00094
00096
00097 void setName(const QString& name);
00098
00100
00101 GLC_Object &operator=(const GLC_Object&);
00102
00104
00105
00107
00109
00110 protected:
00112
00113 GLC_uint m_Uid;
00114
00116 QString m_Name;
00117
00119 QMutex m_Mutex;
00120 };
00121 #endif //GLC_OBJECT_H_