00001 00002 00003 #ifndef SCENEANALYSEGUI_H 00004 #define SCENEANALYSEGUI_H 00005 00006 00007 #include "RenderableObject.h" 00008 00009 00010 namespace pge { 00011 namespace gui { 00012 00013 class TextEdit; 00014 00015 class SceneAnalyseGUI : public IRenderableObject { 00016 00017 00018 public: 00019 //************************************************************************ 00020 // 00021 // Destructor 00022 // 00023 //************************************************************************ 00025 virtual ~SceneAnalyseGUI(void); 00026 00027 00028 //************************************************************************ 00029 // 00030 // Functions 00031 // 00032 //************************************************************************ 00033 static SceneAnalyseGUI* getInstance(void); 00034 bool init(void); 00035 void render(void); 00036 void timer(unsigned int delay); 00037 00038 int getMeshCount(void) { 00039 return m_meshCount; 00040 } 00041 00042 void setMeshCount(int meshCount) { 00043 m_meshCount = meshCount; 00044 } 00045 00046 int getNodeCount(void) { 00047 return m_nodeCount; 00048 } 00049 00050 void setNodeCount(int nodeCount) { 00051 m_nodeCount = nodeCount; 00052 } 00053 00054 int getTriangleCount(void) { 00055 return m_triangleCount; 00056 } 00057 00058 void setTriangleCount(int triangleCount) { 00059 m_triangleCount = triangleCount; 00060 } 00061 00062 void addVisibleTriangleCount(int count) { 00063 m_visibleTriangleCount += count; 00064 } 00065 00066 void addVisibleMeshCount(int count) { 00067 m_visibleMeshCount += count; 00068 } 00069 00070 void addVisibleNodeCount(int count) { 00071 m_visibleNodeCount += count; 00072 } 00073 00074 void addOcclusionCulledNodeCount(int count) { 00075 m_occlusionCulledNodeCount += count; 00076 } 00077 00078 void setFPS(int fps) { 00079 m_currentFPS = fps; 00080 } 00081 00082 00083 private: 00084 //************************************************************************ 00085 // 00086 // Constructor 00087 // 00088 //************************************************************************ 00090 SceneAnalyseGUI(void); 00091 00092 00093 //************************************************************************ 00094 // 00095 // Variables 00096 // 00097 //************************************************************************ 00098 TextEdit *m_textEdit0; 00099 TextEdit *m_textEdit1; 00100 TextEdit *m_textEdit2; 00101 TextEdit *m_textEdit3; 00102 TextEdit *m_textEdit4; 00103 int m_visibleTriangleCount; 00104 int m_visibleMeshCount; 00105 int m_visibleNodeCount; 00106 int m_occlusionCulledNodeCount; 00107 00108 int m_triangleCount; 00109 int m_meshCount; 00110 int m_nodeCount; 00111 00112 int m_currentFPS; 00113 00114 int m_timePassed; 00115 }; 00116 }; 00117 }; 00118 00119 #endif