Poly |
The PolyLineMetafileCommand type exposes the following members.
Name | Description | |
---|---|---|
![]() | AddPoint | Adds a point to the polyline. |
![]() | AddPoints | Adds a range of points to the polyline. |
![]() | CompareWith | (Inherited from BaseMetafileCommand) |
![]() | CopyFrom |
Copies the property values from a given metafile command. The InvokeCommandChanged is invoked at the end.
(Inherited from BaseMetafileCommand) |
![]() | CreateArc |
Tries to approximate the polyline by an arc.
(Overrides BaseMetafileCommandCreateArc(Int32, Int32, Double)) |
![]() | CreateArcs | Loops through the given range of points and tries to detect arcs. We start with the first three points and calculate an arc out of them. If the angle does not exceed maxPhi it is considered to be a valid arc, and the next point is checked if it lays on the same circle. This is to be considered as yes if its distance from the arc's center does not differ from the arc's radius more than delta and if the angle between the last point and the point is not larger then maxPhi - and so on with the next point. If an arc is detected it is put in the resulting list of BaseMetafileCommands, if not the points are put into the list as lines. |
![]() | CreateCubicCurves |
Loops through the polygon and creates a cubic curve between each
two points.
(Overrides BaseMetafileCommandCreateCubicCurves) |
![]() | CreateEllipse |
Tries to approximate the command by an elliptical arc. Available
only for arcs yet, creating an ellipse with both semi axes having
the length of the arc's radius.
Return ValueThe calculated elliptical arc.(Inherited from BaseMetafileCommand) |
![]() | CreateEmptyPolyline | |
![]() | CreatePolyline |
Creates a copy of the poly line.
(Overrides BaseMetafileCommandCreatePolyline(Int32, Double)) |
![]() | CreateQuadraticCurves |
Loops through the polygon and creates a quadratic curve between
each two points.
(Overrides BaseMetafileCommandCreateQuadraticCurves) |
![]() | DoAddPoint | (Inherited from BasePolyLineMetafileCommand) |
![]() | DoAddPoints | (Inherited from BasePolyLineMetafileCommand) |
![]() | DoCompareWith | (Inherited from BaseMetafileCommand) |
![]() | DoCopyFrom |
Copies extra property values from a given metafile command. This method is called from CopyFrom(BaseMetafileCommand).
(Inherited from BasePolyLineMetafileCommand) |
![]() | DoInvert | (Inherited from BasePolyLineMetafileCommand) |
![]() | DoInvokeCommandChanged | (Inherited from BaseMetafileCommand) |
![]() | DoSplitByLength | (Overrides BaseMetafileCommandDoSplitByLength(Double, dmat4)) |
![]() | DoTransform | (Inherited from BasePolyLineMetafileCommand) |
![]() | DoublePoints | Inserts an additional point between each two points of the polyline. |
![]() | DoUpdateEndPoint | (Inherited from BasePolyLineMetafileCommand) |
![]() | GenerateCommandPoints |
Generates a list of points that are significant to the shape.
(Inherited from BasePolyLineMetafileCommand) |
![]() | GetTransformedLength | (Inherited from BasePolyLineMetafileCommand) |
![]() | InvokeCommandChanged | (Inherited from BaseMetafileCommand) |
![]() | IsEqual |
Checks if two objects of type BaseMetafileCommand (or a derived class)
are equal to each other. All position values must differ less than delta
d to be considered as equal.
Angles, axes ratios and the check on collinearity of lines are using
the fixed value 0.01 rad.
(Inherited from BasePolyLineMetafileCommand) |
![]() | IsPointInPolygon | Checks if point q is in the polygon built by the numOfPoints points from startIdx on. |
![]() | RemoveDuplicatePoints | Removes adjacent duplicate points. |
![]() | RemoveLoops | Removes all duplicate points and loops in the polyline. See RemoveFirstLoop(Int32, Double) for details. |
![]() | RemoveStraightPoints | Loops repeatedly through the Points[] until all points laying on a line defined by two predecessor points are removed. See for details. |
![]() | SetZCoordsToZero |
Sets all z-coordinates in this object to zero.
(Overrides BaseMetafileCommandSetZCoordsToZero) |
![]() | ShowUI(String) | (Inherited from BaseMetafileCommand) |
![]() | ShowUI(String, PropertyMask) | (Inherited from BasePolyLineMetafileCommand) |
![]() | ShowUICallback | (Inherited from BasePolyLineMetafileCommand) |
![]() | SplitAndConvert |
Splits the polyline into three polylines and converts the part
from startIdx to endIdx into another type.
Example: . * * . * . * . . . . -1 0 1 2 3 4 5 6 7 8 9 |
![]() | SplitByLength |
Splits the command at the provided length.
(Inherited from BaseMetafileCommand) |
![]() | SplitIntoParts | Splits the polyline into parts at all points in the index list. |
![]() | SplitIntoTwo |
Creates two adjacent commands of the same type at the same position
in a way that the two commands can replace the original.
(Overrides BaseMetafileCommandSplitIntoTwo) |
![]() | ToString | Returns a string that represents the current object. (Overrides ObjectToString) |
![]() | UpdateEndPoint |
Updates the start and end points of this command based on a given starting point.
(Inherited from BaseMetafileCommand) |