source: flair-src/trunk/lib/FlairSimulator/src/unexported/Gui_impl.h@ 8

Last change on this file since 8 was 8, checked in by Sanahuja Guillaume, 6 years ago

simulator

File size: 2.2 KB
Line 
1// created: 2013/03/27
2// filename: Gui_impl.h
3//
4// author: Guillaume Sanahuja
5// Copyright Heudiasyc UMR UTC/CNRS 7253
6//
7// version: $Id: $
8//
9// purpose: classe definissant une Gui
10//
11/*********************************************************************/
12
13#ifndef GUI_IMPL_H
14#define GUI_IMPL_H
15
16#include <string>
17#include <vector>
18#include <io_hdfile.h>
19#include <EDriverTypes.h>
20#include <vector3d.h>
21
22namespace irr
23{
24 class IrrlichtDevice;
25 namespace scene
26 {
27 class ISceneManager;
28 class IMeshSceneNode;
29 class ITriangleSelector;
30 }
31 namespace video
32 {
33 class IVideoDriver;
34 }
35 namespace gui
36 {
37 class IGUIFont;
38 class IGUIEnvironment;
39 }
40}
41
42namespace flair
43{
44 namespace core
45 {
46 class Object;
47 }
48 namespace simulator
49 {
50 class Model;
51 class GenericObject;
52 class Gui;
53 }
54}
55
56class MyEventReceiver;
57
58class Gui_impl
59{
60 public:
61 Gui_impl(flair::simulator::Gui* self,int app_width, int app_height,int scene_width, int scene_height,std::string media_path,irr::video::E_DRIVER_TYPE driver_type=irr::video::EDT_OPENGL);
62 ~Gui_impl();
63 void RunGui(std::vector<flair::simulator::Model*> modeles,std::vector<flair::simulator::GenericObject*> objects);
64 void setMesh(std::string file,irr::core::vector3df position = irr::core::vector3df(0,0,0),irr::core::vector3df rotation= irr::core::vector3df(0,0,0),irr::core::vector3df scale= irr::core::vector3df(1,1,1));
65
66 irr::scene::IMeshSceneNode* node;
67 irr::IrrlichtDevice *device;
68 std::string media_path;
69 irr::video::IVideoDriver* driver;
70 irr::scene::ISceneManager* smgr;
71 int scene_width,scene_height;
72
73 private:
74 MyEventReceiver *receiver;
75 irr::scene::ITriangleSelector* selector;
76 irr::gui::IGUIFont* font;
77 irr::gui::IGUIEnvironment* env;
78 void setWindowCaption(flair::core::Object* object, int fps);
79 void takeScreenshot(void);
80 hdfile_t *dbtFile_r,*dbtFile_w;
81 size_t dbtSize(std::vector<flair::simulator::Model*> modeles);
82 char* dbtbuf;
83 flair::simulator::Gui *self;
84};
85
86#endif // GUI_IMPL_H
Note: See TracBrowser for help on using the repository browser.