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();
Definition: node-drawable.h:19
::osg::Vec4f osgVector4
Definition: config-osg.h:110
float getRadius() const
Definition: leaf-node-sphere.h:69
Definition: action-search-bar.hh:27
Definition: leaf-node-sphere.h:19
SCENE_VIEWER_ACCEPT_VISITOR
Definition: leaf-node-sphere.h:74
#define DEF_CLASS_SMART_PTR(className)
Definition: macros.h:50
LeafNodeSpherePtr_t copy() const
Proceed to a copy of the currend object as clone.
Definition: leaf-node-sphere.h:58