9 #ifndef GEPETTO_VIEWER_LEAFNODEMESH_HH
10 #define GEPETTO_VIEWER_LEAFNODEMESH_HH
13 #include <osg/PrimitiveSet>
14 #include <osg/Geometry>
26 LeafNodeMeshWeakPtr weak_ptr_;
29 osg::GeometryRefPtr mesh_geometry_ptr_;
40 void initWeakPtr (LeafNodeMeshWeakPtr other_weak_ptr);
47 static LeafNodeMeshPtr_t
create(
const std:: string &name);
52 static LeafNodeMeshPtr_t
createCopy(LeafNodeMeshPtr_t other);
56 virtual LeafNodeMeshPtr_t
clone(
void)
const;
62 virtual LeafNodeMeshPtr_t
copy()
const {
return clone(); }
66 LeafNodeMeshPtr_t
self(void)
const;
Definition: leaf-node-mesh.h:22
static LeafNodeMeshPtr_t createCopy(LeafNodeMeshPtr_t other)
virtual osg::ref_ptr< osg::Node > getOsgNode() const
void setVertexArray(osg::Vec3ArrayRefPtr arrayOfVertices)
void setNormalBinding(osg::Geometry::AttributeBinding aNormalBinding)
virtual LeafNodeMeshPtr_t copy() const
Proceed to a copy of the currend object as clone.
Definition: leaf-node-mesh.h:62
void addPrimitiveSet(osg::DrawElementsUInt *aSetOfColors)
static LeafNodeMeshPtr_t create(const std::string &name)
SCENE_VIEWER_ACCEPT_VISITOR
Definition: leaf-node-mesh.h:79
void setColorBinding(osg::Geometry::AttributeBinding aColorBinding)
void setColorArray(osg::Vec4ArrayRefPtr colors)
void setTexture(const std::string &image_path)
void setColor(const osgVector4 &color_diffuse)
virtual void setAlpha(const float &alpha)
void setNormalArray(osg::Vec3ArrayRefPtr normals)
virtual LeafNodeMeshPtr_t clone(void) const
static LeafNodeMeshPtr_t create(const std::string &name, const osgVector4 &color)
void setColor(const osgVector4 &color_diffuse, const osgVector4 &color_specular, const osgVector4 &color_emissive)
Abstract base class of 3D objects in a scene.
Definition: node.h:29
::osg::Vec4f osgVector4
Definition: config-osg.h:110
#define DEF_CLASS_SMART_PTR(className)
Definition: macros.h:50
Definition: action-search-bar.hh:27