CADability dotNET
Assembly: CADability (in CADability.dll) Version: 1.1.4254.24737 (1.1.*)
Base class for all "Actions". An Action is an object, that receives various MouseInput events
once it has been "Set" by a call to SetAction(Action). After performing the
required tasks, the Action is removed from the ActionStack and the previous active action
is resumed. The action on the bottom of the action stack is the SelectObjectsAction.
Use the ConstructAction for typical drawing purposes, because it provides a convenient
set of methods. If an action object is set by a call to SetAction(Action) the following
sequence of calls to the new and the old action is executed:
Namespace: CADability.Actions- new action: OnSetAction()()()() (as a reaction to SetAction(Action))
- old action: OnInactivate(Action, Boolean) (may call RemoveActiveAction()()()() if desired)
- new action: OnActivate(Action, Boolean) (from now on the new action may receive mouse events).
- After the new action calls RemoveThisAction()()()() or someone calls RemoveActiveAction()()()() the new action will receive OnInactivate(Action, Boolean).
- The old action (if still on the stack) will receive a call to OnActivate(Action, Boolean) and finally
- the new action will receive a call to OnRemoveAction()()()() as a last call.
Assembly: CADability (in CADability.dll) Version: 1.1.4254.24737 (1.1.*)
Syntax
C# |
---|
public abstract class Action : ICommandHandler |
Visual Basic |
---|
Public MustInherit Class Action _ Implements ICommandHandler |
Visual C++ |
---|
public ref class Action abstract : ICommandHandler |
Inheritance Hierarchy
System..::..Object
CADability.Actions..::..Action
CADability.Actions..::..ConstructAction
CADability.Actions..::..GeneralAngleAction
CADability.Actions..::..GeneralGeoPointAction
CADability.Actions..::..GeneralGeoVectorAction
CADability.Actions..::..GeneralLengthAction
CADability.Actions..::..SelectObjectsAction
CADability.Actions..::..ZoomAction
CADability.Actions..::..Action
CADability.Actions..::..ConstructAction
CADability.Actions..::..GeneralAngleAction
CADability.Actions..::..GeneralGeoPointAction
CADability.Actions..::..GeneralGeoVectorAction
CADability.Actions..::..GeneralLengthAction
CADability.Actions..::..SelectObjectsAction
CADability.Actions..::..ZoomAction