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

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

Inheritance diagram for gepetto::viewer::RoadmapViewer:
Collaboration diagram for gepetto::viewer::RoadmapViewer:

Public Member Functions

virtual RoadmapViewerPtr_t clone (void) const
RoadmapViewerPtr_t self (void) const
bool addNode (osgVector3 position, osgQuat quat, ::OpenThreads::Mutex &mtx)
bool addEdge (osgVector3 from, osgVector3 to, ::OpenThreads::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.
virtual void setLightingMode (const LightingMode &lighting_state)
 Virtual method for setting the lighting mode of the object : influence by light or not.
virtual void setWireFrameMode (const WireFrameMode &wireframe_state)
 Virtual method for setting the wireframe mode of the object : visible or not.
virtual size_t getNumOfNodes () const
virtual size_t getNumOfEdges () const
virtual LeafNodeXYZAxisPtr_t getNode (size_t i) const
virtual 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)
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 const VisibilityMode & getVisibilityMode () const
virtual LightingMode getLightingMode () const
virtual const WireFrameMode & getWireFrameMode () const
void setScale (float scale)
void setScale (const osgVector3 &scale)
osgVector3 getScale () const
virtual osg::ref_ptr< osg::Node > getOsgNode () 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 void setAlpha (const float &alpha)
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 RoadmapViewerPtr_t create (const std::string &name, const osgVector4 &colorNode, float radiusSphere, float sizeAxis, const osgVector4 &colorEdge)
static RoadmapViewerPtr_t createCopy (RoadmapViewerPtr_t other)

Protected Member Functions

 RoadmapViewer (const std::string &name, const osgVector4 &colorNode, float radiusSphere, float sizeAxis, const osgVector4 &colorEdge)
 Default constructor.
 RoadmapViewer (const RoadmapViewer &other)
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)

Additional Inherited Members

Public Types inherited from gepetto::viewer::Properties
typedef std::map< std::string, Wrapper > PropertyMap_t
Public Attributes inherited from gepetto::viewer::Node
 SCENE_VIEWER_ACCEPT_VISITOR
Static Public Attributes inherited from gepetto::viewer::Node
static const float TransparencyRenderingBinThreshold
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_

Constructor & Destructor Documentation

◆ RoadmapViewer() [1/2]

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

Default constructor.

◆ RoadmapViewer() [2/2]

gepetto::viewer::RoadmapViewer::RoadmapViewer ( const RoadmapViewer & other)
protected

Copy constructor

Member Function Documentation

◆ addEdge()

bool gepetto::viewer::RoadmapViewer::addEdge ( osgVector3 from,
osgVector3 to,
::OpenThreads::Mutex & mtx )

◆ addNode()

bool gepetto::viewer::RoadmapViewer::addNode ( osgVector3 position,
osgQuat quat,
::OpenThreads::Mutex & mtx )

◆ clone()

virtual RoadmapViewerPtr_t gepetto::viewer::RoadmapViewer::clone ( void ) const
virtual

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

◆ create()

RoadmapViewerPtr_t gepetto::viewer::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()

RoadmapViewerPtr_t gepetto::viewer::RoadmapViewer::createCopy ( RoadmapViewerPtr_t other)
static

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

◆ getColorEdge()

virtual osgVector4 gepetto::viewer::RoadmapViewer::getColorEdge ( ) const
inlinevirtual

◆ getColorNode()

virtual osgVector4 gepetto::viewer::RoadmapViewer::getColorNode ( ) const
inlinevirtual

◆ getEdge()

virtual LeafNodeLinePtr_t gepetto::viewer::RoadmapViewer::getEdge ( size_t i) const
inlinevirtual

◆ getNode()

virtual LeafNodeXYZAxisPtr_t gepetto::viewer::RoadmapViewer::getNode ( size_t i) const
inlinevirtual

◆ getNumOfEdges()

virtual size_t gepetto::viewer::RoadmapViewer::getNumOfEdges ( ) const
inlinevirtual

◆ getNumOfNodes()

virtual size_t gepetto::viewer::RoadmapViewer::getNumOfNodes ( ) const
inlinevirtual

◆ getRadiusSphere()

virtual float gepetto::viewer::RoadmapViewer::getRadiusSphere ( ) const
inlinevirtual

◆ getSizeAxis()

virtual float gepetto::viewer::RoadmapViewer::getSizeAxis ( ) const
inlinevirtual

◆ removeAllChildren()

virtual void gepetto::viewer::RoadmapViewer::removeAllChildren ( )
virtual

◆ self()

RoadmapViewerPtr_t gepetto::viewer::RoadmapViewer::self ( void ) const

Return a shared pointer of the current object

◆ setColor()

void gepetto::viewer::RoadmapViewer::setColor ( const osgVector4 & color)
inlinevirtual

Set the color of the object

Implements gepetto::viewer::Node.

◆ setColorEdge()

void gepetto::viewer::RoadmapViewer::setColorEdge ( const osgVector4 & color)

◆ setColorNode()

void gepetto::viewer::RoadmapViewer::setColorNode ( const osgVector4 & color)

◆ setLightingMode()

virtual void gepetto::viewer::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 gepetto::viewer::Node.

◆ setVisibilityMode()

virtual void gepetto::viewer::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 gepetto::viewer::Node.

◆ setWireFrameMode()

virtual void gepetto::viewer::RoadmapViewer::setWireFrameMode ( const WireFrameMode & wireframe_state)
virtual

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

Parameters
wireframemodestate

Reimplemented from gepetto::viewer::Node.


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