Go to the documentation of this file.
5 #ifndef CNOID_BODY_SCENE_BODY_H
6 #define CNOID_BODY_SCENE_BODY_H
10 #include <cnoid/SceneGraph>
11 #include "exportdecl.h"
21 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
33 const SgNode* visualShape()
const;
35 const SgNode* collisionShape()
const;
41 void setVisible(
bool on);
42 float transparency()
const;
64 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
74 void cloneShapes(
CloneMap& cloneMap);
80 void updateLinkPositions();
81 void updateLinkPositions(
SgUpdate& update);
84 void setSceneDeviceUpdateConnection(
bool on);
85 void updateSceneDevices(
double time);
87 void setTransparency(
float transparency);
97 virtual void updateModel();
104 std::vector<SceneLinkPtr> sceneLinks_;
Definition: SceneGraph.h:357
SceneLink * sceneLink(int index)
Definition: SceneBody.h:77
Definition: SceneBody.h:18
const Link * link() const
Definition: SceneBody.h:31
Definition: SceneGraph.h:220
ref_ptr< SceneBody > SceneBodyPtr
Definition: SceneBody.h:110
Definition: SceneUpdate.h:10
Definition: SceneUpdate.h:73
Definition: Referenced.h:103
CNOID_EXPORT int makeTransparent(SgNode *topNode, float transparency, CloneMap &cloneMap, bool doKeepOrgTransparency=true)
Definition: SceneUtil.cpp:154
Definition: AbstractSceneLoader.h:11
Link * link()
Definition: SceneBody.h:30
Definition: CloneMap.h:13
Body * body()
Definition: SceneBody.h:71
const SceneBody * sceneBody() const
Definition: SceneBody.h:28
int numSceneLinks() const
Definition: SceneBody.h:76
Definition: SceneBody.h:61
ref_ptr< SceneLink > SceneLinkPtr
Definition: SceneBody.h:57
SceneBody * sceneBody()
Definition: SceneBody.h:27
const Body * body() const
Definition: SceneBody.h:72
const SceneLink * sceneLink(int index) const
Definition: SceneBody.h:78
Definition: SceneGraph.h:157
Definition: SceneDevice.h:20