9 #ifndef GEPETTO_VIEWER_LEAFNODECAPSULE_HH
10 #define GEPETTO_VIEWER_LEAFNODECAPSULE_HH
25 LeafNodeCapsuleWeakPtr weak_ptr_;
27 ::osg::CapsuleRefPtr capsule_ptr_;
32 LeafNodeCapsule(
const std::string& name,
const float& radius,
const float& height);
39 void initWeakPtr (LeafNodeCapsuleWeakPtr other_weak_ptr);
45 static LeafNodeCapsulePtr_t create(
const std::string& name,
const float &radius,
const float& height);
46 static LeafNodeCapsulePtr_t create(
const std::string& name,
const float &radius,
const float& height,
const osgVector4& color);
50 static LeafNodeCapsulePtr_t createCopy(
const LeafNodeCapsulePtr_t& other);
54 virtual LeafNodeCapsulePtr_t clone(
void)
const;
59 virtual LeafNodeCapsulePtr_t
copy()
const {
return clone(); }
63 LeafNodeCapsulePtr_t
self(void)
const;
69 virtual void setRadius (
const float& radius);
73 return capsule_ptr_->getRadius();
81 virtual void setHeight (
const float& height);
84 return capsule_ptr_->getHeight();