9 #ifndef GEPETTO_VIEWER_LEAFNODECAPSULE_HH 10 #define GEPETTO_VIEWER_LEAFNODECAPSULE_HH 24 LeafNodeCapsuleWeakPtr weak_ptr_;
26 ::osg::CapsuleRefPtr capsule_ptr_;
40 void initWeakPtr(LeafNodeCapsuleWeakPtr other_weak_ptr);
46 static LeafNodeCapsulePtr_t create(
const std::string& name,
47 const float& radius,
const float& height);
48 static LeafNodeCapsulePtr_t create(
const std::string& name,
49 const float& radius,
const float& height,
54 static LeafNodeCapsulePtr_t createCopy(
const LeafNodeCapsulePtr_t& other);
58 virtual LeafNodeCapsulePtr_t clone(
void)
const;
63 virtual LeafNodeCapsulePtr_t
copy()
const {
return clone(); }
67 LeafNodeCapsulePtr_t
self(void)
const;
72 virtual void setRadius(
const float& radius);
74 float getRadius()
const {
return capsule_ptr_->getRadius(); }
79 virtual void setHeight(
const float& height);
80 float getHeight()
const {
return capsule_ptr_->getHeight(); }
Definition: node-drawable.h:19
::osg::Vec4f osgVector4
Definition: config-osg.h:100
virtual LeafNodeCapsulePtr_t copy() const
Proceed to a copy of the currend object as clone.
Definition: leaf-node-capsule.h:63
Definition: action-search-bar.hh:26
float getRadius() const
Definition: leaf-node-capsule.h:74
float getHeight() const
Definition: leaf-node-capsule.h:80
Definition: leaf-node-capsule.h:21
#define DEF_CLASS_SMART_PTR(className)
Definition: macros.h:51
SCENE_VIEWER_ACCEPT_VISITOR
Definition: leaf-node-capsule.h:82