Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
GLsceneBase Class Referenceabstract

#include <GLsceneBase.h>

Inheritance diagram for GLsceneBase:
Inheritance graph
[legend]

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 ()
 
- Public Member Functions inherited from hrp::World< hrp::ConstraintForceSolver >
virtual void calcNextState (OpenHRP::CollisionSequence &corbaCollisionSequence)
 
virtual void initialize ()
 
 World ()
 
- Public Member Functions inherited from hrp::WorldBase
int addBody (BodyPtr body)
 
BodyPtr body (int index)
 
BodyPtr body (const std::string &name)
 
int bodyIndex (const std::string &name)
 
virtual void calcNextState ()
 
void clearBodies ()
 
void clearCollisionPairs ()
 
double currentTime (void) const
 
void enableSensors (bool on)
 
ForwardDynamicsPtr forwardDynamics (int index)
 
const Vector3getGravityAcceleration ()
 
std::pair< int, bool > getIndexOfLinkPairs (Link *link1, Link *link2)
 
unsigned int numBodies ()
 
void setCurrentTime (double tm)
 
void setEulerMethod ()
 
void setGravityAcceleration (const Vector3 &g)
 
void setRungeKuttaMethod ()
 
void setTimeStep (double dt)
 
double timeStep (void) const
 
 WorldBase ()
 
virtual ~WorldBase ()
 

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
 
- Protected Attributes inherited from hrp::WorldBase
std::vector< BodyInfo > bodyInfoArray
 
double currentTime_
 
bool sensorsAreEnabled
 
double timeStep_
 

Additional Inherited Members

- Public Attributes inherited from hrp::World< hrp::ConstraintForceSolver >
hrp::ConstraintForceSolver constraintForceSolver
 

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

GLsceneBase::GLsceneBase ( LogManagerBase i_log)

Definition at line 28 of file GLsceneBase.cpp.

GLsceneBase::~GLsceneBase ( )
virtual

Definition at line 48 of file GLsceneBase.cpp.

Member Function Documentation

void GLsceneBase::addBody ( hrp::BodyPtr  i_body)

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.

hrp::Vector3 GLsceneBase::center ( )

Definition at line 442 of file GLsceneBase.cpp.

void GLsceneBase::clear ( void  )

Definition at line 402 of file GLsceneBase.cpp.

void GLsceneBase::defaultLights ( bool  flag)

Definition at line 154 of file GLsceneBase.cpp.

bool GLsceneBase::defaultLights ( )

Definition at line 168 of file GLsceneBase.cpp.

void GLsceneBase::draw ( )

Definition at line 289 of file GLsceneBase.cpp.

virtual void GLsceneBase::drawAdditionalLines ( )
inlinevirtual

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

Definition at line 52 of file GLsceneBase.h.

void GLsceneBase::drawFloorGrid ( )
protected

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.

GLcamera * GLsceneBase::getCamera ( )

Definition at line 94 of file GLsceneBase.cpp.

GLcamera * GLsceneBase::getDefaultCamera ( )

Definition at line 99 of file GLsceneBase.cpp.

void GLsceneBase::init ( )

Definition at line 173 of file GLsceneBase.cpp.

void GLsceneBase::initLights ( )

Definition at line 136 of file GLsceneBase.cpp.

void GLsceneBase::maxEdgeLen ( double  i_len)

Definition at line 423 of file GLsceneBase.cpp.

void GLsceneBase::nextCamera ( )

Definition at line 67 of file GLsceneBase.cpp.

void GLsceneBase::nextObject ( )

Definition at line 88 of file GLsceneBase.cpp.

void GLsceneBase::requestCapture ( const char *  i_fname)

Definition at line 395 of file GLsceneBase.cpp.

void GLsceneBase::requestClear ( )

Definition at line 389 of file GLsceneBase.cpp.

void GLsceneBase::save ( const char *  i_fname)

Definition at line 104 of file GLsceneBase.cpp.

void GLsceneBase::setBackGroundColor ( float  rgb[3])

Definition at line 437 of file GLsceneBase.cpp.

void GLsceneBase::setCamera ( GLcamera i_camera)

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.

void GLsceneBase::setScreenSize ( int  w,
int  h 
)

Definition at line 55 of file GLsceneBase.cpp.

void GLsceneBase::setView ( )

Definition at line 408 of file GLsceneBase.cpp.

void GLsceneBase::showFloorGrid ( bool  flag)

Definition at line 190 of file GLsceneBase.cpp.

bool GLsceneBase::showFloorGrid ( )

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 ( )
inlinevirtual

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

Definition at line 51 of file GLsceneBase.h.

hrp::BodyPtr GLsceneBase::targetObject ( )

Definition at line 428 of file GLsceneBase.cpp.

void GLsceneBase::toggleRobotState ( )
inline

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.

GLcamera* GLsceneBase::m_camera
protected

Definition at line 72 of file GLsceneBase.h.

IplImage* GLsceneBase::m_cvImage
protected

Definition at line 75 of file GLsceneBase.h.

GLcamera * GLsceneBase::m_default_camera
protected

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.

int GLsceneBase::m_height
protected

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.

LogManagerBase* GLsceneBase::m_log
protected

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.

int GLsceneBase::m_request
protected

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.

int GLsceneBase::m_targetObject
protected

Definition at line 82 of file GLsceneBase.h.

CvVideoWriter* GLsceneBase::m_videoWriter
protected

Definition at line 74 of file GLsceneBase.h.

int GLsceneBase::m_width
protected

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 Thu May 6 2021 02:41:52