gepetto::viewer::LeafNodeCollada Class Reference

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

Inheritance diagram for gepetto::viewer::LeafNodeCollada:
Collaboration diagram for gepetto::viewer::LeafNodeCollada:

Public Member Functions

virtual LeafNodeColladaPtr_t clone (void) const
 
::osg::NodeRefPtr getColladaPtr (void)
 
virtual LeafNodeColladaPtr_t copy () const
 Proceed to a copy of the currend object as clone. More...
 
LeafNodeColladaPtr_t self (void) const
 
void setColor (const osgVector4 &color)
 
osgVector4 getColor () const
 
void setTexture (const std::string &image_path)
 
const std::string & meshFilePath () const
 
const std::string & textureFilePath () const
 
virtual void setAlpha (const float &alpha)
 
virtual osg::ref_ptr< osg::Node > getOsgNode () const
 
void removeLightSources ()
 Remove any osg::LightSource of this mesh. More...
 
virtual ~LeafNodeCollada ()
 
- Public Member Functions inherited from gepetto::viewer::Node
const ConfigurationgetGlobalTransform () const
 returns rotation and position of the node in word frame More...
 
std::string getID () const
 getID is a public method for getting the id_name of the Object More...
 
bool isDirty () const
 
void setDirty (bool dirty=true)
 Called when a property is modified. More...
 
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. More...
 
virtual const VisibilityModegetVisibilityMode () const
 
virtual void setLightingMode (const LightingMode &lighting_state)
 Virtual method for setting the lighting mode of the object : influence by light or not. More...
 
virtual LightingMode getLightingMode () const
 
virtual void setWireFrameMode (const WireFrameMode &wireframe_state)
 Virtual method for setting the wireframe mode of the object : visible or not. More...
 
virtual const WireFrameModegetWireFrameMode () 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. More...
 
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
Propertyproperty (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. More...
 
bool hasProperty (const std::string &name) const
 
const PropertyMap_tproperties () const
 
void addProperty (const PropertyPtr_t &prop)
 Add a property and take ownership. More...
 
void addProperty (const std::string &name, const PropertyPtr_t &prop)
 Add a property and take ownership. More...
 
void addProperty (Property *prop)
 Add a property and leave ownership. More...
 
void addProperty (const std::string &name, Property *prop)
 Add a property and leave ownership. More...
 
QWidget * guiEditor ()
 

Static Public Member Functions

static LeafNodeColladaPtr_t create (const std::string &name, ::osg::NodeRefPtr mesh, const std::string &collada_file_path)
 
static LeafNodeColladaPtr_t create (const std::string &name, const std::string &collada_file_path)
 
static LeafNodeColladaPtr_t create (const std::string &name, const std::string &collada_file_path, const osgVector4 &color)
 
static LeafNodeColladaPtr_t createCopy (LeafNodeColladaPtr_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, WrapperPropertyMap_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. More...
 
 Node (const Node &other)
 
::osg::GroupRefPtr asQueue () const
 Return the root node to include it in the scene. More...
 
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 Collada GraphicalObject in OSG render

Constructor & Destructor Documentation

◆ ~LeafNodeCollada()

virtual gepetto::viewer::LeafNodeCollada::~LeafNodeCollada ( )
virtual

Destructor

Member Function Documentation

◆ clone()

virtual LeafNodeColladaPtr_t gepetto::viewer::LeafNodeCollada::clone ( void  ) const
virtual

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

◆ copy()

virtual LeafNodeColladaPtr_t gepetto::viewer::LeafNodeCollada::copy ( ) const
inlinevirtual

Proceed to a copy of the currend object as clone.

Copy

◆ create() [1/3]

static LeafNodeColladaPtr_t gepetto::viewer::LeafNodeCollada::create ( const std::string &  name,
::osg::NodeRefPtr  mesh,
const std::string &  collada_file_path 
)
static

Static method which create a new LeafNodeCollada

◆ create() [2/3]

static LeafNodeColladaPtr_t gepetto::viewer::LeafNodeCollada::create ( const std::string &  name,
const std::string &  collada_file_path 
)
static

◆ create() [3/3]

static LeafNodeColladaPtr_t gepetto::viewer::LeafNodeCollada::create ( const std::string &  name,
const std::string &  collada_file_path,
const osgVector4 color 
)
static

◆ createCopy()

static LeafNodeColladaPtr_t gepetto::viewer::LeafNodeCollada::createCopy ( LeafNodeColladaPtr_t  other)
static

Static method for creating a clone of LeafNodeCollada other

◆ getColladaPtr()

::osg::NodeRefPtr gepetto::viewer::LeafNodeCollada::getColladaPtr ( void  )

Returns a pointer to the NodeRefPtr

◆ getColor()

osgVector4 gepetto::viewer::LeafNodeCollada::getColor ( ) const

◆ getOsgNode()

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

Reimplemented from gepetto::viewer::Node.

◆ meshFilePath()

const std::string& gepetto::viewer::LeafNodeCollada::meshFilePath ( ) const

◆ removeLightSources()

void gepetto::viewer::LeafNodeCollada::removeLightSources ( )

Remove any osg::LightSource of this mesh.

◆ self()

LeafNodeColladaPtr_t gepetto::viewer::LeafNodeCollada::self ( void  ) const

Return a shared pointer of the current object

◆ setAlpha()

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

Reimplemented from gepetto::viewer::Node.

◆ setColor()

void gepetto::viewer::LeafNodeCollada::setColor ( const osgVector4 color)
virtual

Set the color of the object

Implements gepetto::viewer::Node.

◆ setTexture()

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

◆ textureFilePath()

const std::string& gepetto::viewer::LeafNodeCollada::textureFilePath ( ) const

Member Data Documentation

◆ SCENE_VIEWER_ACCEPT_VISITOR

gepetto::viewer::LeafNodeCollada::SCENE_VIEWER_ACCEPT_VISITOR

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