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 30 of file GLsceneBase.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
protected
Enumerator
REQ_NONE 
REQ_CLEAR 
REQ_CAPTURE 

Definition at line 69 of file GLsceneBase.h.

Constructor & Destructor Documentation

◆ GLsceneBase()

GLsceneBase::GLsceneBase ( LogManagerBase i_log)

Definition at line 28 of file GLsceneBase.cpp.

◆ ~GLsceneBase()

GLsceneBase::~GLsceneBase ( )
virtual

Definition at line 48 of file GLsceneBase.cpp.

Member Function Documentation

◆ addBody()

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

Definition at line 414 of file GLsceneBase.cpp.

◆ capture() [1/2]

void GLsceneBase::capture ( char *  o_image)

Definition at line 121 of file GLsceneBase.cpp.

◆ capture() [2/2]

void GLsceneBase::capture ( )
inline

Definition at line 67 of file GLsceneBase.h.

◆ center()

hrp::Vector3 GLsceneBase::center ( )

Definition at line 442 of file GLsceneBase.cpp.

◆ clear()

void GLsceneBase::clear ( void  )

Definition at line 402 of file GLsceneBase.cpp.

◆ defaultLights() [1/2]

void GLsceneBase::defaultLights ( bool  flag)

Definition at line 154 of file GLsceneBase.cpp.

◆ defaultLights() [2/2]

bool GLsceneBase::defaultLights ( )

Definition at line 168 of file GLsceneBase.cpp.

◆ draw()

void GLsceneBase::draw ( )

Definition at line 289 of file GLsceneBase.cpp.

◆ drawAdditionalLines()

virtual void GLsceneBase::drawAdditionalLines ( )
inlinevirtual

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

Definition at line 57 of file GLsceneBase.h.

◆ drawFloorGrid()

void GLsceneBase::drawFloorGrid ( )
protected

Definition at line 200 of file GLsceneBase.cpp.

◆ drawInfo()

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

Definition at line 229 of file GLsceneBase.cpp.

◆ drawObjects()

size_t GLsceneBase::drawObjects ( bool  showSensors = true)

Definition at line 271 of file GLsceneBase.cpp.

◆ getCamera()

GLcamera * GLsceneBase::getCamera ( )

Definition at line 94 of file GLsceneBase.cpp.

◆ getDefaultCamera()

GLcamera * GLsceneBase::getDefaultCamera ( )

Definition at line 99 of file GLsceneBase.cpp.

◆ init()

void GLsceneBase::init ( )

Definition at line 173 of file GLsceneBase.cpp.

◆ initLights()

void GLsceneBase::initLights ( )

Definition at line 136 of file GLsceneBase.cpp.

◆ maxEdgeLen()

void GLsceneBase::maxEdgeLen ( double  i_len)

Definition at line 423 of file GLsceneBase.cpp.

◆ nextCamera()

void GLsceneBase::nextCamera ( )

Definition at line 67 of file GLsceneBase.cpp.

◆ nextObject()

void GLsceneBase::nextObject ( )

Definition at line 88 of file GLsceneBase.cpp.

◆ requestCapture()

void GLsceneBase::requestCapture ( const char *  i_fname)

Definition at line 395 of file GLsceneBase.cpp.

◆ requestClear()

void GLsceneBase::requestClear ( )

Definition at line 389 of file GLsceneBase.cpp.

◆ save()

void GLsceneBase::save ( const char *  i_fname)

Definition at line 104 of file GLsceneBase.cpp.

◆ setBackGroundColor()

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

Definition at line 437 of file GLsceneBase.cpp.

◆ setCamera()

void GLsceneBase::setCamera ( GLcamera i_camera)

Definition at line 60 of file GLsceneBase.cpp.

◆ setMessages()

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

Definition at line 49 of file GLsceneBase.h.

◆ setScreenSize()

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

Definition at line 55 of file GLsceneBase.cpp.

◆ setView()

