9 #ifndef GEPETTO_VIEWER_LEAFNODECOLLADA_HH
10 #define GEPETTO_VIEWER_LEAFNODECOLLADA_HH
13 #include <osgDB/ReadFile>
25 std::string collada_file_path_;
26 std::string texture_file_path_;
29 LeafNodeColladaWeakPtr weak_ptr_;
32 ::osg::GroupRefPtr group_ptr_;
33 ::osg::NodeRefPtr collada_ptr_;
38 LeafNodeCollada(
const std::string& name,
const std::string& collada_file_path);
40 LeafNodeCollada(
const std::string& name, const ::osg::NodeRefPtr& node,
const std::string& collada_file_path);
45 void initWeakPtr (LeafNodeColladaWeakPtr other_weak_ptr);
53 static LeafNodeColladaPtr_t create(
const std::string& name, ::osg::NodeRefPtr mesh,
const std::string& collada_file_path);
54 static LeafNodeColladaPtr_t create(
const std::string& name,
const std::string& collada_file_path);
55 static LeafNodeColladaPtr_t create(
const std::string& name,
const std::string& collada_file_path,
const osgVector4& color);
59 static LeafNodeColladaPtr_t createCopy(LeafNodeColladaPtr_t other);
63 virtual LeafNodeColladaPtr_t clone(
void)
const;
66 ::osg::NodeRefPtr getColladaPtr(
void);
71 virtual LeafNodeColladaPtr_t
copy()
const {
return clone(); }
75 LeafNodeColladaPtr_t
self(void)
const;
81 void setTexture(
const std::string& image_path);
83 const std::string& meshFilePath ()
const;
85 const std::string& textureFilePath ()
const;
87 virtual void setAlpha(
const float& alpha);
88 virtual osg::ref_ptr<osg::Node> getOsgNode()
const;
91 void removeLightSources ();