source: anuga_core/source/swollen_viewer/swollen/customterrainmanipulator.cpp @ 3581

Last change on this file since 3581 was 66, checked in by darran, 19 years ago
File size: 590 bytes
Line 
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
12void CustomTerrainManipulator::moveToHome()
13{
14    computePosition( _homeEye, _homeCenter, _homeUp );
15}
16
17
18bool 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.