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