Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

TrackerDevice.cpp

Go to the documentation of this file.
00001 
00003 //
00004 //  Copyright (c) 2002, Perry L. Miller IV
00005 //  All rights reserved.
00006 //  BSD License: http://www.opensource.org/licenses/bsd-license.html
00007 //
00009 
00011 //
00012 //  Wrapper class for a single gadget::PositionInterface.
00013 //
00015 
00016 #include "vrjGaPrecompiled.h"
00017 #include "TrackerDevice.h"
00018 
00019 using namespace vrjGA;
00020 
00021 
00023 //
00024 //  Constructor.
00025 //
00027 
00028 TrackerDevice::TrackerDevice ( const std::string &name ) : 
00029   BaseClass(),
00030   _pi(),
00031   _matrix(),
00032   _time(0.0)
00033 {
00034   // Initialize.
00035   _pi.init ( name );
00036 }
00037 
00038 
00040 //
00041 //  Destructor.
00042 //
00044 
00045 TrackerDevice::~TrackerDevice()
00046 {
00047 }
00048 
00049 
00051 //
00052 //  Update the internal state.
00053 //
00055 
00056 void TrackerDevice::update()
00057 {
00058   _matrix = _pi->getData();
00059   _time = _pi->getTimeStamp().secd();
00060 }

Generated on Thu Aug 12 16:42:14 2004 for vrjGA by doxygen 1.3.5