Table of Contents

Class Schedule

Namespace
CADability
Assembly
CADability.dll

A time table for an animation in the AnimatedView: for each IDrive of the model's DriveList it stores positions at points in time (AddPosition(IDrive, double, double)), and while the animation runs it sets each drive to the position linearly interpolated between the neighbouring times. It is also the property entry which shows and edits the time table in the control center. The schedules of a model are kept in AllSchedules.

public class Schedule : IShowPropertyImpl, IShowProperty, IPropertyEntry, ISchedule, ICommandHandler, ISerializable, IDeserializationCallback, IJsonSerialize
Inheritance
Schedule
Implements
Inherited Members

Constructors

Schedule()

protected Schedule()

Schedule(DriveList)

public Schedule(DriveList driveList)

Parameters

driveList DriveList

Schedule(SerializationInfo, StreamingContext)

protected Schedule(SerializationInfo info, StreamingContext context)

Parameters

info SerializationInfo
context StreamingContext

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

MenuWithHandler[]

EntryType

Overrides EntryType, returns GroupTitle.

public override ShowPropertyEntryType EntryType { get; }

Property Value

ShowPropertyEntryType

LabelText

Implementation of LabelText, returns either labelTextInternal (if not null) or GetString(string)(resourceId+".Label") Whe set, labelTextInternal is set.

public override string LabelText { get; set; }

Property Value

string

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

ShowPropertyLabelFlags

Name

public string Name { get; set; }

Property Value

string

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

IShowProperty[]

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

int

Methods

AddPosition(IDrive, double, double)

public void AddPosition(IDrive drive, double time, double position)

Parameters

drive IDrive
time double
position double

GetObjectData(IJsonWriteData)

public void GetObjectData(IJsonWriteData data)

Parameters

data IJsonWriteData

LabelChanged(string)

Implementation of LabelChanged(string). Override if LabelType is Editable.

public override void LabelChanged(string NewText)

Parameters

NewText string

the new text

Remove(IDrive)

public void Remove(IDrive drive)

Parameters

drive IDrive

Remove(IDrive, double)

public void Remove(IDrive drive, double time)

Parameters

drive IDrive
time double

SetObjectData(IJsonReadData)

public void SetObjectData(IJsonReadData data)

Parameters

data IJsonReadData