|
Viewer
A plugin-based viewer for learning Computer Graphics and OpenGL
|
00001 #ifndef SCENE_H 00002 #define SCENE_H 00003 00004 #include <QtOpenGL/qgl.h> 00005 #include "object.h" 00006 00007 using namespace std; 00008 00016 class CORE_EXPORT Scene 00017 { 00018 public: 00022 Scene(); 00023 00027 const vector<Object>& objects() const; 00028 00032 void addObject(Object &); 00033 00038 int selectedObject() const; 00039 00045 void setSelectedObject(int index); 00046 00050 void computeBoundingBox(); 00051 00056 Box boundingBox() const; 00057 00058 private: 00059 vector<Object> pobjects; 00060 Box pboundingBox; 00061 int pselectedObject; 00062 }; 00063 00064 #endif
1.7.6.1