2019-07-06 22:17:26 +00:00
|
|
|
namespace VideoInput
|
|
|
|
{
|
|
|
|
public interface IKinectSensor
|
|
|
|
{
|
|
|
|
IInfraredCamera InfraredCamera { get; }
|
2019-07-07 07:39:46 +00:00
|
|
|
void Update();
|
2019-07-06 22:17:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public class KinectSensor : IKinectSensor
|
|
|
|
{
|
|
|
|
public IInfraredCamera InfraredCamera { get; }
|
|
|
|
|
|
|
|
public KinectSensor(IInfraredCamera infraredCamera)
|
|
|
|
{
|
|
|
|
InfraredCamera = infraredCamera;
|
|
|
|
}
|
|
|
|
|
2019-07-07 07:39:46 +00:00
|
|
|
public void Update()
|
|
|
|
{
|
|
|
|
InfraredCamera.Update();
|
|
|
|
}
|
2019-07-06 22:17:26 +00:00
|
|
|
}
|
|
|
|
}
|