CADability dotNET
The ConstructAction type exposes the following members.
Methods
Name | Description | |
---|---|---|
AutoRepeat |
Detremins whether this action supports autorepeat. Autorepeat is enabled
in the GlobalSettings.
(Overrides Action..::..AutoRepeat()()()().) | |
CancelBackgroundTask | ||
FindShape | ||
FindTangentialPoint |
Additional posibility for the derived action to specify a tangential point
besides the tangential point from the base point
| |
Finish |
Explicitly finish this action. OnDone will be called.
| |
KeepAsLastStyle |
Sets the Styleof the provided GeoObject go as the last style.
If new objects are created with construct method and last style is used, this style will be used.
| |
MayFinish | ||
OnActivate |
Implements OnActivate(Action, Boolean). If you override this method
don't forget to call the bas implementation.
(Overrides Action..::..OnActivate(Action, Boolean).) | |
OnCommand |
Handles a few context menu commands. Don't forget to call the base implementation
if you override this method. See ICommandHandler.
(Overrides Action..::..OnCommand(String).) | |
OnDifferentSolution |
Will be called when MultiSolution is true and the user presses the PgUp/PgDown key
or selects the appropriate entries of the context menu. Override this
method to implement a multi-solution construction. Default implementation
is empty.
| |
OnDone |
Called, when the ConstructAction is done, i.e. all non-optional inputs
have been fixed. The default implementation adds the active object (if it exists)
to the active model and removes this action. Override this method if you need
a different behaviour.
| |
OnEnter()()()() |
Overrides OnEnter()()()() (Overrides Action..::..OnEnter()()()().) | |
OnEnter(Object) |
Overrides OnEnter()()()(). Usually you don't override this
method, but handle the appropriate events of the input objects.
(Overrides Action..::..OnEnter(Object).) | |
OnEscape()()()() |
Overrides OnEscape()()()() (Overrides Action..::..OnEscape()()()().) | |
OnEscape(Object) |
Overrides OnEscape()()()(). Usually you don't override this
method, but handle the appropriate events of the input objects.
(Overrides Action..::..OnEscape(Object).) | |
OnInactivate |
Implements OnInactivate(Action, Boolean). If you override this method
don't forget to call the bas implementation.
(Overrides Action..::..OnInactivate(Action, Boolean).) | |
OnMouseDown |
Implements OnMouseDown(MouseEventArgs, IView). If you override this method
don't forget to call the bas implementation.
(Overrides Action..::..OnMouseDown(MouseEventArgs, IView).) | |
OnMouseLeave |
Overrides OnMouseLeave(EventArgs, IView). Usually you don't override this
method, but handle the appropriate events of the input objects.
(Overrides Action..::..OnMouseLeave(EventArgs, IView).) | |
OnMouseMove |
Implements OnMouseMove(MouseEventArgs, IView). If you override this method
don't forget to call the bas implementation.
(Overrides Action..::..OnMouseMove(MouseEventArgs, IView).) | |
OnMouseUp |
Implements OnMouseUp(MouseEventArgs, IView). If you override this method
don't forget to call the bas implementation.
(Overrides Action..::..OnMouseUp(MouseEventArgs, IView).) | |
OnRemoveAction |
Implements OnRemoveAction()()()(). If you override this method
don't forget to call the bas implementation.
(Overrides Action..::..OnRemoveAction()()()().) | |
OnSetAction |
Implements OnSetAction()()()(). If you override this method
don't forget to call the bas implementation.
(Overrides Action..::..OnSetAction()()()().) | |
OnSolution |
Will be called when MultiSolution is true and the user presses the PgUp/PgDown key
or selects the appropriate entries of the context menu. Override this
method to implement a multi-solution construction. Default implementation
is empty.
| |
OnUpdateCommand |
Overrides OnUpdateCommand(String, CommandState) (Overrides Action..::..OnUpdateCommand(String, CommandState).) | |
OnViewsChanged |
Implements OnViewsChanged()()()(). This implementation
aborts the action.
(Overrides Action..::..OnViewsChanged()()()().) | |
SetFocus |
Sets the input focus to the given input object. The input object must be one of those
given in the SetInput(array<Object>[]()[][]) method.
| |
SetInput |
Call this method in an override to OnSetAction()()()() to specify the input
parameters of this action. Objects given as parameters may be any of ConstructAction..::..AngleInput,
ConstructAction..::..LengthInput, ConstructAction..::..DoubleInput, ConstructAction..::..GeoPointInput, ConstructAction..::..GeoVectorInput, ConstructAction..::..BooleanInput,
ConstructAction..::..MultiPointInput, ConstructAction..::..GeoObjectInput, ConstructAction..::..PlaneInput.
| |
SnapPoint(MouseEventArgs, IView, SnapPointFinder..::..DidSnapModes%) |
Gets a point from the MouseEventArgs and the view. The point will be in the appropriate
model and will be snapped according to the views snap setting.
| |
SnapPoint(MouseEventArgs, GeoPoint, IView, SnapPointFinder..::..DidSnapModes%) | ||
StartBackgroundTask | ||
WaitForBackgroundTask |