Class OrdinateDimension
Represents an ordinate dimension EntityObject.
Inherited Members
Namespace: netDxf.Entities
Assembly: CADability.dll
Syntax
public class OrdinateDimension : Dimension, IHasXData, ICloneable
Constructors
| Improve this Doc View SourceOrdinateDimension()
Initializes a new instance of the OrdinateDimension class.
Declaration
public OrdinateDimension()
OrdinateDimension(Vector2, Vector2, Vector2)
Initializes a new instance of the OrdinateDimension class.
Declaration
public OrdinateDimension(Vector2 origin, Vector2 featurePoint, Vector2 leaderEndPoint)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | origin | Origin Vector2 in local coordinates of the ordinate dimension. |
| Vector2 | featurePoint | Base location Vector2 in local coordinates of the ordinate dimension. |
| Vector2 | leaderEndPoint | Leader end Vector2 in local coordinates of the ordinate dimension |
Remarks
Uses the difference between the feature location and the leader endpoint to determine whether it is an X or a Y ordinate dimension. If the difference in the Y ordinate is greater, the dimension measures the X ordinate. Otherwise, it measures the Y ordinate.
OrdinateDimension(Vector2, Vector2, Vector2, OrdinateDimensionAxis, DimensionStyle)
Initializes a new instance of the OrdinateDimension class.
Declaration
public OrdinateDimension(Vector2 origin, Vector2 featurePoint, Vector2 leaderEndPoint, OrdinateDimensionAxis axis, DimensionStyle style)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | origin | Origin Vector2 in local coordinates of the ordinate dimension. |
| Vector2 | featurePoint | Base location Vector2 in local coordinates of the ordinate dimension. |
| Vector2 | leaderEndPoint | Leader end Vector2 in local coordinates of the ordinate dimension |
| OrdinateDimensionAxis | axis | Length of the dimension line. |
| DimensionStyle | style | The DimensionStyle to use with the dimension. |
OrdinateDimension(Vector2, Vector2, Vector2, DimensionStyle)
Initializes a new instance of the OrdinateDimension class.
Declaration
public OrdinateDimension(Vector2 origin, Vector2 featurePoint, Vector2 leaderEndPoint, DimensionStyle style)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | origin | Origin Vector2 in local coordinates of the ordinate dimension. |
| Vector2 | featurePoint | Base location Vector2 in local coordinates of the ordinate dimension. |
| Vector2 | leaderEndPoint | Leader end Vector2 in local coordinates of the ordinate dimension |
| DimensionStyle | style | The DimensionStyle to use with the dimension. |
Remarks
Uses the difference between the feature location and the leader endpoint to determine whether it is an X or a Y ordinate dimension. If the difference in the Y ordinate is greater, the dimension measures the X ordinate. Otherwise, it measures the Y ordinate.
OrdinateDimension(Vector2, Vector2, Double, OrdinateDimensionAxis)
Initializes a new instance of the OrdinateDimension class.
Declaration
public OrdinateDimension(Vector2 origin, Vector2 featurePoint, double length, OrdinateDimensionAxis axis)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | origin | Origin Vector2 of the ordinate dimension. |
| Vector2 | featurePoint | Base location Vector2 in local coordinates of the ordinate dimension. |
| System.Double | length | Length of the dimension line. |
| OrdinateDimensionAxis | axis | Length of the dimension line. |
Remarks
The local coordinate system of the dimension is defined by the dimension normal and the rotation value.
OrdinateDimension(Vector2, Vector2, Double, OrdinateDimensionAxis, DimensionStyle)
Initializes a new instance of the OrdinateDimension class.
Declaration
public OrdinateDimension(Vector2 origin, Vector2 featurePoint, double length, OrdinateDimensionAxis axis, DimensionStyle style)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | origin | Origin Vector2 of the ordinate dimension. |
| Vector2 | featurePoint | Base location Vector2 in local coordinates of the ordinate dimension. |
| System.Double | length | Length of the dimension line. |
| OrdinateDimensionAxis | axis | Length of the dimension line. |
| DimensionStyle | style | The DimensionStyle to use with the dimension. |
Remarks
The local coordinate system of the dimension is defined by the dimension normal and the rotation value.
OrdinateDimension(Vector2, Vector2, Double, OrdinateDimensionAxis, Double)
Initializes a new instance of the OrdinateDimension class.
Declaration
public OrdinateDimension(Vector2 origin, Vector2 featurePoint, double length, OrdinateDimensionAxis axis, double rotation)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | origin | Origin Vector2 of the ordinate dimension. |
| Vector2 | featurePoint | Base location Vector2 in local coordinates of the ordinate dimension. |
| System.Double | length | Length of the dimension line. |
| OrdinateDimensionAxis | axis | Length of the dimension line. |
| System.Double | rotation | Angle of rotation in degrees of the dimension lines. |
Remarks
The local coordinate system of the dimension is defined by the dimension normal and the rotation value.
OrdinateDimension(Vector2, Vector2, Double, OrdinateDimensionAxis, Double, DimensionStyle)
Initializes a new instance of the OrdinateDimension class.
Declaration
public OrdinateDimension(Vector2 origin, Vector2 featurePoint, double length, OrdinateDimensionAxis axis, double rotation, DimensionStyle style)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | origin | Origin Vector3 in world coordinates of the ordinate dimension. |
| Vector2 | featurePoint | Base location Vector2 in local coordinates of the ordinate dimension. |
| System.Double | length | Length of the dimension line. |
| OrdinateDimensionAxis | axis | Local axis that measures the ordinate dimension. |
| System.Double | rotation | Angle of rotation in degrees of the dimension lines. |
| DimensionStyle | style | The DimensionStyle to use with the dimension. |
Remarks
The local coordinate system of the dimension is defined by the dimension normal and the rotation value.
Properties
| Improve this Doc View SourceAxis
Gets or sets the local axis that measures the ordinate dimension.
Declaration
public OrdinateDimensionAxis Axis { get; set; }
Property Value
| Type | Description |
|---|---|
| OrdinateDimensionAxis |
FeaturePoint
Gets or set the base Vector2 in local coordinates, a point on a feature such as an endpoint, intersection, or center of an object.
Declaration
public Vector2 FeaturePoint { get; set; }
Property Value
| Type | Description |
|---|---|
| Vector2 |
LeaderEndPoint
Gets or sets the leader end Vector2 in local coordinates
Declaration
public Vector2 LeaderEndPoint { get; set; }
Property Value
| Type | Description |
|---|---|
| Vector2 |
Measurement
Actual measurement.
Declaration
public override double Measurement { get; }
Property Value
| Type | Description |
|---|---|
| System.Double |
Overrides
| Improve this Doc View SourceOrigin
Gets or sets the origin Vector2 in local coordinates.
Declaration
public Vector2 Origin { get; set; }
Property Value
| Type | Description |
|---|---|
| Vector2 |
Rotation
Gets or sets the angle of rotation in degrees of the ordinate dimension local coordinate system.
Declaration
public double Rotation { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double |
Methods
| Improve this Doc View SourceBuildBlock(String)
Gets the block that contains the entities that make up the dimension picture.
Declaration
protected override Block BuildBlock(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | Name to be assigned to the generated block. |
Returns
| Type | Description |
|---|---|
| Block | The block that represents the actual dimension. |
Overrides
| Improve this Doc View SourceCalculateReferencePoints()
Calculate the dimension reference points.
Declaration
protected override void CalculateReferencePoints()
Overrides
| Improve this Doc View SourceClone()
Creates a new OrdinateDimension that is a copy of the current instance.
Declaration
public override object Clone()
Returns
| Type | Description |
|---|---|
| System.Object | A new OrdinateDimension that is a copy of this instance. |
Overrides
| Improve this Doc View SourceTransformBy(Matrix3, Vector3)
Moves, scales, and/or rotates the current entity given a 3x3 transformation matrix and a translation vector.
Declaration
public override void TransformBy(Matrix3 transformation, Vector3 translation)
Parameters
| Type | Name | Description |
|---|---|---|
| Matrix3 | transformation | Transformation matrix. |
| Vector3 | translation | Translation vector. |
Overrides
Remarks
Matrix3 adopts the convention of using column vectors to represent a transformation matrix.