Skip to content

Commit

Permalink
Clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
laporterie committed Nov 19, 2015
1 parent 0961a9d commit c40ed5b
Show file tree
Hide file tree
Showing 39 changed files with 38 additions and 968 deletions.
20 changes: 0 additions & 20 deletions Leap/Events/CircleGestureEventArgs.cs
Original file line number Diff line number Diff line change
@@ -1,24 +1,4 @@
// ****************************************************************************
// <copyright file="CircleGestureEventArgs.cs" company="IntuiLab">
// INTUILAB CONFIDENTIAL
//_____________________
// [2002] - [2015] IntuiLab SA
// All Rights Reserved.
// NOTICE: All information contained herein is, and remains
// the property of IntuiLab SA. The intellectual and technical
// concepts contained herein are proprietary to IntuiLab SA
// and may be covered by U.S. and other country Patents, patents
// in process, and are protected by trade secret or copyright law.
// Dissemination of this information or reproduction of this
// material is strictly forbidden unless prior written permission
// is obtained from IntuiLab SA.
// </copyright>
// ****************************************************************************

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace IntuiLab.Leap.Events
{
Expand Down
20 changes: 0 additions & 20 deletions Leap/Events/FingerPresentEventArgs.cs
Original file line number Diff line number Diff line change
@@ -1,24 +1,4 @@
// ****************************************************************************
// <copyright file="FingerPresentEventArgs.cs" company="IntuiLab">
// INTUILAB CONFIDENTIAL
//_____________________
// [2002] - [2015] IntuiLab SA
// All Rights Reserved.
// NOTICE: All information contained herein is, and remains
// the property of IntuiLab SA. The intellectual and technical
// concepts contained herein are proprietary to IntuiLab SA
// and may be covered by U.S. and other country Patents, patents
// in process, and are protected by trade secret or copyright law.
// Dissemination of this information or reproduction of this
// material is strictly forbidden unless prior written permission
// is obtained from IntuiLab SA.
// </copyright>
// ****************************************************************************

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace IntuiLab.Leap.Events
{
Expand Down
20 changes: 0 additions & 20 deletions Leap/Events/FingerRemovedEventArgs.cs
Original file line number Diff line number Diff line change
@@ -1,24 +1,4 @@
// ****************************************************************************
// <copyright file="FingerRemovedEventArgs.cs" company="IntuiLab">
// INTUILAB CONFIDENTIAL
//_____________________
// [2002] - [2015] IntuiLab SA
// All Rights Reserved.
// NOTICE: All information contained herein is, and remains
// the property of IntuiLab SA. The intellectual and technical
// concepts contained herein are proprietary to IntuiLab SA
// and may be covered by U.S. and other country Patents, patents
// in process, and are protected by trade secret or copyright law.
// Dissemination of this information or reproduction of this
// material is strictly forbidden unless prior written permission
// is obtained from IntuiLab SA.
// </copyright>
// ****************************************************************************

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace IntuiLab.Leap.Events
{
Expand Down
20 changes: 0 additions & 20 deletions Leap/Events/HandEventArgs.cs
Original file line number Diff line number Diff line change
@@ -1,24 +1,4 @@
// ****************************************************************************
// <copyright file="HandEventArgs.cs" company="IntuiLab">
// INTUILAB CONFIDENTIAL
//_____________________
// [2002] - [2015] IntuiLab SA
// All Rights Reserved.
// NOTICE: All information contained herein is, and remains
// the property of IntuiLab SA. The intellectual and technical
// concepts contained herein are proprietary to IntuiLab SA
// and may be covered by U.S. and other country Patents, patents
// in process, and are protected by trade secret or copyright law.
// Dissemination of this information or reproduction of this
// material is strictly forbidden unless prior written permission
// is obtained from IntuiLab SA.
// </copyright>
// ****************************************************************************

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace IntuiLab.Leap.Events
{
Expand Down
22 changes: 1 addition & 21 deletions Leap/Events/LinearGestureEventArgs.cs
Original file line number Diff line number Diff line change
@@ -1,25 +1,5 @@
// ****************************************************************************
// <copyright file="LinearGestureEventArgs.cs" company="IntuiLab">
// INTUILAB CONFIDENTIAL
//_____________________
// [2002] - [2015] IntuiLab SA
// All Rights Reserved.
// NOTICE: All information contained herein is, and remains
// the property of IntuiLab SA. The intellectual and technical
// concepts contained herein are proprietary to IntuiLab SA
// and may be covered by U.S. and other country Patents, patents
// in process, and are protected by trade secret or copyright law.
// Dissemination of this information or reproduction of this
// material is strictly forbidden unless prior written permission
// is obtained from IntuiLab SA.
// </copyright>
// ****************************************************************************

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Leap;
using System;

namespace IntuiLab.Leap.Events
{
Expand Down
20 changes: 0 additions & 20 deletions Leap/Events/PostureEventArgs.cs
Original file line number Diff line number Diff line change
@@ -1,24 +1,4 @@
// ****************************************************************************
// <copyright file="PostureEventArgs.cs" company="IntuiLab">
// INTUILAB CONFIDENTIAL
//_____________________
// [2002] - [2015] IntuiLab SA
// All Rights Reserved.
// NOTICE: All information contained herein is, and remains
// the property of IntuiLab SA. The intellectual and technical
// concepts contained herein are proprietary to IntuiLab SA
// and may be covered by U.S. and other country Patents, patents
// in process, and are protected by trade secret or copyright law.
// Dissemination of this information or reproduction of this
// material is strictly forbidden unless prior written permission
// is obtained from IntuiLab SA.
// </copyright>
// ****************************************************************************

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace IntuiLab.Leap.Events
{
Expand Down
20 changes: 0 additions & 20 deletions Leap/Events/TouchEventArgs.cs
Original file line number Diff line number Diff line change
@@ -1,24 +1,4 @@
// ****************************************************************************
// <copyright file="TouchEventArgs.cs" company="IntuiLab">
// INTUILAB CONFIDENTIAL
//_____________________
// [2002] - [2015] IntuiLab SA
// All Rights Reserved.
// NOTICE: All information contained herein is, and remains
// the property of IntuiLab SA. The intellectual and technical
// concepts contained herein are proprietary to IntuiLab SA
// and may be covered by U.S. and other country Patents, patents
// in process, and are protected by trade secret or copyright law.
// Dissemination of this information or reproduction of this
// material is strictly forbidden unless prior written permission
// is obtained from IntuiLab SA.
// </copyright>
// ****************************************************************************

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace IntuiLab.Leap.Events
{
Expand Down
20 changes: 0 additions & 20 deletions Leap/Exceptions/LeapException.cs
Original file line number Diff line number Diff line change
@@ -1,24 +1,4 @@
// ****************************************************************************
// <copyright file="LeapException.cs" company="IntuiLab">
// INTUILAB CONFIDENTIAL
//_____________________
// [2002] - [2015] IntuiLab SA
// All Rights Reserved.
// NOTICE: All information contained herein is, and remains
// the property of IntuiLab SA. The intellectual and technical
// concepts contained herein are proprietary to IntuiLab SA
// and may be covered by U.S. and other country Patents, patents
// in process, and are protected by trade secret or copyright law.
// Dissemination of this information or reproduction of this
// material is strictly forbidden unless prior written permission
// is obtained from IntuiLab SA.
// </copyright>
// ****************************************************************************

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace IntuiLab.Leap.Exceptions
{
Expand Down
26 changes: 2 additions & 24 deletions Leap/Facades/GestureFacade.cs
Original file line number Diff line number Diff line change
@@ -1,29 +1,7 @@
// ****************************************************************************
// <copyright file="GestureFacade.cs" company="IntuiLab">
// INTUILAB CONFIDENTIAL
//_____________________
// [2002] - [2015] IntuiLab SA
// All Rights Reserved.
// NOTICE: All information contained herein is, and remains
// the property of IntuiLab SA. The intellectual and technical
// concepts contained herein are proprietary to IntuiLab SA
// and may be covered by U.S. and other country Patents, patents
// in process, and are protected by trade secret or copyright law.
// Dissemination of this information or reproduction of this
// material is strictly forbidden unless prior written permission
// is obtained from IntuiLab SA.
// </copyright>
// ****************************************************************************

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IntuiLab.Leap.Events;
using IntuiLab.Leap.Recognition.Gestures;
using System;
using System.ComponentModel;
using IntuiLab.Leap.Events;
using IntuiLab.Leap.Exceptions;
using Leap;

namespace IntuiLab.Leap
{
Expand Down
103 changes: 2 additions & 101 deletions Leap/Facades/HandFacade.cs
Original file line number Diff line number Diff line change
@@ -1,28 +1,5 @@
// ****************************************************************************
// <copyright file="HandFacade.cs" company="IntuiLab">
// INTUILAB CONFIDENTIAL
//_____________________
// [2002] - [2015] IntuiLab SA
// All Rights Reserved.
// NOTICE: All information contained herein is, and remains
// the property of IntuiLab SA. The intellectual and technical
// concepts contained herein are proprietary to IntuiLab SA
// and may be covered by U.S. and other country Patents, patents
// in process, and are protected by trade secret or copyright law.
// Dissemination of this information or reproduction of this
// material is strictly forbidden unless prior written permission
// is obtained from IntuiLab SA.
// </copyright>
// ****************************************************************************

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IntuiLab.Leap.Recognition.Gestures;
using IntuiLab.Leap.Recognition.Postures;
using IntuiLab.Leap.Events;
using IntuiLab.Leap.Exceptions;
using System;
using System.ComponentModel;

namespace IntuiLab.Leap
Expand All @@ -44,7 +21,7 @@ internal void NotifyPropertyChanged(String strInfo)
}
}


#region Enable Properties

///// <summary>
Expand Down Expand Up @@ -115,12 +92,6 @@ internal void NotifyPropertyChanged(String strInfo)
public event HandEventHandler HandPresent;
public event HandEventHandler HandRemoved;

//public event FingerPresentEventHandler FingerAppears;
//public event FingerPresentEventHandler FingerMoves;
//public event FingerRemovedEventHandler FingerRemoved;
//public event TouchEventHandler TouchDown;
//public event TouchEventHandler TouchUp;

private void RaiseHandPresentEvent(HandEventArgs e)
{
if (HandPresent != null)
Expand All @@ -133,50 +104,6 @@ private void RaiseHandRemovedEvent(HandEventArgs e)
HandRemoved(this, e);
}


//private void RaiseFingerAppearsEvent(int xOnScreen, int yOnScreen)
//{
// if (FingerAppears != null)
// {
// XFingerOnScreen = xOnScreen;
// YFingerOnScreen = yOnScreen;
// FingerAppears(this, new FingerPresentEventArgs(xOnScreen, yOnScreen));
// }
//}

//private void RaiseFingerMovesEvent(int xOnScreen, int yOnScreen)
//{
// if (FingerMoves != null)
// {
// XFingerOnScreen = xOnScreen;
// YFingerOnScreen = yOnScreen;
// FingerMoves(this, new FingerPresentEventArgs(xOnScreen, yOnScreen));
// }
//}

//private void RaiseFingerRemovedEvent()
//{
// if (FingerRemoved != null)
// {
// XFingerOnScreen = 0;
// YFingerOnScreen = 0;
// FingerRemoved(this, new FingerRemovedEventArgs());
// }
//}

//private void RaiseTouchDown(TouchEventArgs e)
//{
// if (TouchDown != null)
// TouchDown(this, e);
//}

//private void RaiseTouchUp(TouchEventArgs e)
//{
// if (TouchUp != null)
// TouchUp(this, e);
//}


private void OnHandPresent(object sender, HandEventArgs e)
{
RaiseHandPresentEvent(e);
Expand All @@ -187,31 +114,6 @@ private void OnHandRemoved(object sender, HandEventArgs e)
RaiseHandRemovedEvent(e);
}

//private void OnFingerAppears(object sender, FingerPresentEventArgs e)
//{
// RaiseFingerAppearsEvent(e.XOnScreen, e.YOnScreen);
//}

//private void OnFingerMoves(object sender, FingerPresentEventArgs e)
//{
// RaiseFingerMovesEvent(e.XOnScreen, e.YOnScreen);
//}

//private void OnFingerRemoved(object sender, FingerRemovedEventArgs e)
//{
// RaiseFingerRemovedEvent();
//}

//private void OnTouchDown(object sender, TouchEventArgs e)
//{
// RaiseTouchDown(e);
//}

//private void OnTouchUp(object sender, TouchEventArgs e)
//{
// RaiseTouchUp(e);
//}

#endregion

#region Constructor
Expand Down Expand Up @@ -257,5 +159,4 @@ public void Dispose()
Unsubscribe();
}
}

}
Loading

0 comments on commit c40ed5b

Please sign in to comment.