Class GeneralGeoVectorAction
Simple Action to modify a GeoVector. This action doesn't set up an own ControlCenter entry but assumes there is a GeoVectorProperty entry active in the ControlCenter.
Implements
Inherited Members
Namespace: CADability.Actions
Assembly: CADability.dll
Syntax
public class GeneralGeoVectorAction : Action, ICommandHandler
Constructors
| Improve this Doc View SourceGeneralGeoVectorAction(GeoVectorProperty, GeoPoint)
Constructs a GeneralGeoVectorAction to modify the provided GeoVectorProperty
Declaration
public GeneralGeoVectorAction(GeoVectorProperty ToModify, GeoPoint basePoint)
Parameters
| Type | Name | Description |
|---|---|---|
| GeoVectorProperty | ToModify | Property to modify |
| GeoPoint | basePoint | A basePoint for the modification |
GeneralGeoVectorAction(GeoVectorProperty, GeoPoint, IGeoObject)
Declaration
public GeneralGeoVectorAction(GeoVectorProperty ToModify, GeoPoint basePoint, IGeoObject ignoreSnap)
Parameters
| Type | Name | Description |
|---|---|---|
| GeoVectorProperty | ToModify | |
| GeoPoint | basePoint | |
| IGeoObject | ignoreSnap |
Fields
| Improve this Doc View SourceUserData
UserData to differentiate between multiple GeneralGeoVectorActions.
Declaration
public UserData UserData
Field Value
| Type | Description |
|---|---|
| UserData |
Methods
| Improve this Doc View SourceGetID()
Implements GetID().
Declaration
public override string GetID()
Returns
| Type | Description |
|---|---|
| System.String |
Overrides
| Improve this Doc View SourceOnActivate(Action, Boolean)
Implements OnActivate(Action, Boolean). If you override this method don't forget to call the bas implementation.
Declaration
public override void OnActivate(Action OldActiveAction, bool SettingAction)
Parameters
| Type | Name | Description |
|---|---|---|
| Action | OldActiveAction | |
| System.Boolean | SettingAction |
Overrides
| Improve this Doc View SourceOnEnter()
Declaration
public override bool OnEnter()
Returns
| Type | Description |
|---|---|
| System.Boolean |
Overrides
| Improve this Doc View SourceOnEscape()
Declaration
public override bool OnEscape()
Returns
| Type | Description |
|---|---|
| System.Boolean |
Overrides
| Improve this Doc View SourceOnInactivate(Action, Boolean)
Implements OnInactivate(Action, Boolean). If you override this method don't forget to call the bas implementation.
Declaration
public override void OnInactivate(Action NewActiveAction, bool RemovingAction)
Parameters
| Type | Name | Description |
|---|---|---|
| Action | NewActiveAction |
|
| System.Boolean | RemovingAction |
|
Overrides
| Improve this Doc View SourceOnMouseMove(MouseEventArgs, IView)
Implements OnMouseMove(MouseEventArgs, IView). If you override this method don't forget to call the bas implementation.
Declaration
public override void OnMouseMove(MouseEventArgs e, IView vw)
Parameters
| Type | Name | Description |
|---|---|---|
| MouseEventArgs | e |
|
| IView | vw |
|
Overrides
| Improve this Doc View SourceOnMouseUp(MouseEventArgs, IView)
Implements OnMouseUp(MouseEventArgs, IView). If you override this method don't forget to call the bas implementation.
Declaration
public override void OnMouseUp(MouseEventArgs e, IView vw)
Parameters
| Type | Name | Description |
|---|---|---|
| MouseEventArgs | e |
|
| IView | vw |
|
Overrides
| Improve this Doc View SourceOnRemoveAction()
Declaration
public override void OnRemoveAction()
Overrides
| Improve this Doc View SourceOnSetAction()
Implements OnSetAction(). If you override this method don't forget to call the bas implementation.
Declaration
public override void OnSetAction()
Overrides
Events
| Improve this Doc View SourceSetGeoVectorEvent
Event beeing called when the property changes. You don't need to specify a handler here because GeoVectorProperty.SetGeoVector is beeing called.
Declaration
public event GeneralGeoVectorAction.SetGeoVectorDelegate SetGeoVectorEvent
Event Type
| Type | Description |
|---|---|
| GeneralGeoVectorAction.SetGeoVectorDelegate |