Class DualCurveDrive
- Namespace
- CADability
- Assembly
- CADability.dll
A drive (see IDrive) defined by two CurveDrives: the objects are moved by the rigid motion (with Stretch also scaled) which maps the start points of the two curve drives onto their current positions, like a rod whose ends run along two curves. It has no position of its own, it only follows its two drives. It is also the property entry which shows the drive in the control center.
public class DualCurveDrive : PropertyEntryImpl, IPropertyEntry, IShowProperty, IDrive, ICommandHandler, ISerializable, IDeserializationCallback, IJsonSerialize, IJsonSerializeDone
- Inheritance
-
DualCurveDrive
- Implements
- Inherited Members
Constructors
DualCurveDrive()
public DualCurveDrive()
DualCurveDrive(CurveDrive, CurveDrive)
public DualCurveDrive(CurveDrive drive1, CurveDrive drive2)
Parameters
drive1CurveDrivedrive2CurveDrive
DualCurveDrive(SerializationInfo, StreamingContext)
protected DualCurveDrive(SerializationInfo info, StreamingContext context)
Parameters
infoSerializationInfocontextStreamingContext
Properties
ContextMenu
Must be overridden, when Flags contains PropertyEntryType.ContextMenu. See ContextMenu
public override MenuWithHandler[] ContextMenu { get; }
Property Value
Flags
Implementation of Flags: the derived class states what the entry is and what the user can do with it. The flags must match the overridden members, e.g. HasSubEntries requires SubItems, ValueEditable requires Value and EndEdit(bool, bool, string), DropDown requires GetDropDownList() and ListBoxSelected(int).
public override PropertyEntryType Flags { get; }
Property Value
LabelText
An explicit label text. When set (not null) it is shown instead of the text from the StringTable; use it for entries whose label is not a fixed resource string, e.g. the name of an item. Call Refresh() after changing it while the entry is displayed.
public override string LabelText { get; set; }
Property Value
Stretch
public bool Stretch { get; set; }
Property Value
SubItems
Must be overridden, when Flags contains PropertyEntryType.HasSubEntries. See SubItems
public override IPropertyEntry[] SubItems { get; }
Property Value
Methods
EndEdit(bool, bool, string)
Must be overridden when Flags contains PropertyEntryType.ValueEditable. See EndEdit(bool, bool, string)
public override void EndEdit(bool aborted, bool modified, string newValue)
Parameters
GetObjectData(IJsonWriteData)
public void GetObjectData(IJsonWriteData data)
Parameters
dataIJsonWriteData
Refresh()
Asks the property page to redisplay this entry (see Refresh(IPropertyEntry)); call it after the label, the value or the sub entries changed. Does nothing while the entry is not shown.
public override void Refresh()
SetObjectData(IJsonReadData)
public void SetObjectData(IJsonReadData data)
Parameters
dataIJsonReadData