Class DrawingPlaneProperty
- Namespace
- CADability.UserInterface
- Assembly
- CADability.dll
Property page entry for the drawing plane of a Projection, the plane in which 2d constructions take place. It shows the origin and the x and y directions of the plane as editable sub entries and offers the context menu "MenuId.DrawingPlane" to select one of the standard planes (optionally with an offset), to define the plane by three points, by a curve or tangential to a surface, and to show or hide the plane.
public class DrawingPlaneProperty : IShowPropertyImpl, IShowProperty, IPropertyEntry, ICommandHandler
- Inheritance
-
DrawingPlaneProperty
- Implements
- Inherited Members
Constructors
DrawingPlaneProperty(Projection, IFrame)
Creates the entry for the drawing plane of projection, the projection of the view the entry
belongs to.
public DrawingPlaneProperty(Projection projection, IFrame frame)
Parameters
projectionProjectionThe projection whose DrawingPlane is edited
frameIFrameThe frame, used to start the actions of the context menu and to access the project
Properties
ContextMenu
Implementation of ContextMenu: the default returns null. An entry whose LabelType contains ContextMenu must override it.
public override MenuWithHandler[] ContextMenu { get; }
Property Value
EntryType
Overrides EntryType, returns GroupTitle.
public override ShowPropertyEntryType EntryType { get; }
Property Value
LabelType
How the label of this entry behaves (see ShowPropertyLabelFlags): whether it can be selected or edited, is bold or has a context menu. The default implementation returns Selectable.
public override ShowPropertyLabelFlags LabelType { get; }
Property Value
PlaneDirectionX
The x direction of the drawing plane as edited in the "DrawingPlane.DirectionX" sub entry (which accesses it via reflection). Setting it only stores the value; the plane of the projection is updated when the selection in the control center leaves the sub entry. Until then the stored value is returned, otherwise the direction of the plane.
public GeoVector PlaneDirectionX { get; set; }
Property Value
PlaneDirectionY
The y direction of the drawing plane as edited in the "DrawingPlane.DirectionY" sub entry (which accesses it via reflection). Setting it only stores the value; the plane of the projection is updated when the selection in the control center leaves the sub entry. Until then the stored value is returned, otherwise the direction of the plane.
public GeoVector PlaneDirectionY { get; set; }
Property Value
PlanePoint
The origin of the drawing plane. Setting it moves the plane of the projection. The "DrawingPlane.Location" sub entry accesses it via reflection.
public GeoPoint PlanePoint { get; set; }
Property Value
SubEntries
The sub entries shown below this entry when it is opened in the property page. The default implementation has none and returns an empty array.
public override IShowProperty[] SubEntries { get; }
Property Value
SubEntriesCount
The number of SubEntries, 0 for an entry that cannot be opened. The default implementation returns 0.
public override int SubEntriesCount { get; }
Property Value
Methods
Added(IPropertyPage)
Starts listening to the selection of the page the entry is shown in, see CADability.UserInterface.DrawingPlaneProperty.OnSelectionChanged(CADability.UserInterface.IPropertyEntry,CADability.UserInterface.IPropertyEntry).
public override void Added(IPropertyPage pp)
Parameters
ppIPropertyPagethe property page the entry was added to
Removed(IPropertyPage)
Stops listening to the selection and applies the changes that are still pending, because the selection will not leave the sub entries any more.
public override void Removed(IPropertyPage pp)
Parameters
ppIPropertyPagethe property page the entry was removed from