source: Swollen/swollen/customtrackball.cpp @ 1697

Last change on this file since 1697 was 66, checked in by darran, 20 years ago
File size: 580 bytes
RevLine 
[6]1/*
2    CustomTrackBall class
3
4    An OpenSceneGraph viewer for pyVolution .sww files.
5    copyright (C) 2004 Geoscience Australia
6*/
7
[66]8#include <iostream>
[6]9#include "customtrackball.h"
10
[66]11
[6]12void CustomTrackballManipulator::moveToHome()
13{
[66]14    computePosition( _homeEye, _homeCenter, _homeUp );
[6]15}
[66]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.