9 #ifndef GEPETTO_VIEWER_LEAFNODESPHERE_HH
10 #define GEPETTO_VIEWER_LEAFNODESPHERE_HH
22 LeafNodeSphereWeakPtr weak_ptr_;
25 ::osg::SphereRefPtr sphere_ptr_;
39 void initWeakPtr(LeafNodeSphereWeakPtr other_weak_ptr);
44 static LeafNodeSpherePtr_t create(
const std::string& name,
46 static LeafNodeSpherePtr_t create(
const std::string& name,
53 static LeafNodeSpherePtr_t createCopy(LeafNodeSpherePtr_t other);
57 LeafNodeSpherePtr_t clone(
void)
const;
62 LeafNodeSpherePtr_t
copy()
const {
return clone(); }
66 LeafNodeSpherePtr_t
self(void)
const;
71 void setRadius(
const float& radius);
72 float getRadius()
const {
return sphere_ptr_->getRadius(); }