Ejemplo n.º 1
0
        private void VisualizeCoordinateSystem(List <Point3D> currentOrientation, bool ToErasePrevious)
        {
            if (DrawPolylines != null)
            {
                Color[] coordColors = new Color[3];
                coordColors[0] = Color.Red;
                coordColors[1] = Color.Green;
                coordColors[2] = Color.Blue;

                List <List <Point3D> > axises = new List <List <Point3D> >();
                for (int i = 1; i <= 3; i++)
                {
                    List <Point3D> axis = new List <Point3D>();
                    axis.Add(currentOrientation[0]);
                    axis.Add(currentOrientation[i]);
                    axises.Add(axis);
                }

                for (int i = 0; i < axises.Count; i++)
                {
                    DrawPolylineEventArgs e =
                        new DrawPolylineEventArgs(
                            axises[i], ToErasePrevious, coordColors[i]);
                    DrawPolylines(this, e);
                    ToErasePrevious = false;
                }
            }
        }
Ejemplo n.º 2
0
        //private void cameraDetector_DrawTest(object sender, DrawPolylineEventArgs e)
        //{
        //    acadManager.DrawPolylines(e.ViewPoint, e.ShouldDeletePrevious, e.PolylineColor);
        //}

        //private void cameraDetector_DrawViewPoint(object sender, DrawPolylineEventArgs e)
        //{
        //    acadManager.DrawPolylines(e.ViewPoint,
        //        e.ShouldDeletePrevious,
        //        Color.FromArgb(255, 255, 255));
        //}

        private void cameraDetector_DrawPolylines(object sender, DrawPolylineEventArgs e)
        {
            acadManager.DrawPolylines(e.Polyline, e.ShouldFlush, e.PolylineColor);
        }