Public Member Functions

mitk::WiiMoteActivator Class Reference

#include <mitkWiiMoteActivator.h>

Inheritance diagram for mitk::WiiMoteActivator:
Inheritance graph
[legend]
Collaboration diagram for mitk::WiiMoteActivator:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 WiiMoteActivator ()
 ~WiiMoteActivator ()
bool RegisterInputDevice ()
bool UnRegisterInputDevice ()

Detailed Description

Definition at line 27 of file mitkWiiMoteActivator.h.


Constructor & Destructor Documentation

mitk::WiiMoteActivator::WiiMoteActivator (  )

Definition at line 24 of file mitkWiiMoteActivator.cpp.

: m_IsRegistered(false)
//, m_Controller(mitk::WiiMoteVtkCameraController::New())
{
}
mitk::WiiMoteActivator::~WiiMoteActivator (  )

Definition at line 30 of file mitkWiiMoteActivator.cpp.

{
}

Member Function Documentation

bool mitk::WiiMoteActivator::RegisterInputDevice (  )
See also:
mitk::IInputDevice::RegisterInputDevice()

Definition at line 34 of file mitkWiiMoteActivator.cpp.

{
  //if(!this->m_IsRegistered)
  //{
  //  mitk::WiiMoteAddOn::GetInstance()->ActivateWiiMotes();
  //  mitk::GlobalInteraction::GetInstance()->AddListener(m_Controller);
  //  mitk::EventMapper* eventMapper(mitk::GlobalInteraction::GetInstance()->GetEventMapper());
  //  if (eventMapper != NULL)
  //  {
  //    eventMapper->AddEventMapperAddOn(mitk::WiiMoteAddOn::GetInstance());
  //    this->m_IsRegistered = true;
  //  }
  //  else
  //  {
  //    MITK_ERROR << "Eventmapper is not initialized!";
  //    return false;
  //  }
  //}
  return true;
}
bool mitk::WiiMoteActivator::UnRegisterInputDevice (  ) [virtual]
See also:
mitk::IInputDevice::UnRegisterInputDevice()

Implements mitk::IInputDevice.

Definition at line 55 of file mitkWiiMoteActivator.cpp.

{
 /* if(this->m_IsRegistered)
  {
    mitk::WiiMoteAddOn::GetInstance()->DeactivateWiiMotes();
    mitk::GlobalInteraction::GetInstance()->RemoveListener(m_Controller);
    mitk::EventMapper* eventMapper(mitk::GlobalInteraction::GetInstance()->GetEventMapper());

    if(eventMapper != NULL)
    {
      eventMapper->RemoveEventMapperAddOn(mitk::WiiMoteAddOn::GetInstance());
      this->m_IsRegistered = false;
    }
    else
    {
      MITK_ERROR << "Eventmapper is not initialized!";
      return false;
    }
  }*/

  return true;
}

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines