Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
graphics::RoadmapViewer Class Reference

#include <gepetto/viewer/roadmap-viewer.h>

Inheritance diagram for graphics::RoadmapViewer:
[legend]
Collaboration diagram for graphics::RoadmapViewer:
[legend]

Public Member Functions

virtual RoadmapViewerPtr_t clone (void) const
 Proceed to a clonage of the current object defined by the copy constructor. More...
 
RoadmapViewerPtr_t self (void) const
 Return a shared pointer of the current object. More...
 
bool addNode (osgVector3 position, osgQuat quat, boost::mutex &mtx)
 
bool addEdge (osgVector3 from, osgVector3 to, boost::mutex &mtx)
 
virtual void removeAllChildren ()
 
virtual void setVisibilityMode (const VisibilityMode &visibility_state)
 Virtual method for setting the visibility mode of the object : visible or not visible. More...
 
virtual void setLightingMode (const LightingMode &lighting_state)
 Virtual method for setting the lighting mode of the object : influence by light or not. More...
 
virtual void setWireFrameMode (const WireFrameMode &wireframe_state)
 Virtual method for setting the wireframe mode of the object : visible or not. More...
 
virtual size_t getNumOfNodes () const
 
virtual size_t getNumOfEdges () const
 
virtual graphics::LeafNodeXYZAxisPtr_t getNode (size_t i) const
 
virtual graphics::LeafNodeLinePtr_t getEdge (size_t i) const
 
virtual float getRadiusSphere () const
 
virtual float getSizeAxis () const
 
virtual osgVector4 getColorNode () const
 
virtual osgVector4 getColorEdge () const
 
void setColorNode (const osgVector4 &color)
 
void setColorEdge (const osgVector4 &color)
 
void setColor (const osgVector4 &color)
 Set the color of the object. More...
 
- Public Member Functions inherited from graphics::Node
std::pair< osgVector3, osgQuatgetGlobalTransform () 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...
 
void applyConfiguration (const osgVector3 &position, const osgQuat &quat)
 Apply a new global configuration. More...
 
void setStaticTransform (const osgVector3 &position, const osgQuat &quat)
 Set Static transformation. More...
 
osgQuat getStaticRotation () const
 Get Static rotation. More...
 
osgVector3 getStaticPosition () const
 Get Static position. More...
 
virtual const VisibilityModegetVisibilityMode () const
 
virtual LightingMode getLightingMode () const
 
virtual const WireFrameModegetWireFrameMode () const
 
virtual void setScale (float scale)
 Set scale value of the OSG object. More...
 
virtual void setScale (const osg::Vec3d &scale)
 Set scales value of the OSG object. More...
 
osgVector3 getScale () const
 Get scale. More...
 
virtual osg::ref_ptr< osg::Node > getOsgNode () 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 ()
 
void setHighlightState (unsigned int state)
 
virtual void setAlpha (const float &alpha)
 
virtual float getAlpha () const
 
virtual void traverse (NodeVisitor &visitor)
 
template<typename T >
bool getProperty (const std::string &name, T &value) const
 
template<typename T >
bool setProperty (const std::string &name, const T &value)
 
bool hasProperty (const std::string &name) const
 
const PropertyMap_tproperties () const
 
void addProperty (const PropertyPtr_t &prop)
 
void addProperty (const std::string &name, const PropertyPtr_t &prop)
 
virtual ~Node ()
 

Static Public Member Functions

static RoadmapViewerPtr_t create (const std::string &name, const osgVector4 &colorNode, float radiusSphere, float sizeAxis, const osgVector4 &colorEdge)
 Static method which create a new box defined by the half_axis vector. More...
 
static RoadmapViewerPtr_t createCopy (RoadmapViewerPtr_t other)
 Static method for creating a clone of box other with the copy constructor. More...
 

Protected Member Functions

 RoadmapViewer (const std::string &name, const osgVector4 &colorNode, float radiusSphere, float sizeAxis, const osgVector4 &colorEdge)
 Default constructor. More...
 
 RoadmapViewer (const RoadmapViewer &other)
 Copy constructor. More...
 
- Protected Member Functions inherited from graphics::Node
 Node (const std::string &name)
 Default constructor. More...
 
 Node (const Node &other)
 Copy constructor. More...
 
::osg::GroupRefPtr asQueue () const
 Return the root node to include it in the scene. More...
 
void setID (const std::string &id_name)
 
const PropertyPtr_t & property (const std::string &name) const
 

Additional Inherited Members

