SDLUtil.h
Go to the documentation of this file.
00001 #include "ThreadedObject.h"
00002 
00003 class GLsceneBase;
00004 class ThreadedObject;
00005 class LogManagerBase;
00006 
00007 class SDLwindow : public ThreadedObject
00008 {
00009 public:
00010     SDLwindow(GLsceneBase *i_scene, LogManagerBase *i_lm, 
00011               ThreadedObject *i_throbj=NULL);
00012     ~SDLwindow();
00013     bool init(int w=0, int h=0, bool resizable=true);
00014     bool processEvents();
00015     void draw();
00016     void swapBuffers();
00017     bool oneStep();
00018     void setView(double T[16]);
00019     void setSize(int w, int h);
00020 private:
00021     double sliderRatio(double x);
00022     GLsceneBase *scene;
00023     LogManagerBase *log;
00024     ThreadedObject *throbj;
00025     int width, height;
00026     double pan, tilt, radius;
00027     bool isShiftPressed, isControlPressed;
00028     double xCenter, yCenter, zCenter;
00029     bool showingHelp, buttonPressedInSliderArea;
00030     std::vector<std::string> helpcommand, instructions;
00031     bool initialized; 
00032 };
00033 


hrpsys
Author(s): AIST, Fumio Kanehiro
autogenerated on Wed May 15 2019 05:02:19