示例#1
0
 public void CompleteImageData(eLeapImageType type,
                               eLeapImageFormat format,
                               UInt32 bpp, 
                               UInt32 width, 
                               UInt32 height,
                               Int64 timestamp,
                               Int64 frame_id,
                               float x_offset,
                               float y_offset,
                               float x_scale,
                               float y_scale,
                               DistortionData distortionData,
                               int distortion_size,
                               UInt64 distortion_matrix_version)
 {
     lock(locker){
         this.type = type;
         this.format = format;
         this.bpp = bpp;
         this.width = width;
         this.height = height;
         this.timestamp = timestamp;
         this.frame_id = frame_id;
         this.RayOffsetX = x_offset;
         this.RayOffsetY = y_offset;
         this.RayScaleX = x_scale;
         this.RayScaleY = y_offset;
         this.DistortionData = distortionData;
         this.DistortionSize = distortion_size;
         this.DistortionMatrixKey = distortion_matrix_version;
         isComplete = true;
     }
 }
示例#2
0
 public DistortionEventArgs(DistortionData distortion) : base(LeapEvent.EVENT_DISTORTION_CHANGE)
 {
   this.distortion = distortion;
 }