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(); }
float getHeight() const
Definition: leaf-node-cylinder.h:80
float getRadius() const
Definition: leaf-node-cylinder.h:73
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:62
::osg::Vec4f osgVector4
Definition: config-osg.h:100
viewer::NodePtr_t NodePtr_t
Definition: fwd.hh:50
Definition: action-search-bar.hh:27
Definition: leaf-node-cylinder.h:19
SCENE_VIEWER_ACCEPT_VISITOR
Definition: leaf-node-cylinder.h:82
#define DEF_CLASS_SMART_PTR(className)
Definition: macros.h:51