00001
00002
00003
00004
00005 #ifndef SCENE_H
00006 #define SCENE_H
00007
00008 #include "gui/DisplayRep.h"
00009 #include <list>
00010
00011 namespace gui {
00012 class ViewPort;
00013
00014
00015 class Scene
00016 {
00017 public:
00018 Scene();
00019 ~Scene();
00020
00021
00022 void add(DisplayRep*);
00023
00024
00025 void remove(DisplayRep*);
00026
00027
00028 void draw(ViewPort *v);
00029
00030
00031 void clear();
00032
00033
00034 void update();
00035
00036
00037 void enable();
00038
00039
00040 void disable();
00041
00042
00043 bool enabled()const;
00044
00045
00046
00047 private:
00048 typedef std::list<DisplayRep*> RepList;
00049 RepList m_replist;
00050
00051 bool m_enabled;
00052
00053 };
00055 inline bool Scene::enabled()const{return m_enabled;}
00056
00057 }
00058
00059 #endif //SCENE_H
00060
00061
00062
00063
00064
00065