Class DisplaySegments2
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
Separate straight segments drawn alike, each from its own start to its own end: the lines of a hatch's pattern cut by its loops, kept as one item so that a hatch of 11 000 dashes is one thing to pick and to draw.
public sealed class DisplaySegments2 : DisplayItem2
- Inheritance
-
DisplaySegments2
- Inherited Members
Constructors
- DisplaySegments2(double[], DisplayStyle, string, string)
Makes a set of segments.
Properties
- Bounds
Gets the box that holds the item.
- Count
Gets the number of segments.
- Rings
Gets the loops of the hatch the segments are the pattern of, X and Y in turn, as the display list placed them: the canvas fills them with a tint where the lines come closer than 2 pixels, as a hatch of ANSI31 at spacing 3 does on a sheet of 80 metres shown whole. Empty where the segments have no loops.
- Xy
Gets the segments, four numbers each: the start's X and Y, then the end's.
Methods
- DistanceTo(double, double)
Gets the distance from a point to the item, the shortest to any part that is drawn; the distance to the nearest edge for a fill, nought inside it.
- Touches(DisplayBox)
Gets whether any part of the item touches a box, as a crossing selection asks.