#include <gepetto/viewer/node.h>
Public Member Functions | |
std::pair< osgVector3, osgQuat > | 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... | |
void | applyConfiguration (const osgVector3 &position, const osgQuat &quat) |
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 VisibilityMode | getVisibilityMode () |
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 (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... | |
osgVector3 | getScale () const |
Get scale. More... | |
virtual void | setColor (const osgVector4 &color)=0 |
Set the color of the object. 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) |
::osg::StateSetRefPtr | getOrCreateRootStateSet () |
void | deleteLandmark () |
void | setHighlightState (unsigned int state) |
virtual void | setAlpha (const float &alpha) |
float | getAlpha () const |
virtual void | traverse (NodeVisitor &visitor) |
template<typename T > | |
bool | getProperty (const std::string &name, T &value) const |
template<typename T > | |
bool | setProperty (const std::string &name, const T &value) |
const PropertyMap_t & | properties () const |
virtual | ~Node () |
Public Attributes | |
SCENE_VIEWER_ACCEPT_VISITOR | |
Protected Member Functions | |
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) |
const PropertyPtr_t & | property (const std::string &name) const |
void | addProperty (const PropertyPtr_t &prop) |
void | addProperty (const std::string &name, const PropertyPtr_t &prop) |
Protected Attributes | |
::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... | |
|
protected |
Default constructor.
|
protected |
Copy constructor.
|
virtual |
Referenced by properties().
|
virtual |
Reimplemented in graphics::LeafNodeCapsule.
Referenced by asGroup().
|
protected |
Referenced by setID().
|
protected |
void graphics::Node::applyConfiguration | ( | const osgVector3 & | position, |
const osgQuat & | quat | ||
) |
Apply a new global configuration.
Referenced by getID().
|
inline |
Return the root node to include it in the scene.
References addLandmark().
|
inlineprotected |
Return the root node to include it in the scene.
void graphics::Node::deleteLandmark | ( | ) |
Referenced by getOrCreateRootStateSet().
float graphics::Node::getAlpha | ( | ) | const |
Referenced by getOrCreateRootStateSet().
std::pair<osgVector3, osgQuat> graphics::Node::getGlobalTransform | ( | ) | const |
returns rotation and position of the node in word frame
Referenced by setID().
|
inline |
getID is a public method for getting the id_name of the Object
References applyConfiguration(), getStaticPosition(), getStaticRotation(), setStaticTransform(), and setVisibilityMode().
|
inline |
References deleteLandmark(), getAlpha(), setAlpha(), and setHighlightState().
|
virtual |
Reimplemented in graphics::GroupNode, graphics::LeafNodeCollada, and graphics::LeafNodeMesh.
Referenced by getVisibilityMode().
|
inline |
References property().
osgVector3 graphics::Node::getScale | ( | ) | const |
Get scale.
Referenced by getVisibilityMode().
osgVector3 graphics::Node::getStaticPosition | ( | ) | const |
Get Static position.
Referenced by getID().
|
inlinevirtual |
References getOsgNode(), getScale(), setColor(), setLightingMode(), setScale(), and setWireFrameMode().
|
inline |
References ~Node().
|
protected |
Referenced by getProperty(), setID(), and setProperty().
|
virtual |
Reimplemented in graphics::LeafNodeLine, graphics::GroupNode, graphics::LeafNodeCollada, and graphics::LeafNodeMesh.
Referenced by getOrCreateRootStateSet().
|
pure virtual |
Set the color of the object.
Implemented in graphics::RoadmapViewer, graphics::GroupNode, graphics::LeafNodeLine, graphics::LeafNodeGround, graphics::LeafNodeCapsule, graphics::LeafNodeCone, graphics::LeafNodeCylinder, graphics::LeafNodeLight, graphics::LeafNodeArrow, graphics::LeafNodeSphere, graphics::LeafNodeBox, graphics::LeafNodeXYZAxis, graphics::LeafNodeFace, graphics::LeafNodeCollada, graphics::LeafNodeMesh, and graphics::NodeRod.
Referenced by getVisibilityMode().
void graphics::Node::setHighlightState | ( | unsigned int | state | ) |
Referenced by getOrCreateRootStateSet().
|
inlineprotected |
References addProperty(), getGlobalTransform(), and property().
|
virtual |
Virtual method for setting the lighting mode of the object : influence by light or not.
lightingmode | state |
Reimplemented in graphics::GroupNode, and graphics::RoadmapViewer.
Referenced by getVisibilityMode().
|
inline |
References property().
|
virtual |
Set scale value of the OSG object.
Reimplemented in graphics::GroupNode.
Referenced by getVisibilityMode().
|
virtual |
Set scales value of the OSG object.
void graphics::Node::setStaticTransform | ( | const osgVector3 & | position, |
const osgQuat & | quat | ||
) |
Set Static transformation.
Referenced by getID().
|
virtual |
Virtual method for setting the visibility mode of the object : visible or not visible.
visibilitymode | state |
Reimplemented in graphics::GroupNode, and graphics::RoadmapViewer.
Referenced by getID().
|
virtual |
Virtual method for setting the wireframe mode of the object : visible or not.
wireframemode | state |
Reimplemented in graphics::GroupNode, and graphics::RoadmapViewer.
Referenced by getVisibilityMode().
|
virtual |
Reimplemented in graphics::GroupNode.
|
protected |
Alpha value.
|
protected |
Geode pointer for landmarks.
|
protected |
protected because it's used in LeafNodeCapsule
graphics::Node::SCENE_VIEWER_ACCEPT_VISITOR |