This class allows to add a grid to a view.
More...
Detailed Description
This class allows to add a grid to a view.
Example of use:
v = Viewer3d::Viewer3D.new
grid = Viewer3d::Grid.new
v.view.setSceneData( grid.node )
Definition at line 30 of file Grid.hpp.
#include <Grid.hpp>
List of all members.
Public Member Functions |
| Grid (double _size1=20.0, double _size2=20.0, int _countU=20, int _countV=20) |
osg::Geode * | node () |
void | setColor (double r, double g, double b, double a=1.0) |
Private Attributes |
double | m_size1 |
double | m_size2 |
double | m_countU |
double | m_countV |
osg::ref_ptr< osg::Geode > | m_geode |
osg::ref_ptr< osg::Geometry > | m_geometry |
osg::ref_ptr< osg::StateSet > | m_set |
The documentation for this class was generated from the following file:
- modules/viewer3d/include/viewer3d/Grid.hpp