CADability dotNET

Base class for construct actions.

The ConstructAction..::..LengthInput type exposes the following members.

Constructors

  NameDescription
Public methodConstructAction..::..LengthInput(String)
Constructs a LengthInput object.
Public methodConstructAction..::..LengthInput(String, Double)
Constructs a LengthInput object with a start value

Methods

  NameDescription
Protected methodAdjustHighlight (Overrides ConstructAction..::..InputObject..::..AdjustHighlight()()()().)
Public methodForceValue
Forces the input object to the specified value. The input filed is updated accordingly.
Public methodSetDistanceFromLine
Sets the line as a basis for the calculation of the distance or length. The calculated length is the distance of the mouseposition from this line
Public methodSetDistanceFromPlane
Sets the given plane as a basis for the calculation of the distance or length. The calculated length is the distance of the mouseposition from this plane.
Public methodSetDistanceFromPoint
Sets the point as a basis for the calculation of the distance or length. The calculated length is the distance of the mouseposition from this point.

Properties

  NameDescription
Public propertyDefaultLength
Sets a DefaultLength, which should be a static value, that carries the last input value of this length to the next instantiation of the action.
Public propertyForwardMouseInputTo
Mouse input should be forwarded to another input object and only processed by this input, when the other input object is fixed.
Public propertyReadOnly
true: this input field does not accept user input, false: normal input field that requires user input
(Overrides ConstructAction..::..InputObject..::..ReadOnly.)

Events

  NameDescription
Public eventCalculateLengthEvent
Provide a method here, if you want to calculate the length yourself, i.e. if distance from point, line or plane is not appropriate to your needs.
Public eventGetLengthEvent
Provide a method here, if the length not only depends from this input, but is also modified by other means.
Public eventMouseClickEvent
Event that is fired when a mousclick happens and this input has the focus.
Public eventSetLengthEvent
Provide a method here to get the result of this input (and modify your object)

See Also