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();
Definition: node-drawable.h:19
::osg::Vec4f osgVector4
Definition: config-osg.h:110
virtual LeafNodeCapsulePtr_t copy() const
Proceed to a copy of the currend object as clone.
Definition: leaf-node-capsule.h:59
Definition: action-search-bar.hh:27
float getRadius() const
Definition: leaf-node-capsule.h:71
float getHeight() const
Definition: leaf-node-capsule.h:82
Definition: leaf-node-capsule.h:21
#define DEF_CLASS_SMART_PTR(className)
Definition: macros.h:50
SCENE_VIEWER_ACCEPT_VISITOR
Definition: leaf-node-capsule.h:87