#include <TrackballManager.h>
Inheritance diagram for vrjGA::TrackballManager< TBType, TrackerType, ButtonType >:

Public Types | |
| typedef Referenced | BaseClass |
Public Member Functions | |
| VRJGA_DECLARE_POINTER (TrackballManager) | |
| TrackballManager () | |
| TrackballManager (TBType *tb, TrackerType *w, ButtonType *b) | |
| TrackballManager (const TrackballManager &tbm) | |
| TrackballManager & | operator= (const TrackballManager &tbm) |
| void | setActionButton (ButtonType *b) |
| const ButtonType * | getActionButton () const |
| void | setTracker (TrackerType *w) |
| const TrackerType * | getTracker () const |
| void | setTrackball (TBType *tb) |
| const TBType * | getTrackball () const |
| void | update () |
Protected Member Functions | |
| ~TrackballManager () | |
|
|||||
|
Definition at line 34 of file TrackballManager.h. Referenced by vrjGA::TrackballManager< TBType, TrackerType, ButtonType >::TrackballManager(). |
|
|||||||||
|
Definition at line 37 of file TrackballManager.h. References vrjGA::TrackballManager< TBType, TrackerType, ButtonType >::BaseClass.
00037 : BaseClass(), 00038 _tb(0x0), _wand(0x0), _btn(0x0) {} |
|
||||||||||||||||||||
|
Definition at line 40 of file TrackballManager.h. References vrjGA::TrackballManager< TBType, TrackerType, ButtonType >::BaseClass.
00040 : BaseClass(), 00041 _tb(tb), _wand(w), _btn(b) {} |
|
||||||||||
|
Definition at line 43 of file TrackballManager.h. References vrjGA::TrackballManager< TBType, TrackerType, ButtonType >::BaseClass.
00043 : BaseClass(), 00044 _tb(tbm._tb), _wand(tbm.wand), _btn(tbm._btn) {} |
|
|||||||||
|
Definition at line 84 of file TrackballManager.h.
00084 {}
|
|
|||||||||
|
Definition at line 54 of file TrackballManager.h.
00054 { return _btn; }
|
|
|||||||||
|
Definition at line 60 of file TrackballManager.h.
00060 { return _tb; }
|
|
|||||||||
|
Definition at line 57 of file TrackballManager.h.
00057 { return _wand; }
|
|
||||||||||
|
Definition at line 46 of file TrackballManager.h. References vrjGA::TrackballManager< TBType, TrackerType, ButtonType >::_btn, vrjGA::TrackballManager< TBType, TrackerType, ButtonType >::_tb, and vrjGA::TrackballManager< TBType, TrackerType, ButtonType >::_wand.
00047 {
00048 _tb = tbm._tb;
00049 _wand = tbm._wand;
00050 _btn = tbm._btn;
00051 }
|
|
||||||||||
|
Definition at line 53 of file TrackballManager.h.
00053 { _btn = b; }
|
|
||||||||||
|
Definition at line 59 of file TrackballManager.h.
00059 { _tb = _tb; }
|
|
||||||||||
|
Definition at line 56 of file TrackballManager.h.
00056 { _wand = w; }
|
|
|||||||||
|
Definition at line 63 of file TrackballManager.h.
00064 {
00065 _tb->setTime( _wand->time() );
00066
00067 if( _btn->state() == gadget::Digital::ON )
00068 {
00069 gmtl::Matrix44f wand_matrix = _wand->matrix();
00070 gmtl::Vec3f RayOrigin = gmtl::makeTrans<gmtl::Vec3f, gmtl::Matrix44f>( wand_matrix );
00071 gmtl::Vec3f RayDirection = wand_matrix * gmtl::Vec3f(0.0, 0.0, -1.0);
00072
00073 gmtl::Rayf TBray(RayOrigin, RayDirection);
00074 _tb->input(TBray);
00075 }
00076
00077 else
00078 {
00079 _tb->update();
00080 }
00081 }
|
|
||||||||||
|
|
1.3.5