source: Swollen/swollen/customtrackball.cpp @ 72

Last change on this file since 72 was 66, checked in by darran, 20 years ago
File size: 580 bytes
Line 
1/*
2    CustomTrackBall class
3
4    An OpenSceneGraph viewer for pyVolution .sww files.
5    copyright (C) 2004 Geoscience Australia
6*/
7
8#include <iostream>
9#include "customtrackball.h"
10
11
12void CustomTrackballManipulator::moveToHome()
13{
14    computePosition( _homeEye, _homeCenter, _homeUp );
15}
16
17
18bool CustomTrackballManipulator::handle( const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &us )
19{
20    if( _disabled )
21        return false;
22    else
23    {
24        // std::cout << "customtrackballmanipulator active" << std::endl;
25        return osgGA::TrackballManipulator::handle( ea, us );
26    }
27}
28
Note: See TracBrowser for help on using the repository browser.