Class ConstructPlane2PointsDrawingPlane
- Namespace
- CADability.Actions
- Assembly
- CADability.dll
Intermediate construction of a plane by two points: the plane contains the line through the two points the user picks and is perpendicular to the active drawing plane (its x-axis is the direction from the first to the second point, its y-axis the normal of the drawing plane, its origin the midpoint of the two points). It is started by a ConstructAction.PlaneInput (menu id "MenuId.Plane.2PointsDrawingPlane") to define a plane while another construction is running; the resulting plane is reported via PlaneChangedEvent, and the plane is shown as a feedback rectangle while the points are entered. Its id is "Construct.Plane.2PointsDrawingPlane".
public class ConstructPlane2PointsDrawingPlane : ConstructAction, ICommandHandler, IPropertyEntry, IIntermediateConstruction
- Inheritance
-
ConstructPlane2PointsDrawingPlane
- Implements
- Inherited Members
Constructors
ConstructPlane2PointsDrawingPlane()
public ConstructPlane2PointsDrawingPlane()
Properties
ConstructedPlane
public Plane ConstructedPlane { get; }
Property Value
Methods
AutoRepeat()
Detremins whether this action supports autorepeat. Autorepeat is enabled in the GlobalSettings.
public override bool AutoRepeat()
Returns
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
OnSetAction()
Implements OnSetAction(). If you override this method don't forget to call the base implementation.
public override void OnSetAction()
Events
PlaneChangedEvent
public event ConstructPlane2PointsDrawingPlane.PlaneChangedDelegate PlaneChangedEvent