Medical Imaging Interaction Toolkit  2018.4.99-6a3ea89d
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 30 of file mitkKinectController.h.

Constructor & Destructor Documentation

◆ KinectController()

mitk::KinectController::KinectController ( )
protected

Definition at line 67 of file mitkKinectController.cpp.

◆ ~KinectController()

mitk::KinectController::~KinectController ( )
protected

Definition at line 71 of file mitkKinectController.cpp.

Member Function Documentation

◆ Clone()

Pointer mitk::KinectController::Clone ( ) const

◆ CloseCameraConnection()

bool mitk::KinectController::CloseCameraConnection ( )
virtual

closes the connection to the camera

Definition at line 150 of file mitkKinectController.cpp.

◆ GetAllData()

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 194 of file mitkKinectController.cpp.

◆ GetAmplitudes()

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

Definition at line 234 of file mitkKinectController.cpp.

◆ GetCaptureHeight()

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

Definition at line 258 of file mitkKinectController.cpp.

◆ GetCaptureWidth()

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

Definition at line 253 of file mitkKinectController.cpp.

◆ GetDistances()

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 166 of file mitkKinectController.cpp.

◆ GetIntensities()

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

Definition at line 249 of file mitkKinectController.cpp.

◆ GetRgb()

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 178 of file mitkKinectController.cpp.

◆ GetUseIR()

bool mitk::KinectController::GetUseIR ( ) const

Definition at line 263 of file mitkKinectController.cpp.

◆ mitkClassMacroItkParent()

mitk::KinectController::mitkClassMacroItkParent ( KinectController  ,
itk::Object   
)

◆ New()

static Pointer mitk::KinectController::New ( )
static

◆ OpenCameraConnection()

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 76 of file mitkKinectController.cpp.

References MITK_ERROR.

◆ SetUseIR()

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

Definition at line 267 of file mitkKinectController.cpp.

◆ UpdateCamera()

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 156 of file mitkKinectController.cpp.


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