Search Results for

    Show / Hide Table of Contents

    Class CurvePropertyTrackBase

    The timeline track for animating object property via Curve.

    Inheritance
    System.Object
    Control
    ContainerControl
    FlaxEditor.GUI.Timeline.Track
    ConductorTrack
    MemberTrack
    CurvePropertyTrackBase
    CurvePropertyTrack
    Implements
    System.IComparable
    IDrawable
    IKeyframesEditorContext
    Inherited Members
    MemberTrack.ValueSize
    MemberTrack.MemberTypeName
    MemberTrack._previewValue
    MemberTrack._rightKey
    MemberTrack._addKey
    MemberTrack._leftKey
    MemberTrack.GetMember(Type, String)
    MemberTrack.TryGetValue(Object)
    MemberTrack.GetValueText(Object)
    MemberTrack.GetValueDataSize(Type)
    MemberTrack.OnDuplicated(Track)
    MemberTrack.Update(Single)
    MemberTrack.PerformLayoutBeforeChildren()
    MemberTrack.MemberName
    MemberTrack.Member
    MemberTrack.MemberTypes
    MemberTrack.CanDrag
    MemberTrack.CanRename
    MemberTrack.CanCopyPaste
    ConductorTrack.Proxy
    ContainerControl._children
    ContainerControl._containsFocus
    ContainerControl._isLayoutLocked
    ContainerControl.LockChildrenRecursive()
    ContainerControl.UnlockChildrenRecursive()
    ContainerControl.RemoveChildren()
    ContainerControl.DisposeChildren()
    ContainerControl.AddChild<T>()
    ContainerControl.AddChild<T>(T)
    ContainerControl.RemoveChild(Control)
    ContainerControl.GetChild(Int32)
    ContainerControl.GetChild<T>()
    ContainerControl.GetChildIndex(Control)
    ContainerControl.GetChildIndexAt(Float2)
    ContainerControl.GetChildAt(Float2)
    ContainerControl.GetChildAt(Float2, Func<Control, Boolean>)
    ContainerControl.GetChildAtRecursive(Float2)
    ContainerControl.GetClientArea()
    ContainerControl.SortChildren()
    ContainerControl.SortChildrenRecursive()
    ContainerControl.OnChildResized(Control)
    ContainerControl.OnChildrenChanged()
    ContainerControl.GetDesireClientArea(Rectangle)
    ContainerControl.IntersectsChildContent(Control, Float2, Float2)
    ContainerControl.OnNavigate(NavDirection, Float2, Control, List<Control>)
    ContainerControl.CanNavigateChild(Control)
    ContainerControl.NavigationWrap(NavDirection, Float2, List<Control>, Float2)
    ContainerControl.UpdateContainsFocus()
    ContainerControl.UpdateChildrenBounds()
    ContainerControl.PerformLayoutAfterChildren()
    ContainerControl.ClearState()
    ContainerControl.Draw()
    ContainerControl.DrawSelf()
    ContainerControl.DrawChildren()
    ContainerControl.ContainsPoint(Float2, Boolean)
    ContainerControl.PerformLayout(Boolean)
    ContainerControl.RayCast(Float2, Control)
    ContainerControl.OnMouseEnter(Float2)
    ContainerControl.OnMouseMove(Float2)
    ContainerControl.OnMouseLeave()
    ContainerControl.OnMouseWheel(Float2, Single)
    ContainerControl.OnMouseDown(Float2, MouseButton)
    ContainerControl.OnMouseUp(Float2, MouseButton)
    ContainerControl.OnMouseDoubleClick(Float2, MouseButton)
    ContainerControl.IsTouchPointerOver(Int32)
    ContainerControl.OnTouchEnter(Float2, Int32)
    ContainerControl.OnTouchDown(Float2, Int32)
    ContainerControl.OnTouchMove(Float2, Int32)
    ContainerControl.OnTouchUp(Float2, Int32)
    ContainerControl.OnTouchLeave(Int32)
    ContainerControl.OnCharInput(Char)
    ContainerControl.OnKeyDown(KeyboardKeys)
    ContainerControl.OnKeyUp(KeyboardKeys)
    ContainerControl.OnDragEnter(Float2, DragData)
    ContainerControl.OnDragMove(Float2, DragData)
    ContainerControl.OnDragLeave()
    ContainerControl.OnDragDrop(Float2, DragData)
    ContainerControl.OnSizeChanged()
    ContainerControl.Children
    ContainerControl.ChildrenCount
    ContainerControl.HasChildren
    ContainerControl.ContainsFocus
    ContainerControl.ClipChildren
    ContainerControl.CullChildren
    ContainerControl.IsTouchOver
    Control.Resize(Float2)
    Control.UpdateBounds()
    Control.UpdateTransform()
    Control.SetAnchorPreset(AnchorPresets, Boolean, Boolean)
    Control.Dispose()
    Control.Focus()
    Control.Defocus()
    Control.OnGotFocus()
    Control.OnLostFocus()
    Control.OnStartContainsFocus()
    Control.OnEndContainsFocus()
    Control.Focus(Control)
    Control.StartMouseCapture(Boolean)
    Control.EndMouseCapture()
    Control.OnEndMouseCapture()
    Control.GetNavTarget(NavDirection)
    Control.GetNavOrigin(NavDirection)
    Control.NavigationFocus()
    Control.OnSubmit()
    Control.OnTouchLeave()
    Control.DoDragDrop(DragData)
    Control.LinkTooltip(String, Tooltip)
    Control.UnlinkTooltip()
    Control.OnShowTooltip(String, Float2, Rectangle)
    Control.OnTooltipShown(Tooltip)
    Control.OnTestTooltipOverControl(Float2)
    Control.IntersectsContent(Float2, Float2)
    Control.PointToParent(ContainerControl, Float2)
    Control.PointToParent(Float2)
    Control.PointToParent(Float2)
    Control.PointFromParent(Float2)
    Control.PointFromParent(Float2)
    Control.PointFromParent(ContainerControl, Float2)
    Control.PointToWindow(Float2)
    Control.PointFromWindow(Float2)
    Control.PointToScreen(Float2)
    Control.PointFromScreen(Float2)
    Control.OnLocationChanged()
    Control.SetScaleInternal(Float2)
    Control.SetPivotInternal(Float2)
    Control.SetShearInternal(Float2)
    Control.SetRotationInternal(Single)
    Control.OnParentChangedInternal()
    Control.AddUpdateCallbacks(RootControl)
    Control.RemoveUpdateCallbacks(RootControl)
    Control.SetUpdate(Control.UpdateDelegate, Control.UpdateDelegate)
    Control.OnParentResized()
    Control.CompareTo(Object)
    Control.Compare(Control)
    Control.Top
    Control.Bottom
    Control.Left
    Control.Right
    Control.UpperLeft
    Control.UpperRight
    Control.BottomRight
    Control.BottomLeft
    Control.Scale
    Control.Pivot
    Control.Shear
    Control.Rotation
    Control.HasParent
    Control.BackgroundColor
    Control.BackgroundBrush
    Control.Enabled
    Control.EnabledInHierarchy
    Control.Visible
    Control.VisibleInHierarchy
    Control.IsDisposing
    Control.Root
    Control.RootWindow
    Control.DpiScale
    Control.ScreenPos
    Control.AutoFocus
    Control.IsFocused
    Control.IsNavFocused
    Control.IsMouseOver
    Control.IsDragOver
    Control.Tooltip
    Control.ShowTooltip
    Control.EditorBounds
    Control.LocationChanged
    Control.SizeChanged
    Control.ParentChanged
    Control.VisibleChanged
    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
    FlaxEditor.GUI.Timeline.TrackCreateOptions options

    Fields

    Curve

    The curve editor.

    Declaration
    public CurveEditorBase Curve
    Field Value
    FlaxEditor.GUI.CurveEditorBase

    Properties

    CanExpand

    Declaration
    public override bool CanExpand { get; }
    Property Value
    System.Boolean

    Overrides
    FlaxEditor.GUI.Timeline.Track.CanExpand

    Methods

    CreateCurve(Type, Type)

    Creates the curve.

    Declaration
    protected void CreateCurve(Type propertyType, Type curveEditorType)
    Parameters
    System.Type propertyType

    Type of the property (keyframes value).

    System.Type curveEditorType

    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.Single time

    The time to evaluate the member at.

    Returns
    System.Object

    The member value at provided time.

    Overrides
    MemberTrack.Evaluate(Single)

    GetNextKeyframeFrame(Single, out Int32)

    Declaration
    public override bool GetNextKeyframeFrame(float time, out int result)
    Parameters
    System.Single time

    System.Int32 result

    Returns
    System.Boolean

    Overrides
    FlaxEditor.GUI.Timeline.Track.GetNextKeyframeFrame(System.Single, System.Int32)

    GetPreviousKeyframeFrame(Single, out Int32)

    Declaration
    public override bool GetPreviousKeyframeFrame(float time, out int result)
    Parameters
    System.Single time

    System.Int32 result

    Returns
    System.Boolean

    Overrides
    FlaxEditor.GUI.Timeline.Track.GetPreviousKeyframeFrame(System.Single, System.Int32)

    OnContextMenu(ContextMenu)

    Declaration
    protected override void OnContextMenu(ContextMenu menu)
    Parameters
    FlaxEditor.GUI.ContextMenu.ContextMenu menu

    Overrides
    FlaxEditor.GUI.Timeline.Track.OnContextMenu(FlaxEditor.GUI.ContextMenu.ContextMenu)

    OnDestroy()

    Declaration
    public override void OnDestroy()
    Overrides
    MemberTrack.OnDestroy()

    OnExpandedChanged()

    Declaration
    protected override void OnExpandedChanged()
    Overrides
    ConductorTrack.OnExpandedChanged()

    OnKeyframesCopy(IKeyframesEditor, Nullable<Single>, StringBuilder)

    Called when keyframes selection should be copied.

    Declaration
    public void OnKeyframesCopy(IKeyframesEditor editor, Nullable<float> timeOffset, StringBuilder data)
    Parameters
    FlaxEditor.GUI.IKeyframesEditor editor

    The source editor.

    System.Nullable<System.Single> timeOffset

    The additional time offset to apply to the copied keyframes (optional).

    System.Text.StringBuilder data

    The result copy data text stream.

    Implements
    IKeyframesEditorContext.OnKeyframesCopy(IKeyframesEditor, Nullable<Single>, StringBuilder)

    OnKeyframesDelete(IKeyframesEditor)

    Called when keyframes selection should be deleted for all editors.

    Declaration
    public void OnKeyframesDelete(IKeyframesEditor editor)
    Parameters
    FlaxEditor.GUI.IKeyframesEditor editor

    The source editor.

    Implements
    IKeyframesEditorContext.OnKeyframesDelete(IKeyframesEditor)

    OnKeyframesDeselect(IKeyframesEditor)

    Called when keyframes selection should be cleared for all editors.

    Declaration
    public void OnKeyframesDeselect(IKeyframesEditor editor)
    Parameters
    FlaxEditor.GUI.IKeyframesEditor editor

    The source editor.

    Implements
    IKeyframesEditorContext.OnKeyframesDeselect(IKeyframesEditor)

    OnKeyframesGet(Action<String, Single, Object>)

    Called when collecting keyframes from the context.

    Declaration
    public void OnKeyframesGet(Action<string, float, object> get)
    Parameters
    System.Action<System.String, System.Single, System.Object> get

    The getter function to call for all keyframes. Args are: track name, keyframe time, keyframe object.

    Implements
    IKeyframesEditorContext.OnKeyframesGet(Action<String, Single, Object>)

    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
    FlaxEditor.GUI.IKeyframesEditor editor

    The source editor.

    ContainerControl control

    The source movement control.

    Float2 location

    The source movement location (in source control local space).

    System.Boolean start

    The movement start flag.

    System.Boolean end

    The movement end flag.

    Implements
    IKeyframesEditorContext.OnKeyframesMove(IKeyframesEditor, ContainerControl, Float2, Boolean, Boolean)

    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
    FlaxEditor.GUI.IKeyframesEditor editor

    The source editor.

    System.Nullable<System.Single> timeOffset

    The additional time offset to apply to the pasted keyframes (optional).

    System.String[] datas

    The pasted data text.

    System.Int32 index

    The counter for the current data index. Set to -1 until the calling editor starts paste operation.

    Implements
    IKeyframesEditorContext.OnKeyframesPaste(IKeyframesEditor, Nullable<Single>, String[], ref Int32)

    OnKeyframesSelection(IKeyframesEditor, ContainerControl, Rectangle)

    Called when keyframes selection rectangle gets updated.

    Declaration
    public void OnKeyframesSelection(IKeyframesEditor editor, ContainerControl control, Rectangle selection)
    Parameters
    FlaxEditor.GUI.IKeyframesEditor editor

    The source editor.

    ContainerControl control

    The source selection control.

    Rectangle selection

    The source selection rectangle (in source control local space).

    Implements
    IKeyframesEditorContext.OnKeyframesSelection(IKeyframesEditor, ContainerControl, Rectangle)

    OnKeyframesSelectionCount()

    Called to calculate the total amount of selected keyframes in the editor.

    Declaration
    public int OnKeyframesSelectionCount()
    Returns
    System.Int32

    The selected keyframes amount.

    Implements
    IKeyframesEditorContext.OnKeyframesSelectionCount()

    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.Collections.Generic.List<System.Collections.Generic.KeyValuePair<System.Single, System.Object>> keyframes

    The list of keyframes, null for empty list. Keyframe data is: time and keyframe object.

    Implements
    IKeyframesEditorContext.OnKeyframesSet(List<KeyValuePair<Single, Object>>)

    OnMemberChanged(MemberInfo, Type)

    Called when member gets changed.

    Declaration
    protected override void OnMemberChanged(MemberInfo value, Type type)
    Parameters
    System.Reflection.MemberInfo value

    The member value assigned.

    System.Type type

    The member type assigned.

    Overrides
    MemberTrack.OnMemberChanged(MemberInfo, Type)

    OnTimelineArrange()

    Declaration
    public override void OnTimelineArrange()
    Overrides
    ConductorTrack.OnTimelineArrange()

    OnTimelineChanged(Timeline)

    Declaration
    public override void OnTimelineChanged(Timeline timeline)
    Parameters
    FlaxEditor.GUI.Timeline.Timeline timeline

    Overrides
    MemberTrack.OnTimelineChanged(Timeline)

    OnTimelineCurrentFrameChanged(Int32)

    Declaration
    public override void OnTimelineCurrentFrameChanged(int frame)
    Parameters
    System.Int32 frame

    Overrides
    FlaxEditor.GUI.Timeline.Track.OnTimelineCurrentFrameChanged(System.Int32)

    OnTimelineFpsChanged(Single, Single)

    Declaration
    public override void OnTimelineFpsChanged(float before, float after)
    Parameters
    System.Single before

    System.Single after

    Overrides
    ConductorTrack.OnTimelineFpsChanged(Single, Single)

    OnTimelineZoomChanged()

    Declaration
    public override void OnTimelineZoomChanged()
    Overrides
    ConductorTrack.OnTimelineZoomChanged()

    OnUndo()

    Declaration
    public override void OnUndo()
    Overrides
    FlaxEditor.GUI.Timeline.Track.OnUndo()

    OnVisibleChanged()

    Called when visible state gets changed.

    Declaration
    protected override void OnVisibleChanged()
    Overrides
    ConductorTrack.OnVisibleChanged()

    Extension Methods

    Extensions.ReflectiveCompare<T>(T, T)
    Extensions.RawClone<T>(T)

    See Also

    MemberTrack
    In This Article
    Back to top Copyright © 2012-2024 Wojciech Figat