9 #ifndef GEPETTO_VIEWER_LEAFNODECYLINDER_HH
10 #define GEPETTO_VIEWER_LEAFNODECYLINDER_HH
23 LeafNodeCylinderWeakPtr weak_ptr_;
26 ::osg::CylinderRefPtr cylinder_ptr_;
31 LeafNodeCylinder(
const std::string &name,
const float &radius,
const float &height);
38 void initWeakPtr (LeafNodeCylinderWeakPtr other_weak_ptr);
44 static LeafNodeCylinderPtr_t
create(
const std::string &name,
const float &radius,
const float& height);
45 static LeafNodeCylinderPtr_t
create(
const std::string &name,
const float &radius,
const float& height,
const osgVector4 &color);
49 static LeafNodeCylinderPtr_t
createCopy(LeafNodeCylinderPtr_t other);
53 virtual LeafNodeCylinderPtr_t
clone(
void)
const;
62 LeafNodeCylinderPtr_t
self(void)
const;
71 return cylinder_ptr_->getRadius();
82 return cylinder_ptr_->getHeight();
Definition: leaf-node-cylinder.h:20
SCENE_VIEWER_ACCEPT_VISITOR
Definition: leaf-node-cylinder.h:85
static LeafNodeCylinderPtr_t create(const std::string &name, const float &radius, const float &height)
static LeafNodeCylinderPtr_t createCopy(LeafNodeCylinderPtr_t other)
virtual LeafNodeCylinderPtr_t clone(void) const
float getRadius() const
Definition: leaf-node-cylinder.h:69
void setHeight(const float &height)
void setRadius(const float &radius)
virtual NodePtr_t copy() const
Proceed to a copy of the currend object as clone.
Definition: leaf-node-cylinder.h:58
virtual ~LeafNodeCylinder()
float getHeight() const
Definition: leaf-node-cylinder.h:80
static LeafNodeCylinderPtr_t create(const std::string &name, const float &radius, const float &height, const osgVector4 &color)
Definition: node-drawable.h:20
::osg::Vec4f osgVector4
Definition: config-osg.h:110
#define DEF_CLASS_SMART_PTR(className)
Definition: macros.h:50
viewer::NodePtr_t NodePtr_t
Definition: fwd.hh:47
Definition: action-search-bar.hh:27