Base |
public abstract class BaseMetafileCommand
The BaseMetafileCommand type exposes the following members.
Name | Description | |
---|---|---|
![]() | BaseMetafileCommand | Constructor. Initializes the CommandType and end points. |
Name | Description | |
---|---|---|
![]() | IsGeometric | Returns true if the command describes a path (either with jumps or marks). LaserOn commands (aka drills) are excluded. |
![]() | Item | Returns a point that are significant to the shape. The type of point and the position depends on the command type. |
![]() | Label | The display name of the meta file command type. |
![]() | Length | The length of the vector. |
![]() | MetafileCommandFactory | |
![]() | PointCount | The number of points accessible by the indexer. |
![]() | SegmentEndPointPair | The end points of the segment generated by this metafile command. This value functions as a cache to reduce redundant calculations. |
Name | Description | |
---|---|---|
![]() ![]() | AreVecsEqual | Compares to dvec3 objects and returns true if each of their coordinates differs less than d. Needed in the derived classes to check for equality. |
![]() | CompareWith | |
![]() | CopyFrom | Copies the property values from a given metafile command. The InvokeCommandChanged is invoked at the end. |
![]() | CreateArc | Tries to approximate the command by a circular arc. |
![]() | CreateCubicCurves | Converts the command into a list of up to four cubic curves approximating the original command element. Available only for arcs. |
![]() | 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. |
![]() | CreatePolyline | Creates a polyline from the command. The creation process is done in two steps: In the first step a polyline with numOfPoints points is created; this number should not be too small to have a good approximation guaranteed. In the second step all straight points are removed using the delta parameter. See CheckThreePointsOnLinearityWithDistance(dvec3, dvec3, dvec3, Double) for details. |
![]() | CreateQuadraticCurves | Converts the command into a list of up to eight quadratic curves approximating the original command element. Available only for arcs. |
![]() | DoCompareWith | |
![]() | DoCopyFrom | Copies extra property values from a given metafile command. This method is called from CopyFrom(BaseMetafileCommand). |
![]() | DoInvert | |
![]() | DoInvokeCommandChanged | |
![]() | DoSplitByLength | |
![]() | DoTransform | Transforms points in this metafile command, other than the end points. |
![]() | DoUpdateEndPoint | |
![]() | GenerateCommandPoints | Generates a list of points that are significant to the shape. |
![]() | GetTransformedLength | Returns the length of the transformed vector. |
![]() | InvokeCommandChanged | |
![]() | 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. |
![]() | SetZCoordsToZero | Sets all z-coordinates in this object to zero. |
![]() | ShowUI(String) | |
![]() | ShowUI(String, PropertyMask) | |
![]() | ShowUICallback | |
![]() | SplitByLength | Splits the command at the provided length. |
![]() | SplitIntoTwo | Creates two adjacent commands of the same type at the same position in a way that the two commands can replace the original. |
![]() | UpdateEndPoint | Updates the start and end points of this command based on a given starting point. |
Name | Description | |
---|---|---|
![]() | CommandChanged | Raised whenever a metafile command is changed. |
Name | Description | |
---|---|---|
![]() ![]() | AngleDelta | The default delta used to decide if angles are equal in metafile commands. This is also used for the axes ratio of ellipses. |
![]() ![]() | Delta | The default delta used to decide if two positions of points are equal in metafile commands. |
![]() ![]() | ScaleDelta |