5 #ifndef CNOID_BODYPLUGIN_SCENE_BODY_H_INCLUDED
6 #define CNOID_BODYPLUGIN_SCENE_BODY_H_INCLUDED
8 #include <boost/dynamic_bitset.hpp>
9 #include <cnoid/SceneObject>
22 void setLinkVisibilities(
const boost::dynamic_bitset<>& visibilities);
24 void showCenterOfMass(
bool on);
25 bool isCenterOfMassVisible()
const;
27 void showZmp(
bool on);
28 bool isZmpVisible()
const;
30 Link* getPointedSceneLink();
31 osg::ref_ptr<osg::Node> getPointedShapeNode();
36 bool createSceneLinks();
38 virtual void onAttachedToScene();
39 virtual void onDetachedFromScene();
41 virtual bool onKeyPressEvent(
const SceneViewEvent& event);
42 virtual bool onKeyReleaseEvent(
const SceneViewEvent& event);
43 virtual bool onButtonPressEvent(
const SceneViewEvent& event);
44 virtual bool onButtonReleaseEvent(
const SceneViewEvent& event);
45 virtual bool onDoubleClickEvent(
const SceneViewEvent& event);
46 virtual bool onPointerMoveEvent(
const SceneViewEvent& event);
47 virtual void onPointerLeaveEvent(
const SceneViewEvent& event);
48 virtual void onContextMenuRequest(
const SceneViewEvent& event, MenuManager& menuManager);
49 virtual void onSceneModeChanged();
50 virtual bool onUndoRequest();
51 virtual bool onRedoRequest();
57 friend class SceneBodyImpl;