Grip-Reloaded
Grip version visualizaiton interface for DART (DynamicAnimationandRoboticsToolkits)
Classes | Enumerations | Functions
osgGolems Namespace Reference

Namespace for all the classes that are only dependent upon OpenSceneGraph. More...

Classes

class  Axes
 Class that subclasses osg::Geode to create x,y,z axes. More...
class  CameraManipulator
 Camera manipulator class that subclasses osgGA::OrbitManipulator. It sets up desired behavior for robot simulator. More...
class  Grid
 Class for creating an OpenSceneGraph osg::Geomtry grid of user-specified width, depth and grid square size. More...
class  Line
 Class that subclasses osg::Geode to create x,y,z axes. More...
class  Sphere
 Convenience class for creating a sphere node. Subclasses osg::Geode. More...
class  Cylinder
 Convenience class for creating a cylinder node. Subclasses osg::Geode. More...
class  Box
 Convenience class for creating a box node. Subclasses osg::Geode. More...
class  Cone
 Convenience class for creating a cone node. Subclasses osg::Geode. More...
class  Capsule
 Convenience class for creating a capsule node. Subclasses osg::Geode. More...

Enumerations

enum  lineType_t { LINE = 0, LINE_ENDING_WITH_ARROW, LINE_WITH_ARROWS, NUM_LINE_TYPES }

Functions

osgViewer::View * createView (int x, int y, int w, int h, osg::Node *scene=NULL)
 Creates a osgViewer::View pointer with the specified location of the upper-left corner of the window, width, height and scene.
osg::Matrix eigToOsgMatrix (const Eigen::Isometry3d &tf)
 Convert Eigen::Isometry3d matrix to an osg::Matrix. osg::Matrix is transposed.
osg::Matrix eigToOsgMatrix (const Eigen::Isometry3f &tf)
 Convert Eigen::Isometry3f matrix to an osg::Matrix. osg::Matrix is transposed.
osg::Vec3 eigToOsgVec3 (const Eigen::Vector3d &vec)
 Convert Eigen::Vector3d vector to an osg::Vec3d.
void addWireFrameMode (osg::Node *node)
 Adds a wireframe mode to the node passed in.
void setWireFrameOn (osg::Node *node)
 Turns on wireframe mode for the passed in node If it doesn't have a wireframe mode, one is created.
void setWireFrameOff (osg::Node *node)
 Turns off wireframe mode for the passed in node If it doesn't have a wireframe mode, one is created.
void setTransparency (osg::Node *node, float transparencyValue)
 Set the transparency value of a node Reference: OSG Cookbook p. 239.

Detailed Description

Namespace for all the classes that are only dependent upon OpenSceneGraph.

Namespace to encompass the general OpenSceneGraph utilities.


Enumeration Type Documentation

Enumerator:
LINE 

Normal line.

LINE_ENDING_WITH_ARROW 

Line ending with an arrow.

LINE_WITH_ARROWS 

Line with arrow on each end.

NUM_LINE_TYPES 

Number of line types.


Function Documentation

void osgGolems::addWireFrameMode ( osg::Node *  node) [inline]

Adds a wireframe mode to the node passed in.

Parameters:
[out]nodeNode for which to add a wireframe mode
Returns:
void
Todo:
Fix everything
osgViewer::View * osgGolems::createView ( int  x,
int  y,
int  w,
int  h,
osg::Node *  scene = NULL 
)

Creates a osgViewer::View pointer with the specified location of the upper-left corner of the window, width, height and scene.

Parameters:
xX-coordinate of the upper-left corner of the window
xY-coordinate of the upper-left corner of the window
wWidth of the window
hHeight of the window
sceneA osg::Node pointer to be put into the viewer window
Returns:
osgViewer::View pointer
osg::Matrix osgGolems::eigToOsgMatrix ( const Eigen::Isometry3d &  tf) [inline]

Convert Eigen::Isometry3d matrix to an osg::Matrix. osg::Matrix is transposed.

Parameters:
tfEigen::Isometry3d to be converted. Passed in by reference
Returns:
osg::Matrix
osg::Matrix osgGolems::eigToOsgMatrix ( const Eigen::Isometry3f &  tf) [inline]

Convert Eigen::Isometry3f matrix to an osg::Matrix. osg::Matrix is transposed.

Parameters:
tfEigen::Isometry3f to be converted. Passed in by reference
Returns:
osg::Matrix
osg::Vec3 osgGolems::eigToOsgVec3 ( const Eigen::Vector3d &  vec) [inline]

Convert Eigen::Vector3d vector to an osg::Vec3d.

Parameters:
vecEigen::Vector3d to be converted. Passed in by reference
Returns:
osg::Vec3d
void osgGolems::setTransparency ( osg::Node *  node,
float  transparencyValue 
) [inline]

Set the transparency value of a node Reference: OSG Cookbook p. 239.

Parameters:
nodeNode of which to change the transparency value
transparencyValueNew transparency value for the node (between 0 and 1)
Returns:
void
void osgGolems::setWireFrameOff ( osg::Node *  node) [inline]

Turns off wireframe mode for the passed in node If it doesn't have a wireframe mode, one is created.

Parameters:
nodeNode for which to turn off wireframe mode
Returns:
void
void osgGolems::setWireFrameOn ( osg::Node *  node) [inline]

Turns on wireframe mode for the passed in node If it doesn't have a wireframe mode, one is created.

Parameters:
nodeNode for which to turn on wireframe mode
Returns:
void
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator