All Classes Namespaces Files Functions Typedefs Enumerations Enumerator Macros
graphics::LeafNodeGround Class Reference

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

Inheritance diagram for graphics::LeafNodeGround:
Collaboration diagram for graphics::LeafNodeGround:

Public Member Functions

virtual LeafNodeGroundPtr_t clone (void) const
 Clone. More...
 
virtual LeafNodeGroundPtr_t copy () const
 Copy. More...
 
LeafNodeGroundPtr_t self (void) const
 Returns a shared pointer of the object itself. More...
 
virtual void setColor1 (const osgVector4 &color1)
 inline virtual void setColor1(const ColotSharedPtr &color1_ptr) More...
 
osgVector4 getColor1 () const
 
virtual void setColor2 (const osgVector4 &color2)
 inline virtual void setColor2(const ColotSharedPtr &color2_ptr) More...
 
osgVector4 getColor2 () const
 
virtual void setColors (const osgVector4 &color1, const osgVector4 &color2)
 virtual void setColors(const ColorSharedPtr &color1_ptr , const ColorSharedPtr &color2_ptr); More...
 
virtual ~LeafNodeGround ()
 Virtual method for setting the shadow mode of the object : receive, cast, both or no shadow. More...
 
- Public Member Functions inherited from graphics::Node
std::string getID () const
 getID is a public method for getting the id_name of the Object More...
 
void applyConfiguration (osgVector3 position, osgQuat quat)
 Apply a new global configuration. More...
 
void setStaticTransform (osgVector3 position, osgQuat quat)
 Set Static transformation. More...
 
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 void setScale (const 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...
 
virtual ::osg::GroupRefPtr asGroup () const
 Return the root node to include it in the scene. More...
 
void addLandmark (const float &size)
 
void deleteLandmark ()
 
virtual ~Node ()
 Return the alpha value. More...
 

Static Public Member Functions

static LeafNodeGroundPtr_t create (const std::string &name, const float &length, const float &width)
 Builder. More...
 
static LeafNodeGroundPtr_t create (const std::string &name, const float &length, const float &width, const float &square_length, const float &square_width)
 Builder. More...
 
static LeafNodeGroundPtr_t create (const std::string &name, const float &length, const float &width, const float &square_length, const float &square_width, const osgVector4 &color1, const osgVector4 &color2)
 
static LeafNodeGroundPtr_t create (const std::string &name)
 
static LeafNodeGroundPtr_t createCopy (const LeafNodeGroundPtr_t &other)
 Create copy. More...
 

Additional Inherited Members

- 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)
 

Constructor & Destructor Documentation

virtual graphics::LeafNodeGround::~LeafNodeGround ( )
virtual

Virtual method for setting the shadow mode of the object : receive, cast, both or no shadow.

Parameters
shadow_statestateDestructor

Member Function Documentation

virtual LeafNodeGroundPtr_t graphics::LeafNodeGround::clone ( void  ) const
virtual

Clone.

Returns a shared pointer to a newly allocated copy of the object.

virtual LeafNodeGroundPtr_t graphics::LeafNodeGround::copy ( ) const
inlinevirtual

Copy.

Proceed to a copy of the currend object as clone

static LeafNodeGroundPtr_t graphics::LeafNodeGround::create ( const std::string &  name,
const float &  length,
const float &  width 
)
static

Builder.

Parameters
length: length of plane
width: width of plane
static LeafNodeGroundPtr_t graphics::LeafNodeGround::create ( const std::string &  name,
const float &  length,
const float &  width,
const float &  square_length,
const float &  square_width 
)
static

Builder.

Constructor with all useful parameters

Parameters
length: length of demi-axis
width: width of demi-axis
square_length: length of a basic square
square_width: width of a basic square
configuration_ptr: configuration of plane
static LeafNodeGroundPtr_t graphics::LeafNodeGround::create ( const std::string &  name,
const float &  length,
const float &  width,
const float &  square_length,
const float &  square_width,
const osgVector4 color1,
const osgVector4 color2 
)
static
static LeafNodeGroundPtr_t graphics::LeafNodeGround::create ( const std::string &  name)
static
static LeafNodeGroundPtr_t graphics::LeafNodeGround::createCopy ( const LeafNodeGroundPtr_t &  other)
static

Create copy.

osgVector4 graphics::LeafNodeGround::getColor1 ( ) const
inline
osgVector4 graphics::LeafNodeGround::getColor2 ( ) const
inline
LeafNodeGroundPtr_t graphics::LeafNodeGround::self ( void  ) const

Returns a shared pointer of the object itself.

virtual void graphics::LeafNodeGround::setColor1 ( const osgVector4 color1)
virtual

inline virtual void setColor1(const ColotSharedPtr &color1_ptr)

Allow to define color1

Parameters
color1_ptr: color to apply to first color
virtual void graphics::LeafNodeGround::setColor2 ( const osgVector4 color2)
virtual

inline virtual void setColor2(const ColotSharedPtr &color2_ptr)

Allow to define color2

Parameters
color2_ptr: color to apply to second color
virtual void graphics::LeafNodeGround::setColors ( const osgVector4 color1,
const osgVector4 color2 
)
virtual

virtual void setColors(const ColorSharedPtr &color1_ptr , const ColorSharedPtr &color2_ptr);

Allow to define both colors

Parameters
color1_ptr: color to apply to first color
color2_ptr: color to apply to second color