Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
GLsceneBase Class Reference

#include <GLsceneBase.h>

Inheritance diagram for GLsceneBase:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void addBody (hrp::BodyPtr i_body)
void capture (char *o_image)
void capture ()
hrp::Vector3 center ()
void clear ()
void defaultLights (bool flag)
bool defaultLights ()
void draw ()
virtual void drawAdditionalLines ()
size_t drawObjects (bool showSensors=true)
GLcameragetCamera ()
GLcameragetDefaultCamera ()
 GLsceneBase (LogManagerBase *i_log)
void init ()
void initLights ()
void maxEdgeLen (double i_len)
void nextCamera ()
void nextObject ()
void requestCapture (const char *i_fname)
void requestClear ()
void save (const char *i_fname)
void setBackGroundColor (float rgb[3])
void setCamera (GLcamera *i_camera)
void setMessages (const std::vector< std::string > &i_msgs)
void setScreenSize (int w, int h)
void setView ()
void showFloorGrid (bool flag)
bool showFloorGrid ()
void showInfo (bool flag)
void showSlider (bool flag)
virtual void showStatus ()
hrp::BodyPtr targetObject ()
void toggleRobotState ()
virtual void updateScene ()=0
virtual ~GLsceneBase ()

Protected Types

enum  { REQ_NONE, REQ_CLEAR, REQ_CAPTURE }

Protected Member Functions

void drawFloorGrid ()
void drawInfo (double fps, size_t ntri)

Protected Attributes

float m_bgColor [3]
GLcameram_camera
IplImage * m_cvImage
GLcameram_default_camera
bool m_defaultLights
std::string m_fname
int m_height
bool m_isCapturing
struct timeval m_lastDraw
LogManagerBasem_log
double m_maxEdgeLen
std::vector< std::string > m_msgs
int m_request
SDL_sem * m_sem
bool m_showFloorGrid
bool m_showInfo
bool m_showingStatus
bool m_showSlider
int m_targetObject
CvVideoWriter * m_videoWriter
int m_width

Detailed Description

Definition at line 25 of file GLsceneBase.h.


Member Enumeration Documentation

anonymous enum [protected]
Enumerator:
REQ_NONE 
REQ_CLEAR 
REQ_CAPTURE 

Definition at line 64 of file GLsceneBase.h.


Constructor & Destructor Documentation

Definition at line 28 of file GLsceneBase.cpp.

Definition at line 48 of file GLsceneBase.cpp.


Member Function Documentation

Reimplemented from hrp::WorldBase.

Definition at line 414 of file GLsceneBase.cpp.

void GLsceneBase::capture ( char *  o_image)

Definition at line 121 of file GLsceneBase.cpp.

void GLsceneBase::capture ( ) [inline]

Definition at line 62 of file GLsceneBase.h.

Definition at line 442 of file GLsceneBase.cpp.

Definition at line 402 of file GLsceneBase.cpp.

Definition at line 154 of file GLsceneBase.cpp.

Definition at line 168 of file GLsceneBase.cpp.

Reimplemented in GLscene.

Definition at line 289 of file GLsceneBase.cpp.

virtual void GLsceneBase::drawAdditionalLines ( ) [inline, virtual]

Reimplemented in GLscene, GLscene, CollisionDetectorComponent::GLscene, and GLscene.

Definition at line 52 of file GLsceneBase.h.

Definition at line 200 of file GLsceneBase.cpp.

void GLsceneBase::drawInfo ( double  fps,
size_t  ntri 
) [protected]

Definition at line 229 of file GLsceneBase.cpp.

size_t GLsceneBase::drawObjects ( bool  showSensors = true)

Definition at line 271 of file GLsceneBase.cpp.

Reimplemented in GLscene, and GLscene.

Definition at line 94 of file GLsceneBase.cpp.

Definition at line 99 of file GLsceneBase.cpp.

Reimplemented in GLscene.

Definition at line 173 of file GLsceneBase.cpp.

Definition at line 136 of file GLsceneBase.cpp.

