public OffsetKeyframeProperties(Widget parentWidget, OffsetSequenceEditor sequenceEditor, GuiFrameworkUICallback uiCallback) : base(parentWidget, "Medical.GUI.OffsetSequence.OffsetKeyframeProperties.layout") { this.sequenceEditor = sequenceEditor; propertiesForm = new PropertiesForm(mainWidget, uiCallback); }
public void addKeyFramesToSequence(OffsetModifierSequence sequence, OffsetSequenceEditor editor, float markerTime, float totalDuration) { foreach (var copiedAction in copiedActions) { copiedAction.BlendAmount = copiedAction.BlendAmount - startTimeZeroOffset + markerTime; if (copiedAction.BlendAmount > totalDuration) { copiedAction.BlendAmount = totalDuration; } sequence.addKeyframe(copiedAction); editor.addToTimeline(copiedAction); } sequence.sort(); }
public OffsetKeyframeData(OffsetModifierKeyframe keyframe, OffsetModifierSequence sequence, OffsetSequenceEditor editor) { this.keyframe = keyframe; this.sequence = sequence; this.editor = editor; }