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;
73 return capsule_ptr_->getRadius();
84 return capsule_ptr_->getHeight();
Definition: leaf-node-capsule.h:22
static LeafNodeCapsulePtr_t create(const std::string &name, const float &radius, const float &height)
float getRadius() const
Definition: leaf-node-capsule.h:71
virtual void setRadius(const float &radius)
virtual void setHeight(const float &height)
virtual LeafNodeCapsulePtr_t copy() const
Proceed to a copy of the currend object as clone.
Definition: leaf-node-capsule.h:59
virtual ~LeafNodeCapsule()
static LeafNodeCapsulePtr_t createCopy(const LeafNodeCapsulePtr_t &other)
float getHeight() const
Definition: leaf-node-capsule.h:82
static LeafNodeCapsulePtr_t create(const std::string &name, const float &radius, const float &height, const osgVector4 &color)
SCENE_VIEWER_ACCEPT_VISITOR
Definition: leaf-node-capsule.h:87
virtual LeafNodeCapsulePtr_t clone(void) const
Definition: node-drawable.h:20
::osg::Vec4f osgVector4
Definition: config-osg.h:110
#define DEF_CLASS_SMART_PTR(className)
Definition: macros.h:50
Definition: action-search-bar.hh:27