Table of Contents

Class AxisDrive

Namespace
CADability
Assembly
CADability.dll

Describes a rotation around an axis.

public class AxisDrive : PropertyEntryImpl, IPropertyEntry, IShowProperty, IDrive, ICommandHandler, IDeserializationCallback, ISerializable, IJsonSerialize, IJsonSerializeDone
Inheritance
AxisDrive
Implements
Inherited Members

Constructors

AxisDrive()

protected AxisDrive()

AxisDrive(GeoPoint, GeoVector, double)

Defines a AxisDrive object. The axis must be provided, the driven objects are specified by MovedObjects. The position is meassured in radians.

public AxisDrive(GeoPoint location, GeoVector direction, double currentPosition)

Parameters

location GeoPoint

Location of the axis

direction GeoVector

Direction of the axis

currentPosition double

Current position of the object

AxisDrive(SerializationInfo, StreamingContext)

protected AxisDrive(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

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