6 #ifndef CNOID_BODY_PLUGIN_WORLD_ITEM_H
7 #define CNOID_BODY_PLUGIN_WORLD_ITEM_H
11 #include <cnoid/ItemList>
12 #include <cnoid/RenderableItem>
13 #include "exportdecl.h"
17 class CollisionDetector;
19 class MaterialTableItem;
30 void storeCurrentBodyPositionsAsInitialPositions();
31 void restoreInitialBodyPositions(
bool doNotify =
true);
35 bool selectCollisionDetector(
const std::string& name);
37 void setCollisionDetectionEnabled(
bool on);
38 [[deprecated(
"Use setCollisionDetectionEnabled()")]]
40 bool isCollisionDetectionEnabled();
41 void updateCollisionDetectorLater();
42 void updateCollisionDetector();
43 void updateCollisions();
44 std::vector<CollisionLinkPairPtr>& collisions()
const;
47 void setDefaultMaterialTableFile(
const std::string& filename);
48 MaterialTable* defaultMaterialTable(
bool checkFileUpdate =
true);
52 virtual SgNode* getScene()
override;
58 virtual Item* doDuplicate()
const override;
60 virtual bool store(
Archive& archive)
override;
61 virtual bool restore(
const Archive& archive)
override;