SDLUtil.h
Go to the documentation of this file.
1 #include "ThreadedObject.h"
2 
3 class GLsceneBase;
4 class ThreadedObject;
5 class LogManagerBase;
6 
7 class SDLwindow : public ThreadedObject
8 {
9 public:
10  SDLwindow(GLsceneBase *i_scene, LogManagerBase *i_lm,
11  ThreadedObject *i_throbj=NULL);
12  ~SDLwindow();
13  bool init(int w=0, int h=0, bool resizable=true);
14  bool processEvents();
15  void draw();
16  void swapBuffers();
17  bool oneStep();
18  void setView(double T[16]);
19  void setSize(int w, int h);
20 private:
21  double sliderRatio(double x);
25  int width, height;
26  double pan, tilt, radius;
30  std::vector<std::string> helpcommand, instructions;
31  bool initialized;
32 };
33 
bool showingHelp
Definition: SDLUtil.h:29
void draw()
Definition: SDLUtil.cpp:308
void setSize(int w, int h)
Definition: SDLUtil.cpp:369
LogManagerBase * log
Definition: SDLUtil.h:23
double tilt
Definition: SDLUtil.h:26
~SDLwindow()
Definition: SDLUtil.cpp:47
SDLwindow(GLsceneBase *i_scene, LogManagerBase *i_lm, ThreadedObject *i_throbj=NULL)
Definition: SDLUtil.cpp:18
double pan
Definition: SDLUtil.h:26
bool processEvents()
Definition: SDLUtil.cpp:97
double radius
Definition: SDLUtil.h:26
bool init(int w=0, int h=0, bool resizable=true)
Definition: SDLUtil.cpp:54
w
GLsceneBase * scene
Definition: SDLUtil.h:22
ThreadedObject * throbj
Definition: SDLUtil.h:24
void setView(double T[16])
Definition: SDLUtil.cpp:359
bool initialized
Definition: SDLUtil.h:31
bool oneStep()
Definition: SDLUtil.cpp:342
bool isControlPressed
Definition: SDLUtil.h:27
double sliderRatio(double x)
Definition: SDLUtil.cpp:89
bool isShiftPressed
Definition: SDLUtil.h:27
bool buttonPressedInSliderArea
Definition: SDLUtil.h:29
std::vector< std::string > instructions
Definition: SDLUtil.h:30
int height
Definition: SDLUtil.h:25
double yCenter
Definition: SDLUtil.h:28
void swapBuffers()
Definition: SDLUtil.cpp:337
double xCenter
Definition: SDLUtil.h:28
int width
Definition: SDLUtil.h:25
std::vector< std::string > helpcommand
Definition: SDLUtil.h:30
double zCenter
Definition: SDLUtil.h:28


hrpsys
Author(s): AIST, Fumio Kanehiro
autogenerated on Sat Dec 17 2022 03:52:21