|
SPIN Framework
|
Draws a tiled grid, which is useful for debugging and measurements. More...
#include <GridNode.h>
Public Member Functions | |
| GridNode (SceneManager *sceneManager, const char *initID) | |
| void | setSize (int _size) |
| void | setColor (float red, float green, float blue, float alpha) |
| int | getSize () const |
| osg::Vec4 | getColor () const |
| virtual std::vector< lo_message > | getState () const |
Draws a tiled grid, which is useful for debugging and measurements.
| osg::Vec4 spin::GridNode::getColor | ( | ) | const [inline] |
Returns the color of the grid's lines in a Vector4 of RGBA values.
| int spin::GridNode::getSize | ( | ) | const [inline] |
Returns the size of the grid (in meters from the center).
| std::vector< lo_message > spin::GridNode::getState | ( | ) | const [virtual] |
For each subclass of ReferencedNode, we override the getState() method to fill the vector with the correct set of methods for this particular node
Reimplemented from spin::ReferencedNode.
| void spin::GridNode::setColor | ( | float | red, |
| float | green, | ||
| float | blue, | ||
| float | alpha | ||
| ) |
Sets the grid's line color in RGBA value.
| void spin::GridNode::setSize | ( | int | _size | ) |
The grid size is measured in meters, and defines how far out from the center the grid is drawn (ie, half width).
1.7.3