1 #ifndef __GL_SCENE_BASE_H__ 2 #define __GL_SCENE_BASE_H__ 9 #include <opencv2/core/core_c.h> 10 #include <opencv2/highgui/highgui_c.h> 11 #ifndef CV_VERSION_EPOCH 12 #if CV_VERSION_MAJOR > 3 13 #include <opencv2/videoio/videoio_c.h> 16 #include <SDL/SDL_thread.h> 17 #include <hrpCorba/ModelLoader.hh> 19 #include <hrpModel/World.h> 27 #define SLIDER_AREA_HEIGHT 30 28 #define SLIDER_SIDE_MARGIN 10 35 void save(
const char *i_fname);
72 void drawInfo(
double fps,
size_t ntri);
void setCamera(GLcamera *i_camera)
GLcamera * m_default_camera
virtual void updateScene()=0
GLsceneBase(LogManagerBase *i_log)
void setBackGroundColor(float rgb[3])
std::vector< std::string > m_msgs
GLcamera * getDefaultCamera()
size_t drawObjects(bool showSensors=true)
void addBody(hrp::BodyPtr i_body)
void showSlider(bool flag)
void save(const char *i_fname)
virtual void showStatus()
void requestCapture(const char *i_fname)
void setScreenSize(int w, int h)
hrp::BodyPtr targetObject()
void drawInfo(double fps, size_t ntri)
void maxEdgeLen(double i_len)
void setMessages(const std::vector< std::string > &i_msgs)
virtual void drawAdditionalLines()
png_infop png_uint_32 flag
CvVideoWriter * m_videoWriter
struct timeval m_lastDraw