- Public Attributes inherited from graphics::Node
 SCENE_VIEWER_ACCEPT_VISITOR
 
- Protected Attributes inherited from graphics::Node
PropertyMap_t properties_
 
::osg::GeodeRefPtr landmark_geode_ptr_
 protected because it's used in LeafNodeCapsule More...
 
::osg::GeodeRefPtr geode_ptr_
 Geode pointer for landmarks. More...
 
float alpha_
 Alpha value. More...
 

Constructor & Destructor Documentation

◆ RoadmapViewer() [1/2]

graphics::RoadmapViewer::RoadmapViewer ( const std::string &  name,
const osgVector4 colorNode,
float  radiusSphere,
float  sizeAxis,
const osgVector4 colorEdge 
)
protected

Default constructor.

◆ RoadmapViewer() [2/2]

graphics::RoadmapViewer::RoadmapViewer ( const RoadmapViewer other)
protected

Copy constructor.

Member Function Documentation

◆ addEdge()

bool graphics::RoadmapViewer::addEdge ( osgVector3  from,
osgVector3  to,
boost::mutex &  mtx 
)

◆ addNode()

bool graphics::RoadmapViewer::addNode ( osgVector3  position,
osgQuat  quat,
boost::mutex &  mtx 
)

◆ clone()

virtual RoadmapViewerPtr_t graphics::RoadmapViewer::clone ( void  ) const
virtual

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

◆ create()

static RoadmapViewerPtr_t graphics::RoadmapViewer::create ( const std::string &  name,
const osgVector4 colorNode,
float  radiusSphere,
float  sizeAxis,
const osgVector4 colorEdge 
)
static

Static method which create a new box defined by the half_axis vector.

◆ createCopy()

static RoadmapViewerPtr_t graphics::RoadmapViewer::createCopy ( RoadmapViewerPtr_t  other)
static

Static method for creating a clone of box other with the copy constructor.

◆ getColorEdge()

virtual osgVector4 graphics::RoadmapViewer::getColorEdge ( ) const
inlinevirtual

◆ getColorNode()

virtual osgVector4 graphics::RoadmapViewer::getColorNode ( ) const
inlinevirtual

◆ getEdge()

virtual graphics::LeafNodeLinePtr_t graphics::RoadmapViewer::getEdge ( size_t  i) const
inlinevirtual

◆ getNode()

virtual graphics::LeafNodeXYZAxisPtr_t graphics::RoadmapViewer::getNode ( size_t  i) const
inlinevirtual

◆ getNumOfEdges()

virtual size_t graphics::RoadmapViewer::getNumOfEdges ( ) const
inlinevirtual

◆ getNumOfNodes()

virtual size_t graphics::RoadmapViewer::getNumOfNodes ( ) const
inlinevirtual

◆ getRadiusSphere()

virtual float graphics::RoadmapViewer::getRadiusSphere ( ) const
inlinevirtual

◆ getSizeAxis()

virtual float graphics::RoadmapViewer::getSizeAxis ( ) const
inlinevirtual

◆ removeAllChildren()

virtual void graphics::RoadmapViewer::removeAllChildren ( )
virtual

◆ self()

RoadmapViewerPtr_t graphics::RoadmapViewer::self ( void  ) const

Return a shared pointer of the current object.

◆ setColor()

void graphics::RoadmapViewer::setColor ( const osgVector4 color)
inlinevirtual

Set the color of the object.

Implements graphics::Node.

◆ setColorEdge()

void graphics::RoadmapViewer::setColorEdge ( const osgVector4 color)

◆ setColorNode()

void graphics::RoadmapViewer::setColorNode ( const osgVector4 color)

◆ setLightingMode()

virtual void graphics::RoadmapViewer::setLightingMode ( const LightingMode lighting_state)
virtual

Virtual method for setting the lighting mode of the object : influence by light or not.

Parameters
lightingmodestate

Reimplemented from graphics::Node.

◆ setVisibilityMode()

virtual void graphics::RoadmapViewer::setVisibilityMode ( const VisibilityMode visibility_state)
virtual

Virtual method for setting the visibility mode of the object : visible or not visible.

Parameters
visibilitymodestate

Reimplemented from graphics::Node.

◆ setWireFrameMode()

virtual void graphics::RoadmapViewer::setWireFrameMode ( const WireFrameMode wireframe_state)
virtual

Virtual method for setting the wireframe mode of the object : visible or not.

Parameters
wireframemodestate

Reimplemented from graphics::Node.