C# Class SoD_Sensor.MainWindow

Interaction logic for MainWindow.xaml
Inheritance: System.Windows.Window
显示文件 Open project: ase-lab/SoD_Sensor_v2

Public Properties

Property Type Description
currentIDAssociation SODMessage
socket SocketIOClient.Client

Public Methods

Method Description
AcceptableNumInferredJoints ( Joint>.IReadOnlyDictionary joints ) : System.Boolean
AcceptableNumTrackedJoints ( Joint>.IReadOnlyDictionary joints ) : System.Boolean
GestureController_GestureRecognized ( object sender, LightBuzz e ) : void
MainWindow ( ) : LightBuzz.Vitruvius.Gestures
StatusSubmit_Click ( object sender, RoutedEventArgs e ) : void
SubscribeToRoutes ( Client socket ) : void
applyTranslateRule ( Point3D locationInMeters, TranslateRule translateRule ) : Point3D

Private Methods

Method Description
DepthReader_FrameArrived ( object sender, DepthFrameArrivedEventArgs e ) : void
InitializeKinect2 ( ) : void
Reader_FrameArrived ( object sender, BodyFrameArrivedEventArgs e ) : void

Handles the body frame data arriving from the sensor

ResetTranslateRule_Click ( object sender, RoutedEventArgs e ) : void
TellServerAboutSensor ( ) : bool
TestKinect2Availability ( ) : bool
Window_Loaded ( object sender, RoutedEventArgs e ) : void
cancelSelectTranslationbtn_Click ( object sender, RoutedEventArgs e ) : void
deleteTranslatebtn_Click ( object sender, RoutedEventArgs e ) : void
isValidInput ( ) : bool
loadCalibrationbtn_Click ( object sender, RoutedEventArgs e ) : void
refreshCalibrationHistory ( ) : void
saveTranslateRule_Click ( object sender, RoutedEventArgs e ) : void
selectTranslatebtn_Click ( object sender, RoutedEventArgs e ) : void
socket_Message ( object sender, SocketIOClient.MessageEventArgs e ) : void
updateTranslateRuleLabels ( ) : void

Method Details

AcceptableNumInferredJoints() public method

public AcceptableNumInferredJoints ( Joint>.IReadOnlyDictionary joints ) : System.Boolean
joints Joint>.IReadOnlyDictionary
return System.Boolean

AcceptableNumTrackedJoints() public method

public AcceptableNumTrackedJoints ( Joint>.IReadOnlyDictionary joints ) : System.Boolean
joints Joint>.IReadOnlyDictionary
return System.Boolean

GestureController_GestureRecognized() public method

public GestureController_GestureRecognized ( object sender, LightBuzz e ) : void
sender object
e LightBuzz
return void

MainWindow() public method

public MainWindow ( ) : LightBuzz.Vitruvius.Gestures
return LightBuzz.Vitruvius.Gestures

StatusSubmit_Click() public method

public StatusSubmit_Click ( object sender, RoutedEventArgs e ) : void
sender object
e System.Windows.RoutedEventArgs
return void

SubscribeToRoutes() public method

public SubscribeToRoutes ( Client socket ) : void
socket SocketIOClient.Client
return void

applyTranslateRule() public method

public applyTranslateRule ( Point3D locationInMeters, TranslateRule translateRule ) : Point3D
locationInMeters Point3D
translateRule TranslateRule
return Point3D

Property Details

currentIDAssociation public_oe property

public SODMessage currentIDAssociation
return SODMessage

socket public_oe static_oe property

public static Client,SocketIOClient socket
return SocketIOClient.Client