gepetto-viewer 6.1.0
An user-friendly Graphical Interface
Loading...
Searching...
No Matches
gepetto::viewer::LeafNodeMesh Class Reference

#include <gepetto/viewer/leaf-node-mesh.h>

Inheritance diagram for gepetto::viewer::LeafNodeMesh:
Collaboration diagram for gepetto::viewer::LeafNodeMesh:

Public Member Functions

virtual LeafNodeMeshPtr_t clone (void) const
virtual LeafNodeMeshPtr_t copy () const
 Proceed to a copy of the currend object as clone.
LeafNodeMeshPtr_t self (void) const
void setColor (const osgVector4 &color_diffuse)
void setColor (const osgVector4 &color_diffuse, const osgVector4 &color_specular, const osgVector4 &color_emissive)
void setTexture (const std::string &image_path)
virtual void setAlpha (const float &alpha)
virtual osg::ref_ptr< osg::Node > getOsgNode () const
void setVertexArray (osg::Vec3ArrayRefPtr arrayOfVertices)
void addPrimitiveSet (osg::DrawElementsUInt *aSetOfColors)
void setColorBinding (osg::Geometry::AttributeBinding aColorBinding)
void setColorArray (osg::Vec4ArrayRefPtr colors)
void setNormalArray (osg::Vec3ArrayRefPtr normals)
void setNormalBinding (osg::Geometry::AttributeBinding aNormalBinding)
virtual ~LeafNodeMesh ()
Public Member Functions inherited from gepetto::viewer::Node
const Configuration & getGlobalTransform () const
 returns rotation and position of the node in word frame
std::string getID () const
 getID is a public method for getting the id_name of the Object
bool isDirty () const
void setDirty (bool dirty=true)
 Called when a property is modified.
bool isSelectable () const
void setSelectable (bool selectable=true)
void applyConfiguration (const osgVector3 &position, const osgQuat &quat)
void applyConfiguration (const Configuration &cfg)
void setStaticTransform (const osgVector3 &position, const osgQuat &quat)
osgQuat getStaticRotation () const
osgVector3 getStaticPosition () const
virtual void setVisibilityMode (const VisibilityMode &visibility_state)
 Virtual method for setting the visibility mode of the object : visible or not visible.
virtual const VisibilityMode & getVisibilityMode () const
virtual void setLightingMode (const LightingMode &lighting_state)
 Virtual method for setting the lighting mode of the object : influence by light or not.
virtual LightingMode getLightingMode () const
virtual void setWireFrameMode (const WireFrameMode &wireframe_state)
 Virtual method for setting the wireframe mode of the object : visible or not.
virtual const WireFrameMode & getWireFrameMode () const
void setScale (float scale)
void setScale (const osgVector3 &scale)
osgVector3 getScale () const
virtual::osg::GroupRefPtr asGroup () const
 Return the root node to include it in the scene.
virtual void addLandmark (const float &size)
bool hasLandmark () const
::osg::StateSetRefPtr getOrCreateRootStateSet ()
void deleteLandmark ()
bool getHighlightEnabled () const
void setHighlightEnabled (bool enabled)
void setHighlightState (unsigned int state)
const std::size_t & getHighlightState () const
virtual float getAlpha () const
void setTransparency (const float &transparency)
float getTransparency () const
virtual void traverse (NodeVisitor &visitor)
virtual ~Node ()
Public Member Functions inherited from gepetto::viewer::Properties
Property * property (const std::string &name) const
bool callVoidProperty (const std::string &name) const
template<typename T>
bool getProperty (const std::string &name, T &value) const
template<typename T>
bool setProperty (const std::string &name, const T &value)
 Set a property and set this object as dirty.
bool hasProperty (const std::string &name) const
const PropertyMap_t & properties () const
void addProperty (const PropertyPtr_t &prop)
 Add a property and take ownership.
void addProperty (const std::string &name, const PropertyPtr_t &prop)
 Add a property and take ownership.
void addProperty (Property *prop)
 Add a property and leave ownership.
void addProperty (const std::string &name, Property *prop)
 Add a property and leave ownership.
QWidget * guiEditor ()

Static Public Member Functions

static LeafNodeMeshPtr_t create (const std::string &name)
static LeafNodeMeshPtr_t create (const std::string &name, const osgVector4 &color)
static LeafNodeMeshPtr_t createCopy (LeafNodeMeshPtr_t other)

Public Attributes

 SCENE_VIEWER_ACCEPT_VISITOR
Public Attributes inherited from gepetto::viewer::Node
 SCENE_VIEWER_ACCEPT_VISITOR