void GLsceneBase::setView ( )

Definition at line 408 of file GLsceneBase.cpp.

◆ showFloorGrid() [1/2]

void GLsceneBase::showFloorGrid ( bool  flag)

Definition at line 190 of file GLsceneBase.cpp.

◆ showFloorGrid() [2/2]

bool GLsceneBase::showFloorGrid ( )

Definition at line 195 of file GLsceneBase.cpp.

◆ showInfo()

void GLsceneBase::showInfo ( bool  flag)

Definition at line 224 of file GLsceneBase.cpp.

◆ showSlider()

void GLsceneBase::showSlider ( bool  flag)
inline

Definition at line 50 of file GLsceneBase.h.

◆ showStatus()

virtual void GLsceneBase::showStatus ( )
inlinevirtual

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

Definition at line 56 of file GLsceneBase.h.

◆ targetObject()

hrp::BodyPtr GLsceneBase::targetObject ( )

Definition at line 428 of file GLsceneBase.cpp.

◆ toggleRobotState()

void GLsceneBase::toggleRobotState ( )
inline

Definition at line 52 of file GLsceneBase.h.

◆ updateScene()

virtual void GLsceneBase::updateScene ( )
pure virtual

Member Data Documentation

◆ m_bgColor

float GLsceneBase::m_bgColor[3]
protected

Definition at line 88 of file GLsceneBase.h.

◆ m_camera

GLcamera* GLsceneBase::m_camera
protected

Definition at line 77 of file GLsceneBase.h.

◆ m_cvImage

IplImage* GLsceneBase::m_cvImage
protected

Definition at line 80 of file GLsceneBase.h.

◆ m_default_camera

GLcamera * GLsceneBase::m_default_camera
protected

Definition at line 77 of file GLsceneBase.h.

◆ m_defaultLights

bool GLsceneBase::m_defaultLights
protected

Definition at line 83 of file GLsceneBase.h.

◆ m_fname

std::string GLsceneBase::m_fname
protected

Definition at line 85 of file GLsceneBase.h.

◆ m_height

int GLsceneBase::m_height
protected

Definition at line 76 of file GLsceneBase.h.

◆ m_isCapturing

bool GLsceneBase::m_isCapturing
protected

Definition at line 89 of file GLsceneBase.h.

◆ m_lastDraw

struct timeval GLsceneBase::m_lastDraw
protected

Definition at line 78 of file GLsceneBase.h.

◆ m_log

LogManagerBase* GLsceneBase::m_log
protected

Definition at line 81 of file GLsceneBase.h.

◆ m_maxEdgeLen

double GLsceneBase::m_maxEdgeLen
protected

Definition at line 86 of file GLsceneBase.h.

◆ m_msgs

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

Definition at line 74 of file GLsceneBase.h.

◆ m_request

int GLsceneBase::m_request
protected

Definition at line 84 of file GLsceneBase.h.

◆ m_sem

SDL_sem* GLsceneBase::m_sem
protected

Definition at line 82 of file GLsceneBase.h.

◆ m_showFloorGrid

bool GLsceneBase::m_showFloorGrid
protected

Definition at line 83 of file GLsceneBase.h.

◆ m_showInfo

bool GLsceneBase::m_showInfo
protected

Definition at line 83 of file GLsceneBase.h.

◆ m_showingStatus

bool GLsceneBase::m_showingStatus
protected

Definition at line 75 of file GLsceneBase.h.

◆ m_showSlider

bool GLsceneBase::m_showSlider
protected

Definition at line 75 of file GLsceneBase.h.

◆ m_targetObject

int GLsceneBase::m_targetObject
protected

Definition at line 87 of file GLsceneBase.h.

◆ m_videoWriter

CvVideoWriter* GLsceneBase::m_videoWriter
protected

Definition at line 79 of file GLsceneBase.h.

◆ m_width

int GLsceneBase::m_width
protected

Definition at line 76 of file GLsceneBase.h.


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


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