C# Class XNAGraphics.KinectBundle.Kinect

Mostrar archivo Open project: joseruizjimenez/personal-training-martial-arts Class Usage Examples

Public Properties

Property Type Description
kinectRGBVideo Microsoft.Xna.Framework.Graphics.Texture2D
kinectSensor Microsoft.Kinect.KinectSensor
lastFrame Microsoft.Xna.Framework.Graphics.Texture2D
locked System.Boolean
skeleton Microsoft.Kinect.Skeleton
skeletonOutOfRange System.Boolean

Public Methods

Method Description
Kinect ( ) : System
KinectSensors_StatusChanged ( object sender, StatusChangedEventArgs e ) : void

Detecta cuando se conecta o desconecta un sensor kinect. Lanza una busqueda si es necesario. Se emplea un eventHandler para lanzar la actualizacion, que se dirige con StatusChangedEventArgs

initialize ( ) : void
kinectSensor_ColorFrameReady ( object sender, Microsoft.Kinect.ColorImageFrameReadyEventArgs e ) : void

Actualiza los datos recibidos de la camara sobre nuestro kinectRGBVideo

kinectSensor_SkeletonFrameReady ( object sender, Microsoft.Kinect.SkeletonFrameReadyEventArgs e ) : void

Actualiza la posicion del esqueleto sobre nuestro vector

load ( Microsoft.Xna.Framework.Game game ) : void
unload ( ) : void

Private Methods

Method Description
DiscoverKinectSensor ( ) : void

Localiza nuevos dispositivos Kinect y lo asocia con nuestro kinectSensor

InitializeKinect ( ) : bool

Activamos y configuramos la camara RGB y la deteccion del esqueleto en el Kinect

Method Details

Kinect() public method

public Kinect ( ) : System
return System

KinectSensors_StatusChanged() public method

Detecta cuando se conecta o desconecta un sensor kinect. Lanza una busqueda si es necesario. Se emplea un eventHandler para lanzar la actualizacion, que se dirige con StatusChangedEventArgs
public KinectSensors_StatusChanged ( object sender, StatusChangedEventArgs e ) : void
sender object
e StatusChangedEventArgs
return void

initialize() public method

public initialize ( ) : void
return void

kinectSensor_ColorFrameReady() public method

Actualiza los datos recibidos de la camara sobre nuestro kinectRGBVideo
public kinectSensor_ColorFrameReady ( object sender, Microsoft.Kinect.ColorImageFrameReadyEventArgs e ) : void
sender object
e Microsoft.Kinect.ColorImageFrameReadyEventArgs
return void

kinectSensor_SkeletonFrameReady() public method

Actualiza la posicion del esqueleto sobre nuestro vector
public kinectSensor_SkeletonFrameReady ( object sender, Microsoft.Kinect.SkeletonFrameReadyEventArgs e ) : void
sender object
e Microsoft.Kinect.SkeletonFrameReadyEventArgs
return void

load() public method

public load ( Microsoft.Xna.Framework.Game game ) : void
game Microsoft.Xna.Framework.Game
return void

unload() public method

public unload ( ) : void
return void

Property Details

kinectRGBVideo public_oe property

public Texture2D,Microsoft.Xna.Framework.Graphics kinectRGBVideo
return Microsoft.Xna.Framework.Graphics.Texture2D

kinectSensor public_oe property

public KinectSensor,Microsoft.Kinect kinectSensor
return Microsoft.Kinect.KinectSensor

lastFrame public_oe property

public Texture2D,Microsoft.Xna.Framework.Graphics lastFrame
return Microsoft.Xna.Framework.Graphics.Texture2D

locked public_oe property

public Boolean,System locked
return System.Boolean

skeleton public_oe property

public Skeleton,Microsoft.Kinect skeleton
return Microsoft.Kinect.Skeleton

skeletonOutOfRange public_oe property

public Boolean,System skeletonOutOfRange
return System.Boolean