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

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

refonte camera simu

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