示例#1
0
 /// <summary>
 /// Initializes a new instance of the SkeletonStreamRenderer class.
 /// </summary>
 /// <param name="game">The related game object.</param>
 /// <param name="map">The method used to map the SkeletonPoint to the target space.</param>
 public SkeletonStreamRenderer(Game game, SkeletonPointMap map)
     : base(game)
 {
     player1Coords.X = 0;
     player1Coords.Y = 0;
     this.mapMethod  = map;
 }
示例#2
0
 public LiveElements(PlayerImageRenderer playerImageRenderer, Microsoft.Kinect.Skeleton skeleton, SkeletonPointMap mapMethod, int playerID)
 {
     this.playerImageRenderer = playerImageRenderer;
     this.skeleton = skeleton;
     this.mapMethod = mapMethod;
     this.playerID = playerID;
 }
 /// <summary>
 /// Initializes a new instance of the SkeletonStreamRenderer class.
 /// </summary>
 /// <param name="game">The related game object.</param>
 /// <param name="map">The method used to map the SkeletonPoint to the target space.</param>
 public SkeletonStreamRenderer(Game game, SkeletonPointMap map)
     : base(game)
 {
     this.mapMethod = map;
     if (this.Chooser.LastStatus == KinectStatus.Connected)
     {
         this.Chooser.Sensor.SkeletonFrameReady += new EventHandler<SkeletonFrameReadyEventArgs>(Sensor_SkeletonFrameReady);
     }
 }
 /// <summary>
 /// Initializes a new instance of the SkeletonStreamRenderer class.
 /// </summary>
 /// <param name="game">The related game object.</param>
 /// <param name="map">The method used to map the SkeletonPoint to the target space.</param>
 public SkeletonStreamRenderer(Game game, SkeletonPointMap map)
     : base(game)
 {
     this.mapMethod = map;
     this.initialized = false;
 }
示例#5
0
 /// <summary>
 /// Initializes a new instance of the SkeletonStreamRenderer class.
 /// </summary>
 /// <param name="game">The related game object.</param>
 /// <param name="map">The method used to map the SkeletonPoint to the target space.</param>
 public SkeletonStreamRenderer(NeatGame game, SkeletonPointMap map)
     : base(game)
 {
     this.mapMethod = map;
 }
 /// <summary>
 /// Initializes a new instance of the SkeletonStreamRenderer class.
 /// </summary>
 /// <param name="game">The related game object.</param>
 /// <param name="map">The method used to map the SkeletonPoint to the target space.</param>
 public SkeletonStreamRenderer(Game game, SkeletonPointMap map)
     : base(game)
 {
     this.mapMethod = map;
 }
示例#7
0
 /// <summary>
 /// Initializes a new instance of the CartoonRenderer class.
 /// </summary>
 /// <param name="game">The related game object.</param>
 /// <param name="map">The method used to map the SkeletonPoint to the target space.</param>
 public CartoonElements(Game game, SkeletonPointMap map, PlayerImageRenderer pir)
     : base(game)
 {
     this.mapMethod = map;
     this.playerImageRenderer = pir;
 }
 /// <summary>
 /// Initializes a new instance of the SkeletonStreamRenderer class.
 /// </summary>
 /// <param name="game">The related game object.</param>
 /// <param name="map">The method used to map the SkeletonPoint to the target space.</param>
 public SkeletonStreamRenderer(Game game, SkeletonPointMap map)
     : base(game)
 {
     this.mapMethod   = map;
     this.initialized = false;
 }
 /// <summary>
 /// Initializes a new instance of the SkeletonStreamRenderer class.
 /// </summary>
 /// <param name="game">The related game object passed in by the color and depth stream renderers.</param>
 /// <param name="map">The method used to map the SkeletonPoint to the target space.</param>
 public SkeletonStreamRenderer(Game game, SkeletonPointMap map)
     : base(game)
 {
     this.mapMethod = map;
     this.RecordingManager.SkeletonEventListener.Add(Replay_SkeletonFrameReady);
 }