9 #ifndef GEPETTO_VIEWER_LEAFNODELIGHT_HH
10 #define GEPETTO_VIEWER_LEAFNODELIGHT_HH
24 LeafNodeLightWeakPtr weak_ptr_;
27 ::osg::LightSourceRefPtr light_ptr_;
39 void initWeakPtr (LeafNodeLightWeakPtr other_weak_ptr);
41 static int uniqueLightNumber;
47 static LeafNodeLightPtr_t create(
const std::string& name,
const float &radius);
48 static LeafNodeLightPtr_t create(
const std::string& name,
const float &radius,
const osgVector4& color);
52 static LeafNodeLightPtr_t createCopy(LeafNodeLightPtr_t other);
56 LeafNodeLightPtr_t clone(
void)
const;
61 LeafNodeLightPtr_t
copy()
const {
return clone(); }
65 LeafNodeLightPtr_t
self(void)
const;
68 virtual void setColor (
const osgVector4& color);