void GLsceneBase::maxEdgeLen ( double  i_len)

Definition at line 423 of file GLsceneBase.cpp.

Definition at line 67 of file GLsceneBase.cpp.

Definition at line 88 of file GLsceneBase.cpp.

void GLsceneBase::requestCapture ( const char *  i_fname)

Definition at line 395 of file GLsceneBase.cpp.

Definition at line 389 of file GLsceneBase.cpp.

void GLsceneBase::save ( const char *  i_fname)

Reimplemented in GLscene.

Definition at line 104 of file GLsceneBase.cpp.

Definition at line 437 of file GLsceneBase.cpp.

Reimplemented in GLscene, and GLscene.

Definition at line 60 of file GLsceneBase.cpp.

void GLsceneBase::setMessages ( const std::vector< std::string > &  i_msgs) [inline]

Definition at line 44 of file GLsceneBase.h.

Definition at line 55 of file GLsceneBase.cpp.

Definition at line 408 of file GLsceneBase.cpp.

Definition at line 190 of file GLsceneBase.cpp.

Definition at line 195 of file GLsceneBase.cpp.

void GLsceneBase::showInfo ( bool  flag)

Definition at line 224 of file GLsceneBase.cpp.

void GLsceneBase::showSlider ( bool  flag) [inline]

Definition at line 45 of file GLsceneBase.h.

virtual void GLsceneBase::showStatus ( ) [inline, virtual]

Reimplemented in CollisionDetectorComponent::GLscene, GLscene, GLscene, GLscene, and GLscene.

Definition at line 51 of file GLsceneBase.h.

Definition at line 428 of file GLsceneBase.cpp.

Definition at line 47 of file GLsceneBase.h.

virtual void GLsceneBase::updateScene ( ) [pure virtual]

Member Data Documentation

float GLsceneBase::m_bgColor[3] [protected]

Definition at line 83 of file GLsceneBase.h.

Reimplemented in GLscene.

Definition at line 72 of file GLsceneBase.h.

IplImage* GLsceneBase::m_cvImage [protected]

Definition at line 75 of file GLsceneBase.h.

Reimplemented in GLscene.

Definition at line 72 of file GLsceneBase.h.

bool GLsceneBase::m_defaultLights [protected]

Definition at line 78 of file GLsceneBase.h.

std::string GLsceneBase::m_fname [protected]

Definition at line 80 of file GLsceneBase.h.

Definition at line 71 of file GLsceneBase.h.

bool GLsceneBase::m_isCapturing [protected]

Definition at line 84 of file GLsceneBase.h.

struct timeval GLsceneBase::m_lastDraw [protected]

Definition at line 73 of file GLsceneBase.h.

Definition at line 76 of file GLsceneBase.h.

double GLsceneBase::m_maxEdgeLen [protected]

Definition at line 81 of file GLsceneBase.h.

std::vector<std::string> GLsceneBase::m_msgs [protected]

Definition at line 69 of file GLsceneBase.h.

Definition at line 79 of file GLsceneBase.h.

SDL_sem* GLsceneBase::m_sem [protected]

Definition at line 77 of file GLsceneBase.h.

bool GLsceneBase::m_showFloorGrid [protected]

Definition at line 78 of file GLsceneBase.h.

bool GLsceneBase::m_showInfo [protected]

Definition at line 78 of file GLsceneBase.h.

bool GLsceneBase::m_showingStatus [protected]

Definition at line 70 of file GLsceneBase.h.

bool GLsceneBase::m_showSlider [protected]

Definition at line 70 of file GLsceneBase.h.

Definition at line 82 of file GLsceneBase.h.

CvVideoWriter* GLsceneBase::m_videoWriter [protected]

Definition at line 74 of file GLsceneBase.h.

Definition at line 71 of file GLsceneBase.h.


The documentation for this class was generated from the following files:


hrpsys
Author(s): AIST, Fumio Kanehiro
autogenerated on Wed Sep 6 2017 02:35:57