Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitk::KinectController Class Reference

Interface to the Kinect camera. More...

#include <mitkKinectController.h>

Inheritance diagram for mitk::KinectController:
Collaboration diagram for mitk::KinectController:

Public Member Functions

 mitkClassMacroItkParent (KinectController, itk::Object)
 
Pointer Clone () const
 
unsigned int GetCaptureWidth () const
 
unsigned int GetCaptureHeight () const
 
bool GetUseIR () const
 
void SetUseIR (bool useIR)
 
virtual bool OpenCameraConnection ()
 opens a connection to the Kinect camera. More...
 
virtual bool CloseCameraConnection ()
 closes the connection to the camera More...
 
virtual bool UpdateCamera ()
 updates the camera. The update function of the hardware interface is called only when new data is available More...
 
void GetDistances (float *distances)
 acquire new distance data from the Kinect camera More...
 
void GetAmplitudes (float *amplitudes)
 
void GetIntensities (float *intensities)
 
void GetRgb (unsigned char *rgb)
 acquire new rgb data from the Kinect camera More...
 
void GetAllData (float *distances, float *amplitudes, unsigned char *rgb)
 convenience method for faster access to distance and rgb data More...
 

Static Public Member Functions

static Pointer New ()
 

Protected Member Functions

 KinectController ()
 
 ~KinectController ()
 

Detailed Description

Interface to the Kinect camera.

Definition at line 34 of file mitkKinectController.h.

Constructor & Destructor Documentation

mitk::KinectController::KinectController ( )
protected

Definition at line 71 of file mitkKinectController.cpp.

mitk::KinectController::~KinectController ( )
protected

Definition at line 75 of file mitkKinectController.cpp.

Member Function Documentation

Pointer mitk::KinectController::Clone ( ) const
bool mitk::KinectController::CloseCameraConnection ( )
virtual

closes the connection to the camera

Definition at line 154 of file mitkKinectController.cpp.

void mitk::KinectController::GetAllData ( float *  distances,
float *  amplitudes,
unsigned char *  rgb 
)

convenience method for faster access to distance and rgb data

Parameters
distancespointer to memory location where distances should be stored
rgbpointer to memory location where rgb information should be stored

Definition at line 198 of file mitkKinectController.cpp.

void mitk::KinectController::GetAmplitudes ( float *  amplitudes)

Definition at line 238 of file mitkKinectController.cpp.

unsigned int mitk::KinectController::GetCaptureHeight ( ) const

Definition at line 262 of file mitkKinectController.cpp.

unsigned int mitk::KinectController::GetCaptureWidth ( ) const

Definition at line 257 of file mitkKinectController.cpp.

void mitk::KinectController::GetDistances ( float *  distances)

acquire new distance data from the Kinect camera

Parameters
distancespointer to memory location where distances should be stored

Definition at line 170 of file mitkKinectController.cpp.

void mitk::KinectController::GetIntensities ( float *  intensities)

Definition at line 253 of file mitkKinectController.cpp.

void mitk::KinectController::GetRgb ( unsigned char *  rgb)

acquire new rgb data from the Kinect camera

Parameters
rgbpointer to memory location where rgb information should be stored

Definition at line 182 of file mitkKinectController.cpp.

bool mitk::KinectController::GetUseIR ( ) const

Definition at line 267 of file mitkKinectController.cpp.

mitk::KinectController::mitkClassMacroItkParent ( KinectController  ,
itk::Object   
)
static Pointer mitk::KinectController::New ( )
static
bool mitk::KinectController::OpenCameraConnection ( )
virtual

opens a connection to the Kinect camera.

Exceptions
mitkExceptionIn case of no connection, an exception is thrown!

Definition at line 80 of file mitkKinectController.cpp.

References MITK_ERROR.

void mitk::KinectController::SetUseIR ( bool  useIR)

Definition at line 271 of file mitkKinectController.cpp.

bool mitk::KinectController::UpdateCamera ( )
virtual

updates the camera. The update function of the hardware interface is called only when new data is available

Exceptions
mitkExceptionIn case of no connection, an exception is thrown!

Definition at line 160 of file mitkKinectController.cpp.


The documentation for this class was generated from the following files: