00001
00003
00004
00005
00006
00007
00009
00011
00012
00013
00015
00016 #include "vrjGaPrecompiled.h"
00017 #include "TrackerDevice.h"
00018
00019 using namespace vrjGA;
00020
00021
00023
00024
00025
00027
00028 TrackerDevice::TrackerDevice ( const std::string &name ) :
00029 BaseClass(),
00030 _pi(),
00031 _matrix(),
00032 _time(0.0)
00033 {
00034
00035 _pi.init ( name );
00036 }
00037
00038
00040
00041
00042
00044
00045 TrackerDevice::~TrackerDevice()
00046 {
00047 }
00048
00049
00051
00052
00053
00055
00056 void TrackerDevice::update()
00057 {
00058 _matrix = _pi->getData();
00059 _time = _pi->getTimeStamp().secd();
00060 }