Class LinearDimension
A linear dimension.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Elements.Annotations
Assembly: Hypar.Elements.dll
Syntax
public abstract class LinearDimension : Annotation, INotifyPropertyChanged, IOverrideLinked
Constructors
LinearDimension(Vector3, Vector3, Plane, String, String, String)
Create a linear dimension with a reference plane.
Declaration
[JsonConstructor]
public LinearDimension(Vector3 start, Vector3 end, Plane referencePlane, string prefix = null, string suffix = null, string displayValue = null)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | start | The start of the dimension. |
Vector3 | end | The end of the dimension. |
Plane | referencePlane | The plane on which the start and end points will be projected. |
System.String | prefix | Text to be displayed before the dimension's value. |
System.String | suffix | Text to be displayed after the dimension's value. |
System.String | displayValue | Text to be displayed in place of the dimension's value. |
Properties
End
The end of the dimension.
Declaration
public Vector3 End { get; protected set; }
Property Value
Type | Description |
---|---|
Vector3 |
LinkedProperty
Information about the element and property that this dimension is linked to, if any.
Declaration
public LinkedPropertyInfo LinkedProperty { get; set; }
Property Value
Type | Description |
---|---|
LinkedPropertyInfo |
ReferencePlane
The plane on which the start and end points are projected.
Declaration
public Plane ReferencePlane { get; protected set; }
Property Value
Type | Description |
---|---|
Plane |
Start
The start of the dimension.
Declaration
public Vector3 Start { get; protected set; }
Property Value
Type | Description |
---|---|
Vector3 |
Methods
ToModelArrowsAndText(Color)
Draw the dimension.
Declaration
public List<Element> ToModelArrowsAndText(Color color)
Parameters
Type | Name | Description |
---|---|---|
Color | color |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<Element> |
ToModelArrowsAndTexts(IList<LinearDimension>, Color)
Draw a set of dimensions.
Declaration
public static List<Element> ToModelArrowsAndTexts(IList<LinearDimension> dimensions, Color color = default(Color))
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IList<LinearDimension> | dimensions | |
Color | color |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<Element> |
Implements
System.ComponentModel.INotifyPropertyChanged