Class ConstructPlane
- Namespace
- CADability.Actions
- Assembly
- CADability.dll
Intermediate construction of a Plane from three points: the user picks the origin, a point on the x-axis and a point in the plane that defines the y direction. While the points are entered the plane is shown as a feedback rectangle, and each new plane is reported by the PlaneChangedEvent. It is used, for example, to define the drawing plane interactively from a property entry (see IIntermediateConstruction). Menu id: "Construct.Plane.3Points".
public class ConstructPlane : ConstructAction, ICommandHandler, IPropertyEntry, IIntermediateConstruction
- Inheritance
-
ConstructPlane
- Implements
- Inherited Members
Constructors
ConstructPlane(string)
Creates the action. resourceId is the string table id of the title shown in the property page
(e.g. "Construct.DrawingPlane").
public ConstructPlane(string resourceId)
Parameters
resourceIdstringresource id of the title
Properties
ConstructedPlane
The resulting plane: its location is the first point, its x-axis points from the first to the second point and the third point lies in it. Only available after all three points are fixed and define a valid plane (see Succeeded); otherwise a ConstructPlane.ConstructPlaneException is thrown.
public Plane ConstructedPlane { get; }
Property Value
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
OnSetAction()
Implements OnSetAction(). If you override this method don't forget to call the base implementation.
public override void OnSetAction()
Events
PlaneChangedEvent
Raised whenever one of the three points changes (by mouse move or keyboard) and a plane can be computed from the points entered so far: through the first point parallel to the drawing plane, then through the first two points, finally through all three. Lets the caller (e.g. the drawing plane property) preview the plane.
public event ConstructPlane.PlaneChangedDelegate PlaneChangedEvent