openscenegraph
|
The osgManipulator library is a NodeKit that extends the core scene graph to support 3D interactive manipulators.
OSGMANIPULATOR_EXPORT void osgManipulator::computeNodePathToRoot | ( | osg::Node & | node, |
osg::NodePath & | np | ||
) |
Computes the nodepath from the given node all the way upto the root.
void OSGMANIPULATOR_EXPORT osgManipulator::setDrawableToAlwaysCull | ( | osg::Drawable & | drawable | ) |
Culls the drawable all the time. Used by draggers to have invisible geometry around lines and points so that they can be picked. For example, a dragger could have a line with an invisible cylinder around it to enable picking on that line.
void OSGMANIPULATOR_EXPORT osgManipulator::setMaterialColor | ( | const osg::Vec4 & | color, |
osg::Node & | node | ||
) |
Convenience function for setting the material color on a node.
Referenced by osgManipulator::RotateCylinderDragger::setColor(), osgManipulator::RotateSphereDragger::setColor(), osgManipulator::Translate1DDragger::setColor(), osgManipulator::Translate2DDragger::setColor(), osgManipulator::Scale2DDragger::setColor(), and osgManipulator::Scale1DDragger::setColor().