コード例 #1
0
        /// <summary>
        /// Constructor
        /// </summary>
        public RoadDisplay()
        {
            // create the display
            InitializeComponent();

            // make sure we're not in design mode
            if (!this.DesignMode)
            {
                // initialize the tranform before calling InitializeComponent so the OnResize method works properly
                transform = new WorldTransform();

                // set our style
                base.SetStyle(ControlStyles.UserPaint, true);
                base.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
                base.SetStyle(ControlStyles.Opaque, true);
                base.SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
                base.SetStyle(ControlStyles.ResizeRedraw, true);
                base.SetStyle(ControlStyles.Selectable, true);

                // new ai vehicle
                this.aiVehicle = new AiVehicle();

                // set new display objects
                this.Reset();
            }
        }
コード例 #2
0
        public PosteriorPose(AiVehicle vehicle)
        {
            InitializeComponent();

            this.vehicle = vehicle;
        }