コード例 #1
0
 public Frame(long id, long timestamp, float fps, InteractionBox interactionBox)
 {
     _id            = id;
     _timestamp     = timestamp;
     _fps           = fps;
     _isValid       = true;
     _fingers       = new FingerList(15);
     _hands         = new HandList(3);
     _trackedQuad   = new TrackedQuad();
     InteractionBox = interactionBox;
 }
コード例 #2
0
 public TrackedQuad makeQuad(ref LEAP_TRACKED_QUAD_EVENT quadMsg)
 {
   TrackedQuad quad = new TrackedQuad(
     quadMsg.width,
     quadMsg.height,
     quadMsg.resolutionX,
     quadMsg.resolutionY,
     quadMsg.visible != 0,
     quadMsg.position.ToLeapVector(),
     quadMsg.orientation.ToLeapMatrix(),
     quadMsg.info.frame_id
   );
   return quad;
 }
コード例 #3
0
 /**
  * Compares quad objects for equality.
  * @since 2.2.6
  */
 public bool Equals(TrackedQuad other)
 {
     return(this == other);
 }
コード例 #4
0
ファイル: Events.cs プロジェクト: midgithub/MegaBookDome
 public TrackedQuadEventArgs(TrackedQuad quad) : base(LeapEvent.EVENT_TRACKED_QUAD)
 {
     trackedQuad = quad;
 }
コード例 #5
0
ファイル: Events.cs プロジェクト: CMPUT302-W2016/HCI-Gestures
 public TrackedQuadEventArgs(TrackedQuad quad) : base(LeapEvent.EVENT_TRACKED_QUAD)
 {
   trackedQuad = quad;
 }
コード例 #6
0
 /**
  * Compares quad objects for equality.
  * @since 2.2.6
  */
 public bool Equals(TrackedQuad other)
 {
   return this == other;
 }
コード例 #7
0
 /**
  * Constructs a Frame object.
  *
  * Frame instances created with this constructor are invalid.
  * Get valid Frame objects by calling the Controller::frame() function.
  *
  * \include Frame_Frame.txt
  *
  * The only time you should use this constructor is before deserializing
  * serialized frame data. Call ``Frame::deserialize(string)`` to recreate
  * a saved Frame.
  *
  * @since 1.0
  */
 public Frame()
 {
     _fingers     = new FingerList(15);
     _hands       = new HandList(3);
     _trackedQuad = new TrackedQuad();
 }