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(); }