예제 #1
0
파일: MainForm.cs 프로젝트: tkram01/see3po
        public MainForm()
        {
            InitializeComponent();

            host = new CRobotHost(this);
            camera = new CWebcam(livePanel, null);
            camera.Initialize();
            camera.SetReady();
        }
예제 #2
0
파일: MainForm.cs 프로젝트: tkram01/see3po
        public MainForm()
        {
            InitializeComponent();

            host = new CRobotHost(this);
            camera = new CWebcam(livePanel, null, false);
            camera.Initialize();
            camera.SetReady();

            driveBackground = new Bitmap("driveBackground2.png");
            g = Graphics.FromHwnd(drivePanel.Handle);
        }
예제 #3
0
파일: MainForm.cs 프로젝트: tkram01/see3po
        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
파일: Host.cs 프로젝트: tkram01/see3po
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="ui">The user interface for this Host</param>
        public Host(UI ui)
        {
            m_UI = ui;                                  // The user interface

            m_RobotHost = new CRobotHost(this);         // The CRobotHost that will handle communication

            m_pixelsperfoot = 2.0;                      // This is the floorplan scale, and we may not need it

            loadSettings();
        }
예제 #5
0
파일: Host.cs 프로젝트: tkram01/see3po
 public Host()
 {
     host = new CRobotHost(this);
 }