Implementation of the Box GraphicalObject in OSG render engine. More...
#include <gepetto/viewer/leaf-node-box.h>
Public Member Functions | |
virtual LeafNodeBoxPtr_t | clone (void) const |
Proceed to a clonage of the current object defined by the copy constructor. More... | |
virtual NodePtr_t | copy () const |
Copy. More... | |
LeafNodeBoxPtr_t | self (void) const |
Return a shared pointer of the current object. More... | |
void | setHalfAxis (const osgVector3 &half_axis) |
Fix the new half axis of the box Note : half axis must be positive vector. More... | |
osgVector3 | getHalfAxis () const |
void | setColor (const osgVector4 &color) |
osgVector4 | getColor () const |
void | setTexture (const std::string &image_path) |
virtual | ~LeafNodeBox () |
Destructor. More... | |
![]() | |
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 LeafNodeBoxPtr_t | create (const std::string &name, const osgVector3 &half_axis) |
Static method which create a new box defined by the half_axis vector. More... | |
static LeafNodeBoxPtr_t | create (const std::string &name, const osgVector3 &half_axis, const osgVector4 &color) |
static LeafNodeBoxPtr_t | createCopy (LeafNodeBoxPtr_t other) |
Static method for creating a clone of box other with the copy constructor. More... | |
Additional Inherited Members | |
![]() | |
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) |
Implementation of the Box GraphicalObject in OSG render engine.
|
virtual |
Destructor.
|
virtual |
Proceed to a clonage of the current object defined by the copy constructor.
|
inlinevirtual |
Copy.
Proceed to a copy of the currend object as clone
|
static |
Static method which create a new box defined by the half_axis vector.
|
static |
|
static |
Static method for creating a clone of box other with the copy constructor.
|
inline |
|
inline |
LeafNodeBoxPtr_t graphics::LeafNodeBox::self | ( | void | ) | const |
Return a shared pointer of the current object.
void graphics::LeafNodeBox::setColor | ( | const osgVector4 & | color | ) |
void graphics::LeafNodeBox::setHalfAxis | ( | const osgVector3 & | half_axis | ) |
Fix the new half axis of the box Note : half axis must be positive vector.
void graphics::LeafNodeBox::setTexture | ( | const std::string & | image_path | ) |