Additional Inherited Members

Public Types inherited from gepetto::viewer::Properties
typedef std::map< std::string, Wrapper > PropertyMap_t
Static Public Attributes inherited from gepetto::viewer::Node
static const float TransparencyRenderingBinThreshold
Protected Member Functions inherited from gepetto::viewer::Node
 Node (const std::string &name)
 Default constructor.
 Node (const Node &other)
::osg::GroupRefPtr asQueue () const
 Return the root node to include it in the scene.
void setID (const std::string &id_name)
void setTransparentRenderingBin (bool transparent=true, osg::StateSet *ss=NULL)
Protected Attributes inherited from gepetto::viewer::Node
::osg::GeodeRefPtr landmark_geode_ptr_
::osg::GeodeRefPtr geode_ptr_
float alpha_
Protected Attributes inherited from gepetto::viewer::Properties
PropertyMap_t properties_

Detailed Description

Implementation of the Mesh GraphicalObject in OSG render

Constructor & Destructor Documentation

◆ ~LeafNodeMesh()

virtual gepetto::viewer::LeafNodeMesh::~LeafNodeMesh ( )
virtual

Destructor

Member Function Documentation

◆ addPrimitiveSet()

void gepetto::viewer::LeafNodeMesh::addPrimitiveSet ( osg::DrawElementsUInt * aSetOfColors)

Add a primitive set to the mesh

◆ clone()

virtual LeafNodeMeshPtr_t gepetto::viewer::LeafNodeMesh::clone ( void ) const
virtual

Proceed to a clonage of the current object defined by the copy constructor

◆ copy()

virtual LeafNodeMeshPtr_t gepetto::viewer::LeafNodeMesh::copy ( ) const
inlinevirtual

Proceed to a copy of the currend object as clone.

Copy

◆ create() [1/2]

LeafNodeMeshPtr_t gepetto::viewer::LeafNodeMesh::create ( const std::string & name)
static

Static method which create a new LeafNodeCollada

◆ create() [2/2]

LeafNodeMeshPtr_t gepetto::viewer::LeafNodeMesh::create ( const std::string & name,
const osgVector4 & color )
static

◆ createCopy()

LeafNodeMeshPtr_t gepetto::viewer::LeafNodeMesh::createCopy ( LeafNodeMeshPtr_t other)
static

Static method for creating a clone of LeafNodeMesh other

◆ getOsgNode()

virtual osg::ref_ptr< osg::Node > gepetto::viewer::LeafNodeMesh::getOsgNode ( ) const
virtual

Reimplemented from gepetto::viewer::Node.

◆ self()

LeafNodeMeshPtr_t gepetto::viewer::LeafNodeMesh::self ( void ) const

Return a shared pointer of the current object

◆ setAlpha()

virtual void gepetto::viewer::LeafNodeMesh::setAlpha ( const float & alpha)
virtual

Reimplemented from gepetto::viewer::Node.

◆ setColor() [1/2]

void gepetto::viewer::LeafNodeMesh::setColor ( const osgVector4 & color)
virtual

Set the color of the object

Implements gepetto::viewer::Node.

◆ setColor() [2/2]

void gepetto::viewer::LeafNodeMesh::setColor ( const osgVector4 & color_diffuse,
const osgVector4 & color_specular,
const osgVector4 & color_emissive )

◆ setColorArray()

void gepetto::viewer::LeafNodeMesh::setColorArray ( osg::Vec4ArrayRefPtr colors)

Add colors

◆ setColorBinding()

void gepetto::viewer::LeafNodeMesh::setColorBinding ( osg::Geometry::AttributeBinding aColorBinding)

◆ setNormalArray()

void gepetto::viewer::LeafNodeMesh::setNormalArray ( osg::Vec3ArrayRefPtr normals)

Add normals

◆ setNormalBinding()

void gepetto::viewer::LeafNodeMesh::setNormalBinding ( osg::Geometry::AttributeBinding aNormalBinding)

◆ setTexture()

void gepetto::viewer::LeafNodeMesh::setTexture ( const std::string & image_path)

◆ setVertexArray()

void gepetto::viewer::LeafNodeMesh::setVertexArray ( osg::Vec3ArrayRefPtr arrayOfVertices)

Add geometric data Set the vertices of the mesh

Member Data Documentation

◆ SCENE_VIEWER_ACCEPT_VISITOR

gepetto::viewer::LeafNodeMesh::SCENE_VIEWER_ACCEPT_VISITOR

The documentation for this class was generated from the following file: