Class CurvePropertyTrackBase
The timeline track for animating object property via Curve.
Inheritance
Namespace: FlaxEditor.GUI.Timeline.Tracks
Assembly: FlaxEngine.CSharp.dll
Syntax
public abstract class CurvePropertyTrackBase : MemberTrack, IComparable, IDrawable, IKeyframesEditorContext
Constructors
CurvePropertyTrackBase(ref TrackCreateOptions)
Declaration
public CurvePropertyTrackBase(ref TrackCreateOptions options)
Parameters
Flax
|
Fields
Curve
The curve editor.
Declaration
public CurveEditorBase Curve
Field Value
Flax
|
Properties
CanExpand
Declaration
public override bool CanExpand { get; }
Property Value
System.
|
Overrides
Methods
CreateCurve(Type, Type)
Creates the curve.
Declaration
protected void CreateCurve(Type propertyType, Type curveEditorType)
Parameters
System. Type of the property (keyframes value). |
System. Type of the curve editor (generic type of the curve editor). |
Evaluate(Single)
Evaluates the member value at the specified time.
Declaration
public override object Evaluate(float time)
Parameters
System. The time to evaluate the member at. |
Returns
System. The member value at provided time. |
Overrides
GetNextKeyframeFrame(Single, out Int32)
Declaration
public override bool GetNextKeyframeFrame(float time, out int result)
Parameters
System.
|
System.
|
Returns
System.
|
Overrides
GetPreviousKeyframeFrame(Single, out Int32)
Declaration
public override bool GetPreviousKeyframeFrame(float time, out int result)
Parameters
System.
|
System.
|
Returns
System.
|
Overrides
OnContextMenu(ContextMenu)
Declaration
protected override void OnContextMenu(ContextMenu menu)
Parameters
Flax
|
Overrides
OnDestroy()
OnExpandedChanged()
Declaration
protected override void OnExpandedChanged()
Overrides
OnKeyframesCopy(IKeyframesEditor, Nullable<Single>, StringBuilder)
Called when keyframes selection should be copied.
Declaration
public void OnKeyframesCopy(IKeyframesEditor editor, Nullable<float> timeOffset, StringBuilder data)
Parameters
Flax The source editor. |
System. The additional time offset to apply to the copied keyframes (optional). |
System. The result copy data text stream. |
Implements
OnKeyframesDelete(IKeyframesEditor)
Called when keyframes selection should be deleted for all editors.
Declaration
public void OnKeyframesDelete(IKeyframesEditor editor)
Parameters
Flax The source editor. |
Implements
OnKeyframesDeselect(IKeyframesEditor)
Called when keyframes selection should be cleared for all editors.
Declaration
public void OnKeyframesDeselect(IKeyframesEditor editor)
Parameters
Flax The source editor. |
Implements
OnKeyframesGet(Action<String, Single, Object>)
Called when collecting keyframes from the context.
Declaration
public void OnKeyframesGet(Action<string, float, object> get)
Parameters
System. The getter function to call for all keyframes. Args are: track name, keyframe time, keyframe object. |
Implements
OnKeyframesMove(IKeyframesEditor, ContainerControl, Float2, Boolean, Boolean)
Called when keyframes selection should be moved.
Declaration
public void OnKeyframesMove(IKeyframesEditor editor, ContainerControl control, Float2 location, bool start, bool end)
Parameters
Flax The source editor. |
Container The source movement control. |
Float2
location
The source movement location (in source control local space). |
System. The movement start flag. |
System. The movement end flag. |
Implements
OnKeyframesPaste(IKeyframesEditor, Nullable<Single>, String[], ref Int32)
Called when keyframes should be pasted (from clipboard).
Declaration
public void OnKeyframesPaste(IKeyframesEditor editor, Nullable<float> timeOffset, string[] datas, ref int index)
Parameters
Flax The source editor. |
System. The additional time offset to apply to the pasted keyframes (optional). |
System. The pasted data text. |
System. The counter for the current data index. Set to -1 until the calling editor starts paste operation. |
Implements
OnKeyframesSelection(IKeyframesEditor, ContainerControl, Rectangle)
Called when keyframes selection rectangle gets updated.
Declaration
public void OnKeyframesSelection(IKeyframesEditor editor, ContainerControl control, Rectangle selection)
Parameters
Flax The source editor. |
Container The source selection control. |
Rectangle
selection
The source selection rectangle (in source control local space). |
Implements
OnKeyframesSelectionCount()
Called to calculate the total amount of selected keyframes in the editor.
Declaration
public int OnKeyframesSelectionCount()
Returns
System. The selected keyframes amount. |
Implements
OnKeyframesSet(List<KeyValuePair<Single, Object>>)
Called when setting keyframes data (opposite to OnKeyframesGet(Action<String, Single, Object>)).
Declaration
public void OnKeyframesSet(List<KeyValuePair<float, object>> keyframes)
Parameters
System. The list of keyframes, null for empty list. Keyframe data is: time and keyframe object. |
Implements
OnMemberChanged(MemberInfo, Type)
Called when member gets changed.
Declaration
protected override void OnMemberChanged(MemberInfo value, Type type)
Parameters
System. The member value assigned. |
System. The member type assigned. |
Overrides
OnTimelineArrange()
OnTimelineChanged(Timeline)
Declaration
public override void OnTimelineChanged(Timeline timeline)
Parameters
Flax
|
Overrides
OnTimelineCurrentFrameChanged(Int32)
Declaration
public override void OnTimelineCurrentFrameChanged(int frame)
Parameters
System.
|
Overrides
OnTimelineFpsChanged(Single, Single)
Declaration
public override void OnTimelineFpsChanged(float before, float after)
Parameters
System.
|
System.
|
Overrides
OnTimelineZoomChanged()
Declaration
public override void OnTimelineZoomChanged()
Overrides
OnUndo()
Declaration
public override void OnUndo()
Overrides
OnVisibleChanged()
Called when visible state gets changed.
Declaration
protected override void OnVisibleChanged()