Go to the documentation of this file.
5 #ifndef CNOID_BASE_SCENE_ITEM_H
6 #define CNOID_BASE_SCENE_ITEM_H
10 #include <cnoid/SceneGraph>
11 #include "exportdecl.h"
24 static void registerSceneItemFileIoSet(
ItemManager* im);
31 virtual bool setName(
const std::string& name)
override;
34 virtual SgNode* getScene()
override;
39 void setTranslation(
const Vector3& translation);
40 void setRotation(
const AngleAxis& rotation);
42 [[deprecated(
"Use setTranslation(const Vector3& translation)")]]
43 void setTranslation(
const Vector3f& translation);
44 [[deprecated(
"Use void setRotation(const AngleAxis& rotation)")]]
45 void setRotation(
const AngleAxisf& rotation);
47 void setLightweightRenderingEnabled(
bool on);
51 virtual Item* doDuplicate()
const override;
52 virtual bool store(
Archive& archive)
override;
53 virtual bool restore(
const Archive& archive)
override;
58 bool isLightweightRenderingEnabled_;
60 bool onTranslationChanged(
const std::string& value);
61 bool onRotationChanged(
const std::string& value);
Definition: ItemFileIO.h:19
const SgPosTransform * topNode() const
Definition: SceneItem.h:37
Definition: SceneGraph.h:357
Eigen::Vector3d Vector3
Definition: EigenTypes.h:57
Definition: ExtensionManager.h:23
Definition: PutPropertyFunction.h:51
ref_ptr< SceneItem > SceneItemPtr
Definition: SceneItem.h:64
Eigen::AngleAxisd AngleAxis
Definition: EigenTypes.h:64
SgPosTransform * topNode()
Definition: SceneItem.h:36
Definition: AbstractSceneLoader.h:11
Definition: RenderableItem.h:11
bool isLightweightRenderingEnabled() const
Definition: SceneItem.h:48
Definition: ItemManager.h:59
Definition: SceneGraph.h:157
Definition: SceneItem.h:18