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;
67 void setRadius (
const float& radius);
71 return cylinder_ptr_->getRadius();
78 void setHeight (
const float& height);
82 return cylinder_ptr_->getHeight();
float getHeight() const
Definition: leaf-node-cylinder.h:80
float getRadius() const
Definition: leaf-node-cylinder.h:69
Definition: node-drawable.h:19
virtual NodePtr_t copy() const
Proceed to a copy of the currend object as clone.
Definition: leaf-node-cylinder.h:58
::osg::Vec4f osgVector4
Definition: config-osg.h:110
viewer::NodePtr_t NodePtr_t
Definition: fwd.hh:47
Definition: action-search-bar.hh:27
Definition: leaf-node-cylinder.h:19
SCENE_VIEWER_ACCEPT_VISITOR
Definition: leaf-node-cylinder.h:85
#define DEF_CLASS_SMART_PTR(className)
Definition: macros.h:50