Table of Contents

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

drive1 CurveDrive
drive2 CurveDrive

DualCurveDrive(SerializationInfo, StreamingContext)

protected DualCurveDrive(SerializationInfo info, StreamingContext context)

Parameters

info SerializationInfo
context StreamingContext

Properties

ContextMenu

Must be overridden, when Flags contains PropertyEntryType.ContextMenu. See ContextMenu

public override MenuWithHandler[] ContextMenu { get; }

Property Value

MenuWithHandler[]

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

PropertyEntryType

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

string

Stretch

public bool Stretch { get; set; }

Property Value

bool

SubItems

Must be overridden, when Flags contains PropertyEntryType.HasSubEntries. See SubItems

public override IPropertyEntry[] SubItems { get; }

Property Value

IPropertyEntry[]

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

aborted bool
modified bool
newValue string

GetObjectData(IJsonWriteData)

public void GetObjectData(IJsonWriteData data)

Parameters

data IJsonWriteData

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

data IJsonReadData