Beispiel #1
0
 public void initializeGlobals(SmoothOperator mainForm)
 {
     if (TheManager == null)
     {
         TheManager = new CameraManager();
     }
     if (globalCoordinates == null)
     {
         globalCoordinates = new SharedMemorySpace(mainForm, TheManager);
     }
     if (ThePainter == null)
     {
         ThePainter = new Painter(ref globalCoordinates);
     }
     if (TheArm == null)
     {
         TheArm = new OpenArms("172.31.1.147", 7000, ref globalCoordinates);
     }
     if (guiWorker == null)
     {
         guiStopwatch                  = new Stopwatch();
         guiWorker                     = new BackgroundWorker();
         guiWorker.DoWork             += guiWorker_DoWork;
         guiWorker.RunWorkerCompleted += guiWorker_RunWorkerCompleted;
         guiWorker.RunWorkerAsync();
     }
 }
Beispiel #2
0
 public Painter(ref SharedMemorySpace globalCoordinates)
 {
     _globalCoordinates = globalCoordinates;
     _tempSkeleton      = new Dictionary <JointType, Joint>();
     _globalCoordinates.MainForm.ImageStream.Paint += new PaintEventHandler(imageStream_Paint);
     tempRectange = new Rectangle(x, y, width, height);
     drawBrush    = new SolidBrush(System.Drawing.Color.Purple);
     myPen        = new System.Drawing.Pen(System.Drawing.Color.Red);
 }
Beispiel #3
0
 public OpenArms(string serverIP, int serverSocket, ref SharedMemorySpace globalCoordinates)
 {
     tunnelSystem = new ClientTunnel[10];
     //initializeClients(serverIP, serverSocket);
     _globalCoordinates = globalCoordinates;
     _serverIp          = serverIP;
     _serverSocket      = serverSocket;
     CurrentAxis        = new E6Axis();
     CurrentPos         = new E6Pos();
 }
Beispiel #4
0
 public void updateCurrentE6Pos(ref SharedMemorySpace globalCoordinates)
 {
     currentValue = formatE6Pos(xValue, yValue, zValue, aValue, bValue, cValue);
 }