Core library
A simple library for handling 3D scenes
include/scene.h
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
 All Classes Functions