~ubuntu-branches/ubuntu/lucid/igstk/lucid

« back to all changes in this revision

Viewing changes to Examples/TrackerConfiguration/configurationFileReaders/igstkPolarisSpectraConfigurationXMLFileReader.cxx

  • Committer: Bazaar Package Importer
  • Author(s): Dominique Belhachemi
  • Date: 2009-10-07 17:35:43 UTC
  • mfrom: (2.1.3 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091007173543-69eyhyjrh0bfoqe5
Tags: 4.2.0-2
* Fixed link issue (Closes: #549799)
* switch to quilt

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*=========================================================================
 
2
 
 
3
  Program:   Image Guided Surgery Software Toolkit
 
4
  Module:    $RCSfile: igstkPolarisSpectraConfigurationXMLFileReader.cxx,v $
 
5
  Language:  C++
 
6
  Date:      $Date: 2009-01-30 20:48:03 $
 
7
  Version:   $Revision: 1.1 $
 
8
 
 
9
  Copyright (c) ISC  Insight Software Consortium.  All rights reserved.
 
10
  See IGSTKCopyright.txt or http://www.igstk.org/copyright.htm for details.
 
11
 
 
12
     This software is distributed WITHOUT ANY WARRANTY; without even
 
13
     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
 
14
     PURPOSE.  See the above copyright notices for more information.
 
15
 
 
16
=========================================================================*/
 
17
 
 
18
#include "igstkPolarisSpectraConfigurationXMLFileReader.h"
 
19
#include "igstkPolarisTrackerConfiguration.h"
 
20
 
 
21
namespace igstk
 
22
{
 
23
double 
 
24
PolarisSpectraConfigurationXMLFileReader::GetMaximalRefreshRate()
 
25
{
 
26
  igstk::PolarisSpectraTrackerConfiguration::Pointer trackerConfig=
 
27
    igstk::PolarisSpectraTrackerConfiguration::New();
 
28
 
 
29
  return trackerConfig->GetMaximalRefreshRate();
 
30
}
 
31
 
 
32
 
 
33
std::string 
 
34
PolarisSpectraConfigurationXMLFileReader::GetSystemType()
 
35
{
 
36
  return "polaris wireless spectra";
 
37
}
 
38
 
 
39
igstk::PolarisWirelessTrackerConfiguration::Pointer 
 
40
PolarisSpectraConfigurationXMLFileReader::GetPolarisConfiguration()
 
41
{
 
42
  //explicitly upcast to avoid the compiler warning
 
43
  igstk::PolarisWirelessTrackerConfiguration::Pointer polarisWireless;
 
44
  polarisWireless = PolarisSpectraTrackerConfiguration::New();
 
45
  return polarisWireless;
 
46
}
 
47
 
 
48
} //namespace