CADability dotNET
The ConstructAction type exposes the following members.
Constructors
Name | Description | |
---|---|---|
ConstructAction |
Initializes some properties. Set the properties you need in your constructor.
|
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 |
Fields
Name | Description | |
---|---|---|
CurrentMousePoint |
The current mouse position for this action
| |
MultiSolution |
The ConstructAction may have several solutions. If set to true, the PgUp/PgDown
key will call OnDifferentSolution and the context menue will have appropriate entries.
| |
MultiSolutionCount |
TheConstruction may have several solutions. If set to a value !=0 the ContextMenu will have
that number of entries and OnSolution() will be called if the user selects one of these
| |
ShowAttributes |
Display the attributes of the active object.
| |
TitleId |
The title id (resource id) for the title of the action in the control center
|
Properties
Name | Description | |
---|---|---|
ActiveObject |
Dieses Objekt wird über der Zeichnung dargestellt. Kann auch auf null gesetzt werden
um kein Objekt (mehr) darzustallen. Mehrere Objekte können nur als Block dargestellt
werden.
| |
BasePoint |
Manche Fangoperationen benötigen einen Ausgangspunkt (z.B. der Orthogonalmodus).
Dieser kann hier gesetzt werden. Wurde noch keiner gesetzt, so arbeiten diese
Fangmodi nicht.
| |
CurrentInput | ||
CurrentMousePosition |
returns the last mouse position in model coordinates.
| |
DisassembleBlock | ||
FeedBack |
Gets the container that handles feedback objects (see ActionFeedBack).
| |
IsBackgroundTaskActive | ||
LastSnapMode |
Returns the last snap mode, i.e. the reason why the snap took place. E.g. did snap to an endpoint or did snap to
the surface of a face.
| |
LastSnapObject |
Returns the GeoObject which was involved in the last snap operation. May be null;
| |
ShowActiveObject |
Switches the display of the ActiveObject on and off.
|
Events
Name | Description | |
---|---|---|
ActionDoneEvent |
Event that is fired when this action is done. If your class is derived from ConstructAction you
better override OnDone()()()().
| |
StateChangedEvent |
Required by IShowProperty |