Пример #1
0
        /// <summary>
        /// Constructor
        /// </summary>
        public MainForm()
        {
            InitializeComponent();

            m_host = new See3PO.Host(this);                                            // Create a Host

            m_center = new Point(floorPlanPanel.Width / 2, floorPlanPanel.Height / 2); //find the center of the image

            m_fg = Graphics.FromHwnd(floorPlanPanel.Handle);                           // create a graphics object to draw on the floorplanpanel

            m_scale = 2.0;                                                             // default ppf

            m_callback          = new TimerCallback(DrawScale);                        // I have no idea why we do this, but
            t_DrawFloorDelegate = new DDrawFloor(DrawFloor);                           //it's necessary for the drawscale thread

            m_fpState = fpState.START;                                                 // Set the fpState to none, since nothing has been done
            Click_ConnectMenuItem(this, null);
        }
Пример #2
0
        public MainForm()
        {
            InitializeComponent();

            m_host = new CRobotHost(this);

            m_destImage = Image.FromFile("Images\\destImage.png");

            m_camera = new CWebcam(livePanel, null, false);
            m_camera.Initialize();
            m_camera.SetReady();

            m_center = new Point(floorPlanPanel.Width / 2, floorPlanPanel.Height / 2);

            m_fg = Graphics.FromHwnd(floorPlanPanel.Handle);

            m_pixelsperfoot = 2.0;

            m_callback = new TimerCallback(DrawScale);
            m_fpState = fpState.NONE;

            t_DrawFloorDelegate = new DDrawFloor(DrawFloor);
        }
Пример #3
0
        public MainForm()
        {
            InitializeComponent();

            m_host = new CRobotHost(this);

            m_destImage = Image.FromFile("Images\\destImage.png");

            m_camera = new CWebcam(livePanel, null, false);
            m_camera.Initialize();
            m_camera.SetReady();

            m_center = new Point(floorPlanPanel.Width / 2, floorPlanPanel.Height / 2);

            m_fg = Graphics.FromHwnd(floorPlanPanel.Handle);

            m_pixelsperfoot = 2.0;

            m_callback = new TimerCallback(DrawScale);
            m_fpState  = fpState.NONE;

            t_DrawFloorDelegate = new DDrawFloor(DrawFloor);
        }
Пример #4
0
        private Timer t_DrawTimer; // A timer for drawing the line when setting scale

        #endregion Fields

        #region Constructors

        /// <summary>
        /// Constructor
        /// </summary>
        public MainForm()
        {
            InitializeComponent();

            m_host = new See3PO.Host(this);                                     // Create a Host

            m_center = new Point(floorPlanPanel.Width / 2, floorPlanPanel.Height / 2); //find the center of the image

            m_fg = Graphics.FromHwnd(floorPlanPanel.Handle);                    // create a graphics object to draw on the floorplanpanel

            m_scale = 2.0;                                                      // default ppf

            m_callback = new TimerCallback(DrawScale);                          // I have no idea why we do this, but
            t_DrawFloorDelegate = new DDrawFloor(DrawFloor);                    //it's necessary for the drawscale thread

            m_fpState = fpState.START;                                           // Set the fpState to none, since nothing has been done
            Click_ConnectMenuItem(this, null);
        }