Class RadialDimension
Represents a radial dimension EntityObject.
Inherited Members
Namespace: netDxf.Entities
Assembly: CADability.dll
Syntax
public class RadialDimension : Dimension, IHasXData, ICloneable
Constructors
| Improve this Doc View SourceRadialDimension()
Initializes a new instance of the RadialDimension class.
Declaration
public RadialDimension()
RadialDimension(Arc, Double)
Initializes a new instance of the RadialDimension class.
Declaration
public RadialDimension(Arc arc, double rotation)
Parameters
| Type | Name | Description |
|---|---|---|
| Arc | arc | Arc to measure. |
| System.Double | rotation | Rotation in degrees of the dimension line. |
Remarks
The center point and the definition point define the distance to be measure.
RadialDimension(Arc, Double, DimensionStyle)
Initializes a new instance of the RadialDimension class.
Declaration
public RadialDimension(Arc arc, double rotation, DimensionStyle style)
Parameters
| Type | Name | Description |
|---|---|---|
| Arc | arc | Arc to measure. |
| System.Double | rotation | Rotation in degrees of the dimension line. |
| DimensionStyle | style | The DimensionStyle to use with the dimension. |
Remarks
The center point and the definition point define the distance to be measure.
RadialDimension(Circle, Double)
Initializes a new instance of the RadialDimension class.
Declaration
public RadialDimension(Circle circle, double rotation)
Parameters
| Type | Name | Description |
|---|---|---|
| Circle | circle | Circle to measure. |
| System.Double | rotation | Rotation in degrees of the dimension line. |
Remarks
The center point and the definition point define the distance to be measure.
RadialDimension(Circle, Double, DimensionStyle)
Initializes a new instance of the RadialDimension class.
Declaration
public RadialDimension(Circle circle, double rotation, DimensionStyle style)
Parameters
| Type | Name | Description |
|---|---|---|
| Circle | circle | Circle to measure. |
| System.Double | rotation | Rotation in degrees of the dimension line. |
| DimensionStyle | style | The DimensionStyle to use with the dimension. |
Remarks
The center point and the definition point define the distance to be measure.
RadialDimension(Vector2, Vector2)
Initializes a new instance of the RadialDimension class.
Declaration
public RadialDimension(Vector2 centerPoint, Vector2 referencePoint)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | centerPoint | Center Vector2 of the circumference. |
| Vector2 | referencePoint | Vector2 on circle or arc. |
Remarks
The center point and the definition point define the distance to be measure.
RadialDimension(Vector2, Vector2, DimensionStyle)
Initializes a new instance of the RadialDimension class.
Declaration
public RadialDimension(Vector2 centerPoint, Vector2 referencePoint, DimensionStyle style)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | centerPoint | Center Vector2 of the circumference. |
| Vector2 | referencePoint | Vector2 on circle or arc. |
| DimensionStyle | style | The DimensionStyle to use with the dimension. |
Remarks
The center point and the definition point define the distance to be measure.
Properties
| Improve this Doc View SourceCenterPoint
Gets or sets the center Vector2 of the circumference in OCS (object coordinate system).
Declaration
public Vector2 CenterPoint { 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 SourceReferencePoint
Gets or sets the Vector2 on circumference or arc in OCS (object coordinate system).
Declaration
public Vector2 ReferencePoint { get; set; }
Property Value
| Type | Description |
|---|---|
| Vector2 |
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()
Declaration
protected override void CalculateReferencePoints()
Overrides
| Improve this Doc View SourceClone()
Creates a new RadialDimension that is a copy of the current instance.
Declaration
public override object Clone()
Returns
| Type | Description |
|---|---|
| System.Object | A new RadialDimension that is a copy of this instance. |
Overrides
| Improve this Doc View SourceSetDimensionLinePosition(Vector2)
Calculates the reference point and dimension offset from a point along the dimension line.
Declaration
public void SetDimensionLinePosition(Vector2 point)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | point | Point along the dimension line. |
TransformBy(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
Non-uniform and zero scaling local to the dimension entity are not supported.
The transformation will not be applied if the resulting center and reference points are the same.
Matrix3 adopts the convention of using column vectors to represent a transformation matrix.