9 #ifndef GEPETTO_VIEWER_LEAFNODESPHERE_HH
10 #define GEPETTO_VIEWER_LEAFNODESPHERE_HH
23 LeafNodeSphereWeakPtr weak_ptr_;
26 ::osg::SphereRefPtr sphere_ptr_;
39 void initWeakPtr (LeafNodeSphereWeakPtr other_weak_ptr);
44 static LeafNodeSpherePtr_t create(
const std::string& name,
const float &radius);
45 static LeafNodeSpherePtr_t create(
const std::string& name,
const float &radius,
const osgVector4& color);
49 static LeafNodeSpherePtr_t createCopy(LeafNodeSpherePtr_t other);
53 LeafNodeSpherePtr_t clone(
void)
const;
58 LeafNodeSpherePtr_t
copy()
const {
return clone(); }
62 LeafNodeSpherePtr_t
self(void)
const;
68 void setRadius (
const float& radius);
71 return sphere_ptr_->getRadius();