1 #ifndef __IRR_MODEL_H__ 2 #define __IRR_MODEL_H__ 4 #include <irrlicht/irrlicht.h> 5 #include <hrpModel/ModelLoaderUtil.h> 17 bool init(
int w=640,
int h=480);
35 GLcamera(
const OpenHRP::SensorInfo& i_info,
36 irr::scene::ISceneNode *i_node);
37 GLcamera(irr::scene::ISceneNode *i_node);
38 void setCameraParameters(irr::scene::ICameraSceneNode *i_camera);
39 void updateCameraTransform(irr::scene::ICameraSceneNode *i_camera);
46 void getAbsTransform(
double *o_T);
53 class GLbody :
public irr::scene::ISceneNode
56 GLbody(irr::scene::ISceneNode *i_parent,
57 irr::scene::ISceneManager *i_mgr,
59 OpenHRP::BodyInfo_var i_binfo);
64 void setPosture(
double *i_angles,
double *i_pos,
double *i_rpy);
65 GLcamera *findCamera(
const char *i_name);
67 irr::core::aabbox3d<irr::f32>
m_box;
68 std::vector<GLlink *> m_links;
void addBody(GLbody *i_body)
png_infop png_charpp name
virtual const irr::core::aabbox3d< irr::f32 > & getBoundingBox() const
irr::scene::ISceneNode * m_node
png_infop png_uint_32 * width
GLcamera * m_defaultCamera
static GLscene * getInstance()
png_infop png_uint_32 png_uint_32 * height
irr::IEventReceiver * m_receiver
irr::IrrlichtDevice * m_device
irr::scene::ISceneManager * getSceneManager()
void setCamera(GLcamera *i_camera)
irr::scene::ICameraSceneNode * m_cnode
irr::video::IVideoDriver * getVideoDriver()
irr::core::aabbox3d< irr::f32 > m_box