9 #ifndef GEPETTO_VIEWER_LEAFNODECYLINDER_HH
10 #define GEPETTO_VIEWER_LEAFNODECYLINDER_HH
22 LeafNodeCylinderWeakPtr weak_ptr_;
25 ::osg::CylinderRefPtr cylinder_ptr_;
39 void initWeakPtr(LeafNodeCylinderWeakPtr other_weak_ptr);
45 static LeafNodeCylinderPtr_t create(
const std::string &name,
46 const float &radius,
const float &height);
47 static LeafNodeCylinderPtr_t create(
const std::string &name,
48 const float &radius,
const float &height,
53 static LeafNodeCylinderPtr_t createCopy(LeafNodeCylinderPtr_t other);
57 virtual LeafNodeCylinderPtr_t clone(
void)
const;
66 LeafNodeCylinderPtr_t
self(void)
const;
71 void setRadius(
const float &radius);
73 float getRadius()
const {
return cylinder_ptr_->getRadius(); }
78 void setHeight(
const float &height);
80 float getHeight()
const {
return cylinder_ptr_->getHeight(); }