Show / Hide Table of Contents

Class ConstructAction.AngleInput

Inheritance
System.Object
ConstructAction.InputObject
ConstructAction.AngleInput
Inherited Members
ConstructAction.InputObject.Optional
ConstructAction.InputObject.Fixed
ConstructAction.InputObject.ResourceId
ConstructAction.InputObject.constructAction
ConstructAction.InputObject.ShowProperty
ConstructAction.InputObject.Init(ConstructAction)
ConstructAction.InputObject.Refresh()
ConstructAction.InputObject.BuildShowProperty()
ConstructAction.InputObject.AcceptInput(Boolean)
ConstructAction.InputObject.MouseLeft()
ConstructAction.InputObject.OnActionDone()
ConstructAction.InputObject.HasHotspot
ConstructAction.InputObject.HotspotPosition
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: CADability.Actions
Assembly: CADability.dll
Syntax
public class AngleInput : ConstructAction.InputObject, ConstructAction.IInputObject

Constructors

| Improve this Doc View Source

AngleInput(String)

Constructs an AngleInput.

Declaration
public AngleInput(string resourceId)
Parameters
Type Name Description
System.String resourceId

resource id for the label

| Improve this Doc View Source

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 Source

DefaultAngle

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
| Improve this Doc View Source

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
| Improve this Doc View Source

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
ConstructAction.InputObject.ReadOnly

Methods

| Improve this Doc View Source

AdjustHighlight()

Declaration
protected override void AdjustHighlight()
Overrides
ConstructAction.InputObject.AdjustHighlight()
| Improve this Doc View Source

ForceValue(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

| Improve this Doc View Source

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

| Improve this Doc View Source

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 Source

CalculateAngleEvent

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
| Improve this Doc View Source

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
| Improve this Doc View Source

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
| Improve this Doc View Source

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
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX