/// <summary>
 /// creates a HelloRequestObject based on the current configuration
 /// </summary>
 /// <param name="pInputConfig">the input config</param>
 /// <returns>the HelloRequestObject</returns>
 public static HelloRequestObject createHelloFromClientConfig(ClientConfigObject pInputConfig)
 {
     return(new HelloRequestObject
     {
         ownIP = pInputConfig.ownIP,
         ID = pInputConfig.ID,
         Name = pInputConfig.name
     });
 }
Esempio n. 2
0
 /// <summary>
 /// constructor; a ClientConfigObject is necessary
 /// </summary>
 /// <param name="pCco">the client config object</param>
 public KinectDataPackage(ClientConfigObject pCco)
 {
     usedConfig   = pCco;
     rawDepthData = new List <ushort[]>();
 }
Esempio n. 3
0
 /// <summary>
 /// gets fired when a SCAN request occured; ASYNC
 /// </summary>
 /// <param name="configObject">the config object which then will be used in the scan</param>
 void ClientDefinition_OnScanRequestEvent(Post_KNV_MessageClasses.ClientConfigObject configObject)
 {
     LogManager.writeLog("[Webservice] SCAN request recieved");
     ScanRequestEvent.BeginInvoke(configObject, null, null);
 }
Esempio n. 4
0
 /// <summary>
 /// gets fired when a CONFIG request occured
 /// </summary>
 /// <param name="pConfig">the config file</param>
 void ClientDefinition_OnConfigRequestEvent(Post_KNV_MessageClasses.ClientConfigObject pConfig)
 {
     _RegistrationService.recieveConfiguration(pConfig);
     //ConfigRequestEvent();
     LogManager.writeLog("[Webservice] Configuration recieved");
 }
Esempio n. 5
0
 /// <summary>
 /// starts a scan with the incoming ClientConfigObject
 /// </summary>
 /// <param name="clientConfigObject">the config object</param>
 public void StartScan(Post_KNV_MessageClasses.ClientConfigObject clientConfigObject)
 {
     _KinectDataCollector.initializeDataPackage(clientConfigObject);
 }