9#ifndef GEPETTO_VIEWER_LEAFNODEFACE_HH 
   10#define GEPETTO_VIEWER_LEAFNODEFACE_HH 
   23  LeafNodeFaceWeakPtr weak_ptr_;
 
   26  ::osg::GeometryRefPtr face_ptr_;
 
   27  ::osg::Vec3ArrayRefPtr vertices_;
 
   28  ::osg::Vec4ArrayRefPtr color_ptr_;
 
   49  void initWeakPtr(LeafNodeFaceWeakPtr other_weak_ptr);
 
   56  static LeafNodeFacePtr_t 
create(
const std::string& name,
 
   60  static LeafNodeFacePtr_t 
create(
const std::string& name,
 
   65  static LeafNodeFacePtr_t 
create(
const std::string& name,
 
   70  static LeafNodeFacePtr_t 
create(
const std::string& name,
 
   79  static LeafNodeFacePtr_t 
createCopy(LeafNodeFacePtr_t other);
 
   83  virtual LeafNodeFacePtr_t 
clone(
void) 
const;
 
   88  virtual NodePtr_t 
copy()
 const { 
return clone(); }
 
   92  LeafNodeFacePtr_t 
self(
void) 
const;
 
 
Definition leaf-node-face.h:20
virtual NodePtr_t copy() const
Proceed to a copy of the currend object as clone.
Definition leaf-node-face.h:88
static LeafNodeFacePtr_t create(const std::string &name, const osgVector3 &point1, const osgVector3 &point2, const osgVector3 &point3, const osgVector3 &point4, const osgVector4 &color)
void setColor(const osgVector4 &color)
SCENE_VIEWER_ACCEPT_VISITOR
Definition leaf-node-face.h:102
std::size_t nbVertices() const
Get number of vertices.
Definition leaf-node-face.h:100
void setTexture(const std::string &image_path)
void addVertex(const osgVector3 &vertex)
static LeafNodeFacePtr_t create(const std::string &name, const osgVector3 &point1, const osgVector3 &point2, const osgVector3 &point3, const osgVector4 &color)
static LeafNodeFacePtr_t createCopy(LeafNodeFacePtr_t other)
virtual LeafNodeFacePtr_t clone(void) const
static LeafNodeFacePtr_t create(const std::string &name, const osgVector3 &point1, const osgVector3 &point2, const osgVector3 &point3, const osgVector3 &point4)
LeafNodeFacePtr_t self(void) const
static LeafNodeFacePtr_t create(const std::string &name, const osgVector3 &point1, const osgVector3 &point2, const osgVector3 &point3)
Abstract base class of 3D objects in a scene.
Definition node.h:25
::osg::Vec3f osgVector3
Definition config-osg.h:99
::osg::Vec4f osgVector4
Definition config-osg.h:100
#define DEF_CLASS_SMART_PTR(className)
Definition macros.h:51
Definition action-search-bar.hh:27