Ejemplo n.º 1
0
 /// <summary>
 /// Overrides <see cref="CADability.GeoObject.IGeoObjectImpl.PaintTo3D (IPaintTo3D)"/>
 /// </summary>
 /// <param name="paintTo3D"></param>
 public override void PaintTo3D(IPaintTo3D paintTo3D)
 {
     if (OnPaintTo3D != null && OnPaintTo3D(this, paintTo3D))
     {
         return;
     }
     if (!paintTo3D.SelectMode)
     {
         if (colorDef != null)
         {
             paintTo3D.SetColor(colorDef.Color);
         }
     }
     if (lineWidth != null)
     {
         paintTo3D.SetLineWidth(lineWidth);
     }
     if (linePattern != null)
     {
         paintTo3D.SetLinePattern(linePattern);
     }
     else
     {
         paintTo3D.SetLinePattern(null);
     }
     paintTo3D.Polyline(new GeoPoint[] { startPoint, endPoint });
 }