9 #ifndef GEPETTO_VIEWER_LEAFNODEFACE_HH 10 #define GEPETTO_VIEWER_LEAFNODEFACE_HH 24 LeafNodeFaceWeakPtr weak_ptr_;
27 ::osg::GeometryRefPtr face_ptr_;
28 ::osg::Vec3ArrayRefPtr vertices_;
29 ::osg::Vec4ArrayRefPtr color_ptr_;
44 void initWeakPtr(LeafNodeFaceWeakPtr other_weak_ptr);
58 static LeafNodeFacePtr_t createCopy(LeafNodeFacePtr_t other);
62 virtual LeafNodeFacePtr_t clone(
void)
const;
71 LeafNodeFacePtr_t
self(void)
const;
76 void setTexture(
const std::string& image_path);
79 std::size_t
nbVertices ()
const {
return vertices_->size ();}
::osg::Vec3f osgVector3
Definition: config-osg.h:109
::osg::Vec4f osgVector4
Definition: config-osg.h:110
Definition: leaf-node-face.h:20
viewer::NodePtr_t NodePtr_t
Definition: fwd.hh:47
virtual NodePtr_t copy() const
Proceed to a copy of the currend object as clone.
Definition: leaf-node-face.h:67
Definition: action-search-bar.hh:27
SCENE_VIEWER_ACCEPT_VISITOR
Definition: leaf-node-face.h:81
#define DEF_CLASS_SMART_PTR(className)
Definition: macros.h:50
std::size_t nbVertices() const
Get number of vertices.
Definition: leaf-node-face.h:79
Abstract base class of 3D objects in a scene.
Definition: node.h:27