Class ConstructObjectPoint
- Namespace
- CADability.Actions
- Assembly
- CADability.dll
Action that constructs a midpoint between two points. It uses a GeoPointProperty to communicate the constructed point to the outside.
public class ConstructObjectPoint : ConstructAction, ICommandHandler, IPropertyEntry, IIntermediateConstruction
- Inheritance
-
ConstructObjectPoint
- Implements
- Inherited Members
Constructors
ConstructObjectPoint(GeoPointProperty)
public ConstructObjectPoint(GeoPointProperty geoPointProperty)
Parameters
geoPointPropertyGeoPointProperty
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
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()
OnEscape()
This method will be called when the user presses the escape key. The default implementation does nothing.
public override bool OnEscape()
Returns
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()