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

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

Inheritance diagram for gepetto::viewer::LeafNodeLine:
Collaboration diagram for gepetto::viewer::LeafNodeLine:

Public Member Functions

virtual LeafNodeLinePtr_t clone (void) const
virtual NodePtr_t copy () const
 Proceed to a copy of the currend object as clone.
LeafNodeLinePtr_t self (void) const
virtual void setStartPoint (const osgVector3 &start_point)
osgVector3 getStartPoint () const
virtual void setEndPoint (const osgVector3 &end_point)
osgVector3 getEndPoint () const
virtual void setMode (const GLenum &mode)
GLenum getMode () const
virtual void setPoints (const osgVector3 &start_point, const osgVector3 &end_point)
virtual void setPoints (const ::osg::Vec3ArrayRefPtr &points)
void setPointsSubset (const int first, const std::size_t count)
::osg::Vec3ArrayRefPtr getPoints ()
void setColor (const osgVector4 &color)
void setColors (const ::osg::Vec4ArrayRefPtr &color)
osgVector4 getColor () const
::osg::GeometryRefPtr geometry () const
virtual ~LeafNodeLine ()
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::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 LeafNodeLinePtr_t create (const std::string &name, const osgVector3 &start_point, const osgVector3 &end_point)
static LeafNodeLinePtr_t create (const std::string &name, const osgVector3 &start_point, const osgVector3 &end_point, const osgVector4 &color)
static LeafNodeLinePtr_t create (const std::string &name, const ::osg::Vec3ArrayRefPtr &points, const osgVector4 &color)
static LeafNodeLinePtr_t createCopy (LeafNodeLinePtr_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_

Constructor & Destructor Documentation

◆ ~LeafNodeLine()

virtual gepetto::viewer::LeafNodeLine::~LeafNodeLine ( )
virtual

Destructor

Member Function Documentation

◆ clone()

virtual LeafNodeLinePtr_t gepetto::viewer::LeafNodeLine::clone ( void ) const
virtual

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

◆ copy()

virtual NodePtr_t gepetto::viewer::LeafNodeLine::copy ( ) const
inlinevirtual

Proceed to a copy of the currend object as clone.

Copy

◆ create() [1/3]

LeafNodeLinePtr_t gepetto::viewer::LeafNodeLine::create ( const std::string & name,
const ::osg::Vec3ArrayRefPtr & points,
const osgVector4 & color )
static

◆ create() [2/3]

LeafNodeLinePtr_t gepetto::viewer::LeafNodeLine::create ( const std::string & name,
const osgVector3 & start_point,
const osgVector3 & end_point )
static

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

◆ create() [3/3]

LeafNodeLinePtr_t gepetto::viewer::LeafNodeLine::create ( const std::string & name,
const osgVector3 & start_point,
const osgVector3 & end_point,
const osgVector4 & color )
static

◆ createCopy()

LeafNodeLinePtr_t gepetto::viewer::LeafNodeLine::createCopy ( LeafNodeLinePtr_t other)
static

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

◆ geometry()

::osg::GeometryRefPtr gepetto::viewer::LeafNodeLine::geometry ( ) const
inline

◆ getColor()

osgVector4 gepetto::viewer::LeafNodeLine::getColor ( ) const
inline

◆ getEndPoint()

osgVector3 gepetto::viewer::LeafNodeLine::getEndPoint ( ) const

◆ getMode()

GLenum gepetto::viewer::LeafNodeLine::getMode ( ) const

◆ getPoints()

::osg::Vec3ArrayRefPtr gepetto::viewer::LeafNodeLine::getPoints ( )
inline

◆ getStartPoint()

osgVector3 gepetto::viewer::LeafNodeLine::getStartPoint ( ) const

◆ self()

LeafNodeLinePtr_t gepetto::viewer::LeafNodeLine::self ( void ) const

Return a shared pointer of the current object

◆ setColor()

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

Set the color of the object

Implements gepetto::viewer::Node.

◆ setColors()

void gepetto::viewer::LeafNodeLine::setColors ( const ::osg::Vec4ArrayRefPtr & color)

◆ setEndPoint()

virtual void gepetto::viewer::LeafNodeLine::setEndPoint ( const osgVector3 & end_point)
virtual

Define the new end point of the line

◆ setMode()

virtual void gepetto::viewer::LeafNodeLine::setMode ( const GLenum & mode)
virtual

Define the immediate mode of OpenGL used to draw the line. Possible values are:

◆ setPoints() [1/2]

virtual void gepetto::viewer::LeafNodeLine::setPoints ( const ::osg::Vec3ArrayRefPtr & points)
virtual

◆ setPoints() [2/2]

virtual void gepetto::viewer::LeafNodeLine::setPoints ( const osgVector3 & start_point,
const osgVector3 & end_point )
virtual

Define the start and end point of the line

◆ setPointsSubset()

void gepetto::viewer::LeafNodeLine::setPointsSubset ( const int first,
const std::size_t count )

Draw only a subset of the points

◆ setStartPoint()

virtual void gepetto::viewer::LeafNodeLine::setStartPoint ( const osgVector3 & start_point)
virtual

Apply a new global configuration Define the new start point of the line

Member Data Documentation

◆ SCENE_VIEWER_ACCEPT_VISITOR

gepetto::viewer::LeafNodeLine::SCENE_VIEWER_ACCEPT_VISITOR

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