Class ConstructAngleTwoPoints
- Namespace
- CADability.Actions
- Assembly
- CADability.dll
Action that constructs an angle defined by two points. It uses a AngleProperty to communicate the constructed point to the outside.
public class ConstructAngleTwoPoints : ConstructAction, ICommandHandler, IPropertyEntry, IIntermediateConstruction
- Inheritance
-
ConstructAngleTwoPoints
- Implements
- Inherited Members
Constructors
ConstructAngleTwoPoints(AngleProperty)
public ConstructAngleTwoPoints(AngleProperty angleProperty)
Parameters
anglePropertyAngleProperty
Methods
GetID()
Must be implemented by derived class. Returns an identification string. All CADability actions return the unique strings like "Draw.Line.TwoPoints" or "Zoom"
public override string GetID()
Returns
- string
the identification of the action
OnActivate(Action, bool)
Implements OnActivate(Action, bool). If you override this method don't forget to call the bas implementation.
public override void OnActivate(Action OldActiveAction, bool SettingAction)
Parameters
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 and HasValidData() returns true) to the active model and removes this action. Override this method if you need a different behaviour.
public override void OnDone()
OnInactivate(Action, bool)
Implements OnInactivate(Action, bool). If you override this method don't forget to call the bas implementation.
public override void OnInactivate(Action NewActiveAction, bool RemovingAction)
Parameters
NewActiveActionActionthe action that will become active
RemovingActionbooltrue: if called because the action is removed, false: if called when a new action is set on top of this action
OnRemoveAction()
Implements OnRemoveAction(). If you override this method don't forget to call the bas implementation.
public override void OnRemoveAction()
OnSetAction()
Implements OnSetAction(). If you override this method don't forget to call the base implementation.
public override void OnSetAction()