Class Angular3PointDimension
Represents a 3 point angular dimension EntityObject.
Inherited Members
Namespace: netDxf.Entities
Assembly: CADability.dll
Syntax
public class Angular3PointDimension : Dimension, IHasXData, ICloneable
Constructors
| Improve this Doc View SourceAngular3PointDimension()
Initializes a new instance of the Angular3PointDimension class.
Declaration
public Angular3PointDimension()
Angular3PointDimension(Arc, Double)
Initializes a new instance of the Angular3PointDimension class.
Declaration
public Angular3PointDimension(Arc arc, double offset)
Parameters
| Type | Name | Description |
|---|---|---|
| Arc | arc | Arc to measure. |
| System.Double | offset | Distance between the center of the arc and the dimension line. |
Angular3PointDimension(Arc, Double, DimensionStyle)
Initializes a new instance of the Angular3PointDimension class.
Declaration
public Angular3PointDimension(Arc arc, double offset, DimensionStyle style)
Parameters
| Type | Name | Description |
|---|---|---|
| Arc | arc | Angle Arc to measure. |
| System.Double | offset | Distance between the center of the arc and the dimension line. |
| DimensionStyle | style | The DimensionStyle to use with the dimension. |
Angular3PointDimension(Vector2, Vector2, Vector2, Double)
Initializes a new instance of the Angular3PointDimension class.
Declaration
public Angular3PointDimension(Vector2 centerPoint, Vector2 startPoint, Vector2 endPoint, double offset)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | centerPoint | Center of the angle arc to measure. |
| Vector2 | startPoint | Angle start point. |
| Vector2 | endPoint | Angle end point. |
| System.Double | offset | Distance between the center point and the dimension line. |
Angular3PointDimension(Vector2, Vector2, Vector2, Double, DimensionStyle)
Initializes a new instance of the Angular3PointDimension class.
Declaration
public Angular3PointDimension(Vector2 centerPoint, Vector2 startPoint, Vector2 endPoint, double offset, DimensionStyle style)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | centerPoint | Center of the angle arc to measure. |
| Vector2 | startPoint | Angle start point. |
| Vector2 | endPoint | Angle end point. |
| System.Double | offset | Distance between the center point and the dimension line. |
| DimensionStyle | style | The DimensionStyle to use with the dimension. |
Properties
| Improve this Doc View SourceArcDefinitionPoint
Gets the location of the dimension line arc.
Declaration
public Vector2 ArcDefinitionPoint { get; }
Property Value
| Type | Description |
|---|---|
| Vector2 |
CenterPoint
Gets or sets the center Vector2 of the arc in OCS (object coordinate system).
Declaration
public Vector2 CenterPoint { get; set; }
Property Value
| Type | Description |
|---|---|
| Vector2 |
EndPoint
Gets or sets the angle end Vector2 of the dimension in OCS (object coordinate system).
Declaration
public Vector2 EndPoint { get; set; }
Property Value
| Type | Description |
|---|---|
| Vector2 |
Measurement
Actual measurement.
Declaration
public override double Measurement { get; }
Property Value
| Type | Description |
|---|---|
| System.Double |
Overrides
Remarks
The dimension is always measured in the plane defined by the normal.
Offset
Gets or sets the distance between the center point and the dimension line.
Declaration
public double Offset { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double |
Remarks
Offset values cannot be negative and, even thought, zero values are allowed, they are not recommended.
StartPoint
Gets or sets the angle start Vector2 of the dimension in OCS (object coordinate system).
Declaration
public Vector2 StartPoint { 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()
Calculate the dimension reference points.
Declaration
protected override void CalculateReferencePoints()
Overrides
| Improve this Doc View SourceClone()
Creates a new Angular3PointDimension that is a copy of the current instance.
Declaration
public override object Clone()
Returns
| Type | Description |
|---|---|
| System.Object | A new Angular3PointDimension that is a copy of this instance. |
Overrides
| Improve this Doc View SourceSetDimensionLinePosition(Vector2)
Calculates the 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. |
Remarks
The start and end points of the reference lines will be modified, the angle measurement is always made from the direction of the center-first point line to the direction of the center-second point 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 reference lines are parallel.
Matrix3 adopts the convention of using column vectors to represent a transformation matrix.