Class ConstructAction.AngleInput
Inherited Members
Namespace: CADability.Actions
Assembly: CADability.dll
Syntax
public class AngleInput : ConstructAction.InputObject, ConstructAction.IInputObject
Constructors
| Improve this Doc View SourceAngleInput(String)
Constructs an AngleInput.
Declaration
public AngleInput(string resourceId)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | resourceId | resource id for the label |
AngleInput(String, Angle)
Constructs an AngleInput.
Declaration
public AngleInput(string resourceId, Angle StartValue)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | resourceId | resource id for the label |
| Angle | StartValue | start value for the angle |
Properties
| Improve this Doc View SourceDefaultAngle
Sets a DefaultAngle, which should be a static value, that carries the last input value of this length to the next instantiation of the action.
Declaration
public ConstructAction.DefaultAngle DefaultAngle { set; }
Property Value
| Type | Description |
|---|---|
| ConstructAction.DefaultAngle |
ForwardMouseInputTo
Mouse input should be forwarded to another input object and only processed by this input, when the other input object is fixed.
Declaration
public object ForwardMouseInputTo { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Object |
ReadOnly
true: this input field does not accept user input, false: normal input field that requires user input
Declaration
public override bool ReadOnly { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Overrides
Methods
| Improve this Doc View SourceAdjustHighlight()
Declaration
protected override void AdjustHighlight()
Overrides
| Improve this Doc View SourceForceValue(Angle)
Forces the input object to the specified value. The input filed is updated accordingly.
Declaration
public void ForceValue(Angle val)
Parameters
| Type | Name | Description |
|---|---|---|
| Angle | val | the value to set |
SetAngleFromLine(GeoPoint, GeoPoint)
Sets the line as a basis for the calculation of the angle. The calculated angle is the angle of line from the startPoint to the mouseposition with the line from the startPoint to the endPoint.
Declaration
public void SetAngleFromLine(GeoPoint startPoint, GeoPoint endPoint)
Parameters
| Type | Name | Description |
|---|---|---|
| GeoPoint | startPoint | startpoint of the line |
| GeoPoint | endPoint | endpoint of the line |
SetAngleFromPlane(Plane)
Sets the given plane as a basis for the calculation of the angle. The calculated angle is the angle of the mouseposition relative to the X-axis of this plane.
Declaration
public void SetAngleFromPlane(Plane p)
Parameters
| Type | Name | Description |
|---|---|---|
| Plane | p | the plane |
Events
| Improve this Doc View SourceCalculateAngleEvent
Provide a method here, if you want to calculate the angle yourself, i.e. if distance from point, line or plane is not appropriate to your needs.
Declaration
public event ConstructAction.AngleInput.CalculateAngleDelegate CalculateAngleEvent
Event Type
| Type | Description |
|---|---|
| ConstructAction.AngleInput.CalculateAngleDelegate |
GetAngleEvent
Provide a method here, if the angle not only depends from this input, but is also modified by other means.
Declaration
public event ConstructAction.AngleInput.GetAngleDelegate GetAngleEvent
Event Type
| Type | Description |
|---|---|
| ConstructAction.AngleInput.GetAngleDelegate |
MouseClickEvent
Event that is fired when a mousclick happens and this AngleInput has the focus.
Declaration
public event ConstructAction.MouseClickDelegate MouseClickEvent
Event Type
| Type | Description |
|---|---|
| ConstructAction.MouseClickDelegate |
SetAngleEvent
Provide a method here to get the result of this input (and modify your object)
Declaration
public event ConstructAction.AngleInput.SetAngleDelegate SetAngleEvent
Event Type
| Type | Description |
|---|---|
| ConstructAction.AngleInput.SetAngleDelegate |