Abstract base class of 3D objects in a scene. More...
#include <gepetto/viewer/node.h>
Public Member Functions | |
| 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 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) |
| 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 |
| 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 () |
Public Attributes | |
| SCENE_VIEWER_ACCEPT_VISITOR | |
Static Public Attributes | |
| static const float | TransparencyRenderingBinThreshold |
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) |
| void | setTransparentRenderingBin (bool transparent=true, osg::StateSet *ss=NULL) |
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 Attributes inherited from gepetto::viewer::Properties | |
| PropertyMap_t | properties_ |
Friends | |
| struct | NodeTest |
Additional Inherited Members | |
Public Types inherited from gepetto::viewer::Properties | |
| typedef std::map< std::string, Wrapper > | PropertyMap_t |
Abstract base class of 3D objects in a scene.
|
protected |
Default constructor.
|
protected |
Copy constructor.
|
virtual |
|
virtual |
Referenced by asGroup().
|
inline |
Apply a new global configuration.
|
inline |
Apply a new global configuration.
References getStaticPosition(), getStaticRotation(), gepetto::viewer::Property::set(), setStaticTransform(), and setVisibilityMode().
|
inline |
Return the root node to include it in the scene.
References addLandmark(), and hasLandmark().
|
inlineprotected |
Return the root node to include it in the scene.
| void gepetto::viewer::Node::deleteLandmark | ( | ) |
Referenced by getOrCreateRootStateSet().
|
virtual |
Reimplemented in gepetto::viewer::NodeDrawable.
Referenced by getHighlightState().
| const Configuration& gepetto::viewer::Node::getGlobalTransform | ( | ) | const |
returns rotation and position of the node in word frame
|
inline |
|
inline |
References getAlpha(), getTransparency(), setAlpha(), and setTransparency().
|
inline |
getID is a public method for getting the id_name of the Object
|
virtual |
Referenced by getVisibilityMode().
|
inline |
References deleteLandmark().
|
virtual |
Reimplemented in gepetto::viewer::GroupNode, gepetto::viewer::LeafNodeCollada, and gepetto::viewer::LeafNodeMesh.
Referenced by getScale().
|
inline |
Get scale.
References getOsgNode(), setColor(), and gepetto::viewer::StoredPropertyTpl< T >::value.
| osgVector3 gepetto::viewer::Node::getStaticPosition | ( | ) | const |
Get Static position.
Referenced by applyConfiguration().
| osgQuat gepetto::viewer::Node::getStaticRotation | ( | ) | const |
Get Static rotation.
Referenced by applyConfiguration().
| float gepetto::viewer::Node::getTransparency | ( | ) | const |
Referenced by getHighlightState().
|
inlinevirtual |
References getLightingMode(), setLightingMode(), and setWireFrameMode().
|
inlinevirtual |
| bool gepetto::viewer::Node::hasLandmark | ( | ) | const |
Referenced by asGroup().
|
inline |
|
virtual |
Reimplemented in gepetto::viewer::GroupNode, gepetto::viewer::LeafNodeCollada, gepetto::viewer::LeafNodeMesh, and gepetto::viewer::NodeDrawable.
Referenced by getHighlightState().
|
pure virtual |
Set the color of the object.
Implemented in gepetto::viewer::RoadmapViewer, gepetto::viewer::GroupNode, gepetto::viewer::LeafNodeLine, gepetto::viewer::LeafNodeGround, gepetto::viewer::LeafNodeArrow, gepetto::viewer::LeafNodeCollada, gepetto::viewer::LeafNodeFace, gepetto::viewer::LeafNodeLight, gepetto::viewer::LeafNodeMesh, gepetto::viewer::NodeRod, and gepetto::viewer::NodeDrawable.
Referenced by getScale().
|
inlinevirtual |
Called when a property is modified.
Implements gepetto::viewer::Properties.
|
inline |
References setHighlightState().
| void gepetto::viewer::Node::setHighlightState | ( | unsigned int | state | ) |
Referenced by setHighlightEnabled().
|
inlineprotected |
References setTransparentRenderingBin().
|
virtual |
Virtual method for setting the lighting mode of the object : influence by light or not.
| lightingmode | state |
Reimplemented in gepetto::viewer::GroupNode, and gepetto::viewer::RoadmapViewer.
Referenced by getVisibilityMode().
|
inline |
|
inline |
Set scales value of the OSG object.
References gepetto::viewer::Property::set().
| void gepetto::viewer::Node::setStaticTransform | ( | const osgVector3 & | position, |
| const osgQuat & | quat | ||
| ) |
Set Static transformation.
Referenced by applyConfiguration().
| void gepetto::viewer::Node::setTransparency | ( | const float & | transparency | ) |
Referenced by getHighlightState().
|
protected |
Referenced by setID().
|
virtual |
Virtual method for setting the visibility mode of the object : visible or not visible.
| visibilitymode | state |
Reimplemented in gepetto::viewer::RoadmapViewer.
Referenced by applyConfiguration().
|
virtual |
Virtual method for setting the wireframe mode of the object : visible or not.
| wireframemode | state |
Reimplemented in gepetto::viewer::GroupNode, and gepetto::viewer::RoadmapViewer.
Referenced by getVisibilityMode().
|
virtual |
Reimplemented in gepetto::viewer::GroupNode.
|
friend |
|
protected |
Alpha value.
|
protected |
Geode pointer for landmarks.
|
protected |
protected because it's used in LeafNodeCapsule
| gepetto::viewer::Node::SCENE_VIEWER_ACCEPT_VISITOR |
|
static |