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
driveListDriveList
Schedule(SerializationInfo, StreamingContext)
protected Schedule(SerializationInfo info, StreamingContext context)
Parameters
infoSerializationInfocontextStreamingContext
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
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
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
Name
public string Name { 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
AddPosition(IDrive, double, double)
public void AddPosition(IDrive drive, double time, double position)
Parameters
GetObjectData(IJsonWriteData)
public void GetObjectData(IJsonWriteData data)
Parameters
dataIJsonWriteData
LabelChanged(string)
Implementation of LabelChanged(string). Override if LabelType is Editable.
public override void LabelChanged(string NewText)
Parameters
NewTextstringthe new text
Remove(IDrive)
public void Remove(IDrive drive)
Parameters
driveIDrive
Remove(IDrive, double)
public void Remove(IDrive drive, double time)
Parameters
SetObjectData(IJsonReadData)
public void SetObjectData(IJsonReadData data)
Parameters
dataIJsonReadData