Rev | Line | |
---|
[66] | 1 | /* |
---|
| 2 | CustomTerrainManipulator class |
---|
| 3 | |
---|
| 4 | An OpenSceneGraph viewer for pyVolution .sww files. |
---|
| 5 | copyright (C) 2004 Geoscience Australia |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include <iostream> |
---|
| 9 | #include "customterrainmanipulator.h" |
---|
| 10 | |
---|
| 11 | |
---|
| 12 | void CustomTerrainManipulator::moveToHome() |
---|
| 13 | { |
---|
| 14 | computePosition( _homeEye, _homeCenter, _homeUp ); |
---|
| 15 | } |
---|
| 16 | |
---|
| 17 | |
---|
| 18 | bool CustomTerrainManipulator::handle( const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &us ) |
---|
| 19 | { |
---|
| 20 | if( _disabled ) |
---|
| 21 | return false; |
---|
| 22 | else |
---|
| 23 | { |
---|
| 24 | // std::cout << "customterrainmanipulator active" << std::endl; |
---|
| 25 | return osgGA::TerrainManipulator::handle( ea, us ); |
---|
| 26 | } |
---|
| 27 | } |
---|
| 28 | |
---|
Note: See
TracBrowser
for help on using the repository browser.