|
|
@ -22,6 +22,7 @@ namespace KinectSensorStreams.ViewModel
|
|
|
|
public ICommand BodyCommand { get; set; }
|
|
|
|
public ICommand BodyCommand { get; set; }
|
|
|
|
public ICommand IRCommand { get; set; }
|
|
|
|
public ICommand IRCommand { get; set; }
|
|
|
|
public ICommand DepthCommand { get; set; }
|
|
|
|
public ICommand DepthCommand { get; set; }
|
|
|
|
|
|
|
|
public ICommand BodyColorCommand { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// Propriété liée à l'objet KinectManager
|
|
|
|
/// Propriété liée à l'objet KinectManager
|
|
|
@ -44,6 +45,15 @@ namespace KinectSensorStreams.ViewModel
|
|
|
|
set { SetProperty(ref kinectStream, value); }
|
|
|
|
set { SetProperty(ref kinectStream, value); }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
/// The Secondary Kinect stream property.
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
public KinectStream KinectStream2
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
get { return kinectStream; }
|
|
|
|
|
|
|
|
set { SetProperty(ref kinectStream, value); }
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
#region Constructor
|
|
|
|
#region Constructor
|
|
|
@ -65,6 +75,7 @@ namespace KinectSensorStreams.ViewModel
|
|
|
|
BodyCommand = new RelayCommand(Body);
|
|
|
|
BodyCommand = new RelayCommand(Body);
|
|
|
|
IRCommand = new RelayCommand(IR);
|
|
|
|
IRCommand = new RelayCommand(IR);
|
|
|
|
DepthCommand = new RelayCommand(Depth);
|
|
|
|
DepthCommand = new RelayCommand(Depth);
|
|
|
|
|
|
|
|
BodyColorCommand = new RelayCommand(BodyColor);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
#endregion
|
|
|
@ -124,6 +135,19 @@ namespace KinectSensorStreams.ViewModel
|
|
|
|
KinectStream.Start();
|
|
|
|
KinectStream.Start();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void BodyColor()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (KinectStream != null ||KinectStream2 != null)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
KinectStream.Stop();
|
|
|
|
|
|
|
|
KinectStream2.Stop();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
KinectStream = KinectStreamsFactory[KinectStreams.Color];
|
|
|
|
|
|
|
|
KinectStream.Start();
|
|
|
|
|
|
|
|
KinectStream2 = KinectStreamsFactory[KinectStreams.Body];
|
|
|
|
|
|
|
|
KinectStream2.Start();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
#endregion
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|