Click or drag to resize

PolyLineMetafileCommand Methods

The PolyLineMetafileCommand type exposes the following members.

Methods
 NameDescription
Public methodAddPoint Adds a point to the polyline.
Public methodAddPoints Adds a range of points to the polyline.
Public methodCompareWith
(Inherited from BaseMetafileCommand)
Public methodCopyFrom Copies the property values from a given metafile command. The InvokeCommandChanged is invoked at the end.
(Inherited from BaseMetafileCommand)
Public methodCreateArc Tries to approximate the polyline by an arc.
(Overrides BaseMetafileCommandCreateArc(Int32, Int32, Double))
Public methodCreateArcs 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.
Public methodCreateCubicCurves Loops through the polygon and creates a cubic curve between each two points.
(Overrides BaseMetafileCommandCreateCubicCurves)
Public methodCreateEllipse 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 Value

The calculated elliptical arc.
(Inherited from BaseMetafileCommand)
Public methodCreateEmptyPolyline 
Public methodCreatePolyline Creates a copy of the poly line.
(Overrides BaseMetafileCommandCreatePolyline(Int32, Double))
Public methodCreateQuadraticCurves Loops through the polygon and creates a quadratic curve between each two points.
(Overrides BaseMetafileCommandCreateQuadraticCurves)
Protected methodDoAddPoint
(Inherited from BasePolyLineMetafileCommand)
Protected methodDoAddPoints
(Inherited from BasePolyLineMetafileCommand)
Protected methodDoCompareWith
(Inherited from BaseMetafileCommand)
Protected methodDoCopyFrom Copies extra property values from a given metafile command. This method is called from CopyFrom(BaseMetafileCommand).
(Inherited from BasePolyLineMetafileCommand)
Protected methodDoInvert
(Inherited from BasePolyLineMetafileCommand)
Protected methodDoInvokeCommandChanged
(Inherited from BaseMetafileCommand)
Protected methodDoSplitByLength
(Overrides BaseMetafileCommandDoSplitByLength(Double, dmat4))
Protected methodDoTransform
(Inherited from BasePolyLineMetafileCommand)
Public methodDoublePoints Inserts an additional point between each two points of the polyline.
Protected methodDoUpdateEndPoint
(Inherited from BasePolyLineMetafileCommand)
Public methodGenerateCommandPoints Generates a list of points that are significant to the shape.
(Inherited from BasePolyLineMetafileCommand)
Public methodGetTransformedLength
(Inherited from BasePolyLineMetafileCommand)
Protected methodInvokeCommandChanged
(Inherited from BaseMetafileCommand)
Public methodIsEqual 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)
Public methodIsPointInPolygon Checks if point q is in the polygon built by the numOfPoints points from startIdx on.
Public methodRemoveDuplicatePoints Removes adjacent duplicate points.
Public methodRemoveLoops Removes all duplicate points and loops in the polyline. See RemoveFirstLoop(Int32, Double) for details.
Public methodRemoveStraightPoints Loops repeatedly through the Points[] until all points laying on a line defined by two predecessor points are removed. See for details.
Public methodSetZCoordsToZero Sets all z-coordinates in this object to zero.
(Overrides BaseMetafileCommandSetZCoordsToZero)
Public methodShowUI(String)
(Inherited from BaseMetafileCommand)
Public methodShowUI(String, PropertyMask)
(Inherited from BasePolyLineMetafileCommand)
Public methodShowUICallback
(Inherited from BasePolyLineMetafileCommand)
Public methodSplitAndConvert 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
The points with indices from startIdx 3 to endIdx 6 should be in a new polyline after splitting.
Public methodSplitByLength Splits the command at the provided length.
(Inherited from BaseMetafileCommand)
Public methodSplitIntoParts Splits the polyline into parts at all points in the index list.
Public methodSplitIntoTwo 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)
Public methodToStringReturns a string that represents the current object.
(Overrides ObjectToString)
Public methodUpdateEndPoint Updates the start and end points of this command based on a given starting point.
(Inherited from BaseMetafileCommand)
Top
See Also