public ShowAnglesToolGraphic() { base.Graphics.Add(_angleCalloutGraphic1 = new AngleCalloutGraphic()); base.Graphics.Add(_angleCalloutGraphic2 = new AngleCalloutGraphic()); base.Graphics.Add(_extenderLine1 = new LinePrimitive()); base.Graphics.Add(_extenderLine2 = new LinePrimitive()); base.Graphics.Add(_riserLine1 = new LinePrimitive()); base.Graphics.Add(_riserLine2 = new LinePrimitive()); _angleCalloutGraphic1.ShowArrowhead = _angleCalloutGraphic2.ShowArrowhead = false; _angleCalloutGraphic1.LineStyle = _angleCalloutGraphic2.LineStyle = LineStyle.Dash; _angleCalloutGraphic1.Name = "callout1"; _angleCalloutGraphic2.Name = "callout2"; _extenderLine1.Name = "extender1"; _extenderLine2.Name = "extender2"; _riserLine1.Name = "riser1"; _riserLine2.Name = "riser2"; _endPoints = new PointsList(new PointF[] {PointF.Empty, PointF.Empty, PointF.Empty, PointF.Empty}, this); this.Color = Color.Coral; this.LineStyle = LineStyle.Dot; }
/// <summary> /// Cloning constructor. /// </summary> /// <param name="source">The source object from which to clone.</param> /// <param name="context">The cloning context object.</param> protected PolylineGraphic(PolylineGraphic source, ICloningContext context) : base() { context.CloneFields(source, this); _points = new PointsList(source._points, this); }
/// <summary> /// Initializes a new instance of <see cref="PolylineGraphic"/>. /// </summary> public PolylineGraphic() { _points = new PointsList(this); Initialize(); }
/// <summary> /// Cloning constructor. /// </summary> protected CurvePrimitive(CurvePrimitive source, ICloningContext context) { context.CloneFields(source, this); _points = new PointsList(source._points, this); }
/// <summary> /// Constructs a curve graphic. /// </summary> public CurvePrimitive() { _points = new PointsList(this); Initialize(); }
/// <summary> /// Cloning constructor. /// </summary> /// <param name="source">The source object from which to clone.</param> /// <param name="context">The cloning context object.</param> protected PolylineGraphic(PolylineGraphic source, ICloningContext context) : base() { context.CloneFields(source, this); _points = new PointsList(source._points, this); }
/// <summary> /// Initializes a new instance of <see cref="PolylineGraphic"/>. /// </summary> public PolylineGraphic() { _points = new PointsList(this); Initialize(); }
/// <summary> /// Cloning constructor. /// </summary> /// <param name="source">The source object from which to clone.</param> /// <param name="context">The cloning context object.</param> protected ShowAnglesToolGraphic(ShowAnglesToolGraphic source, ICloningContext context) : base() { context.CloneFields(source, this); _endPoints = new PointsList(source._endPoints, this); }
/// <summary> /// Cloning constructor. /// </summary> protected CurvePrimitive(CurvePrimitive source, ICloningContext context) { context.CloneFields(source, this); _points = new PointsList(source._points, this); }
/// <summary> /// Constructs a curve graphic. /// </summary> public CurvePrimitive() { _points = new PointsList(this); Initialize(); }