C# Class Controls.Menu

Interaction logic for Menu.xaml
Inheritance: System.Windows.Controls.UserControl
Show file Open project: paigedr/swipenserve

Public Properties

Property Type Description
canswipe System.Boolean

Protected Properties

Property Type Description
lastLeftHandX double
lastLeftHandY double
makingLeftHandSwipe bool
startingLeftHandX double
startingLeftHandY double

Public Methods

Method Description
BoxGesture ( int X, int Y ) : void
DetectLeftHandSwipe ( Microsoft.Kinect.Skeleton first, AllFramesReadyEventArgs e ) : void
GetBox ( int X, int Y ) : System.Windows.Shapes.Rectangle
GetCameraPoint ( Microsoft.Kinect.Skeleton first, AllFramesReadyEventArgs e ) : void
Menu ( ) : System
kinectSensorChooser1_KinectSensorChanged ( object sender, System.Windows.DependencyPropertyChangedEventArgs e ) : void
sensor_AllFramesReady ( object sender, AllFramesReadyEventArgs e ) : void

Private Methods

Method Description
CameraPosition ( FrameworkElement element, ColorImagePoint point ) : void
GetFirstSkeleton ( AllFramesReadyEventArgs e ) : Microsoft.Kinect.Skeleton
InitializeComponent ( ) : void
ResetSwipe ( Object sender, EventArgs args ) : void
ScalePosition ( FrameworkElement element, Microsoft.Kinect.Joint joint ) : void
StopKinect ( Microsoft.Kinect.KinectSensor sensor ) : void
System ( int connectionId, object target ) : void
UserControl_Loaded ( object sender, RoutedEventArgs e ) : void
Window_Closing ( object sender, System e ) : void
addNewItem ( ) : void
addToOrder ( ) : void
check ( System.Windows.Shapes.Rectangle element, Point point ) : bool
clearAmountCol ( ) : void
clearOptionsCol ( ) : void
clearOrderSelections ( ) : void
clearSizeCol ( ) : void
currentItem ( ) : Food
down_Click ( object sender, RoutedEventArgs e ) : void
formatOrderItem ( Food item ) : String
handleOrderLeftClick ( ) : void
handleOrderRightClick ( ) : void
hideOrderOptions ( ) : void
left_Click ( object sender, RoutedEventArgs e ) : void
right_Click ( object sender, RoutedEventArgs e ) : void
selectAmountCol ( bool fromLeft ) : void
selectCatCol ( bool fromLeft ) : void
selectItemCol ( bool fromLeft ) : void
selectOptionsCol ( bool fromLeft ) : void
selectOrderCol ( ) : void
selectSizeCol ( bool fromLeft ) : void
showSelectedOrderItem ( ) : void
unhideOrderOptions ( ) : void
up_Click ( object sender, RoutedEventArgs e ) : void
updatePrice ( ) : void
updateTotalPrice ( ) : void
updownAmount ( bool up ) : void
updownCategory ( bool up ) : void
updownItem ( bool up ) : void
updownOptions ( bool up ) : void
updownOrderCol ( bool up ) : void
updownSize ( bool up ) : void

Method Details

BoxGesture() public method

public BoxGesture ( int X, int Y ) : void
X int
Y int
return void

DetectLeftHandSwipe() public method

public DetectLeftHandSwipe ( Microsoft.Kinect.Skeleton first, AllFramesReadyEventArgs e ) : void
first Microsoft.Kinect.Skeleton
e AllFramesReadyEventArgs
return void

GetBox() public method

public GetBox ( int X, int Y ) : System.Windows.Shapes.Rectangle
X int
Y int
return System.Windows.Shapes.Rectangle

GetCameraPoint() public method

public GetCameraPoint ( Microsoft.Kinect.Skeleton first, AllFramesReadyEventArgs e ) : void
first Microsoft.Kinect.Skeleton
e AllFramesReadyEventArgs
return void

Menu() public method

public Menu ( ) : System
return System

kinectSensorChooser1_KinectSensorChanged() public method

public kinectSensorChooser1_KinectSensorChanged ( object sender, System.Windows.DependencyPropertyChangedEventArgs e ) : void
sender object
e System.Windows.DependencyPropertyChangedEventArgs
return void

sensor_AllFramesReady() public method

public sensor_AllFramesReady ( object sender, AllFramesReadyEventArgs e ) : void
sender object
e AllFramesReadyEventArgs
return void

Property Details

canswipe public property

public Boolean,System canswipe
return System.Boolean

lastLeftHandX protected property

protected double lastLeftHandX
return double

lastLeftHandY protected property

protected double lastLeftHandY
return double

makingLeftHandSwipe protected property

protected bool makingLeftHandSwipe
return bool

startingLeftHandX protected property

protected double startingLeftHandX
return double

startingLeftHandY protected property

protected double startingLeftHandY
return double