public KinectColorViewer(GUI g)
 {
     InitializeComponent();
     gui = g;
 }
        public KinectManager(GUI p, OmicronServer o)
        {
            kinectTable = new Hashtable();
                newElevationKinectSensorList = new ArrayList();

                //kinectColorViewer = new KinectColorViewer(p);
                kinectDepthViewer = new KinectDepthViewer(p);

                //KinectSkeletonViewerOnDepth = new KinectSkeletonViewer(p);
                //KinectSkeletonViewerOnDepth.ShowBones = true;
                //KinectSkeletonViewerOnDepth.ShowJoints = true;
                //KinectSkeletonViewerOnDepth.ShowCenter = true;
                //KinectSkeletonViewerOnDepth.ImageType = ImageType.Depth;

                //ShowBones="true" ShowJoints="true" ShowCenter="true" ImageType="Depth"
                server = o;
                gui = p;
                KinectStart();

                // Create a timer with a ten second interval.
                elevationTimer = new Timer(10000);

                // Hook up the Elapsed event for the timer.
                elevationTimer.Elapsed += new ElapsedEventHandler(OnTimedEvent);

                elevationTimer.Interval = timerIncrement;
                elevationTimer.Enabled = true;
        }
        public TouchManager(GUI g, OmicronServer o)
        {
            touchID = new int[maxTouches];
            IDsHeld = new ArrayList();
            ID_x = new float[maxTouches];
            ID_y = new float[maxTouches];
            ID_xW = new float[maxTouches];
            ID_yW = new float[maxTouches];
            omegaDesk = o;

            for (int i = 0; i < maxTouches; i++)
            {
                touchID[i] = 0;
                ID_x[i] = 0;
                ID_y[i] = 0;
            }

            // Initialize to check if DLL is present
            try
            {
                // initialize
                InitFuncOnTG();

                // set the functions on receive
                SetFuncsOnReceiveProc();

                disabled = false;
            }
            catch (Exception ex)
            {
                Console.WriteLine("TouchManager: Initialization exception: {0}", ex.Message);
                Console.WriteLine("TouchManager: Disabling touch");
                disabled = true;
            }
        }
        public OmicronServer(GUI p)
        {
            parent = p;
            clientLock = new Semaphore(1, 1);
            holdLock = new Semaphore(1, 1);

            clients = new List<Client>();
            doneClients = new List<Client>();
        }
 public KinectDepthViewer(GUI g)
 {
     InitializeComponent();
     gui = g;
 }