CADability dotNET

The ConstructAction type exposes the following members.

Constructors

  NameDescription
Protected methodConstructAction
Initializes some properties. Set the properties you need in your constructor.

Methods

  NameDescription
Public methodAutoRepeat
Detremins whether this action supports autorepeat. Autorepeat is enabled in the GlobalSettings.
(Overrides Action..::..AutoRepeat()()()().)
Protected methodCancelBackgroundTask
Public methodFindShape
Tries to find a CompoundShape that encloses the point p on the plane plane.
Protected methodFindTangentialPoint
Additional posibility for the derived action to specify a tangential point besides the tangential point from the base point
Protected methodFinish
Explicitly finish this action. OnDone will be called.
Protected methodKeepAsLastStyle
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.
Protected methodMayFinish
Public methodOnActivate
Implements OnActivate(Action, Boolean). If you override this method don't forget to call the bas implementation.
(Overrides Action..::..OnActivate(Action, Boolean).)
Public methodOnCommand
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).)
Public methodOnDifferentSolution
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.
Public methodOnDone
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.
Public methodOnEnter()()()()
Overrides OnEnter()()()()
(Overrides Action..::..OnEnter()()()().)
Public methodOnEnter(Object)
Overrides OnEnter()()()(). Usually you don't override this method, but handle the appropriate events of the input objects.
(Overrides Action..::..OnEnter(Object).)
Public methodOnEscape()()()()
Overrides OnEscape()()()()
(Overrides Action..::..OnEscape()()()().)
Public methodOnEscape(Object)
Overrides OnEscape()()()(). Usually you don't override this method, but handle the appropriate events of the input objects.
(Overrides Action..::..OnEscape(Object).)
Public methodOnInactivate
Implements OnInactivate(Action, Boolean). If you override this method don't forget to call the bas implementation.
(Overrides Action..::..OnInactivate(Action, Boolean).)
Public methodOnMouseDown
Implements OnMouseDown(MouseEventArgs, IView). If you override this method don't forget to call the bas implementation.
(Overrides Action..::..OnMouseDown(MouseEventArgs, IView).)
Public methodOnMouseLeave
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).)
Public methodOnMouseMove
Implements OnMouseMove(MouseEventArgs, IView). If you override this method don't forget to call the bas implementation.
(Overrides Action..::..OnMouseMove(MouseEventArgs, IView).)
Public methodOnMouseUp
Implements OnMouseUp(MouseEventArgs, IView). If you override this method don't forget to call the bas implementation.
(Overrides Action..::..OnMouseUp(MouseEventArgs, IView).)
Public methodOnRemoveAction
Implements OnRemoveAction()()()(). If you override this method don't forget to call the bas implementation.
(Overrides Action..::..OnRemoveAction()()()().)
Public methodOnSetAction
Implements OnSetAction()()()(). If you override this method don't forget to call the bas implementation.
(Overrides Action..::..OnSetAction()()()().)
Public methodOnSolution
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.
Public methodOnUpdateCommand (Overrides Action..::..OnUpdateCommand(String, CommandState).)
Public methodOnViewsChanged
Implements OnViewsChanged()()()(). This implementation aborts the action.
(Overrides Action..::..OnViewsChanged()()()().)
Public methodSetFocus
Sets the input focus to the given input object. The input object must be one of those given in the SetInput(array<Object>[]()[][]) method.
Public methodSetInput
Public methodSnapPoint(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.
Public methodSnapPoint(MouseEventArgs, GeoPoint, IView, SnapPointFinder..::..DidSnapModes%)
Protected methodStartBackgroundTask
Protected methodWaitForBackgroundTask

Fields

  NameDescription
Public fieldCurrentMousePoint
The current mouse position for this action
Public fieldMultiSolution
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.
Public fieldMultiSolutionCount
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
Public fieldShowAttributes
Display the attributes of the active object.
Public fieldTitleId
The title id (resource id) for the title of the action in the control center

Properties

  NameDescription
Public propertyActiveObject
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.
Public propertyBasePoint
Manche Fangoperationen benötigen einen Ausgangspunkt (z.B. der Orthogonalmodus). Dieser kann hier gesetzt werden. Wurde noch keiner gesetzt, so arbeiten diese Fangmodi nicht.
Protected propertyCurrentInput
Public propertyCurrentMousePosition
returns the last mouse position in model coordinates.
Public propertyDisassembleBlock
Public propertyFeedBack
Gets the container that handles feedback objects (see ActionFeedBack).
Protected propertyIsBackgroundTaskActive
Public propertyLastSnapMode
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.
Public propertyLastSnapObject
Returns the GeoObject which was involved in the last snap operation. May be null;
Public propertyShowActiveObject
Switches the display of the ActiveObject on and off.

Events

  NameDescription
Public eventActionDoneEvent
Event that is fired when this action is done. If your class is derived from ConstructAction you better override OnDone()()()().
Public eventStateChangedEvent
Required by IShowProperty

Explicit Interface Implementations

See Also