#include <gepetto/viewer/leaf-node-ground.h>
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... | |
void | setColor (const osgVector4 &color) |
virtual void | setColor1 (const osgVector4 &color1) |
inline virtual void setColor1(const ColotSharedPtr &color1_ptr) More... | |
const osgVector4 & | getColor1 () const |
virtual void | setColor2 (const osgVector4 &color2) |
inline virtual void setColor2(const ColotSharedPtr &color2_ptr) More... | |
const 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 () |
Destructor. More... | |
![]() | |
const Configuration & | getGlobalTransform () 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... | |
bool | isDirty () const |
void | setDirty (bool dirty=true) |
Called when a property is modified. More... | |
void | applyConfiguration (const osgVector3 &position, const osgQuat &quat) |
Apply a new global configuration. More... | |
void | applyConfiguration (const Configuration &cfg) |
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 void | setVisibilityMode (const VisibilityMode &visibility_state) |
Virtual method for setting the visibility mode of the object : visible or not visible. More... | |
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. More... | |
virtual LightingMode | getLightingMode () const |
virtual void | setWireFrameMode (const WireFrameMode &wireframe_state) |
Virtual method for setting the wireframe mode of the object : visible or not. More... | |
virtual const WireFrameMode & | getWireFrameMode () const |
void | setScale (float scale) |
Set scale value of the OSG object. More... | |
void | setScale (const osgVector3 &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 () |
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 () |
![]() | |
Property * | property (const std::string &name) const |
Access a property. More... | |
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. More... | |
bool | hasProperty (const std::string &name) const |
const PropertyMap_t & | properties () const |
void | addProperty (const PropertyPtr_t &prop) |
Add a property and take ownership. More... | |
void | addProperty (const std::string &name, const PropertyPtr_t &prop) |
Add a property and take ownership. More... | |
void | addProperty (Property *prop) |
Add a property and leave ownership. More... | |
void | addProperty (const std::string &name, Property *prop) |
Add a property and leave ownership. More... | |
QWidget * | guiEditor () |
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... | |
Public Attributes | |
SCENE_VIEWER_ACCEPT_VISITOR | |
Virtual method for setting the shadow mode of the object : receive, cast, both or no shadow. More... | |
![]() | |
SCENE_VIEWER_ACCEPT_VISITOR | |
Additional Inherited Members | |
![]() | |
typedef std::map< std::string, Wrapper > | PropertyMap_t |
![]() | |
static const float | TransparencyRenderingBinThreshold |
![]() | |
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) |
void | setTransparentRenderingBin (bool transparent=true, osg::StateSet *ss=NULL) |
![]() | |
::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... | |
![]() | |
PropertyMap_t | properties_ |
|
virtual |
Destructor.
|
virtual |
Clone.
Returns a shared pointer to a newly allocated copy of the object.
|
inlinevirtual |
Copy.
Proceed to a copy of the currend object as clone
|
static |
Builder.
length | : length of plane |
width | : width of plane |
|
static |
Builder.
Constructor with all useful 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 |
|
static |
|
static |
Create copy.
|
inline |
|
inline |
LeafNodeGroundPtr_t gepetto::viewer::LeafNodeGround::self | ( | void | ) | const |
Returns a shared pointer of the object itself.
|
virtual |
Implements gepetto::viewer::Node.
|
virtual |
inline virtual void setColor1(const ColotSharedPtr &color1_ptr)
Allow to define color1
color1_ptr | : color to apply to first color |
|
virtual |
inline virtual void setColor2(const ColotSharedPtr &color2_ptr)
Allow to define color2
color2_ptr | : color to apply to second color |
|
virtual |
virtual void setColors(const ColorSharedPtr &color1_ptr , const ColorSharedPtr &color2_ptr);
Allow to define both colors
color1_ptr | : color to apply to first color |
color2_ptr | : color to apply to second color |
gepetto::viewer::LeafNodeGround::SCENE_VIEWER_ACCEPT_VISITOR |
Virtual method for setting the shadow mode of the object : receive, cast, both or no shadow.
shadow_state | state |