Search Results for

    Show / Hide Table of Contents

    Class VisjectFunctionSurfaceWindow<TAsset, TSurface>

    The base class for editor windows that use FlaxEditor.Surface.VisjectSurface for content editing by graph functions (eg. material functions, particle emitter functions).

    Inheritance
    System.Object
    Control
    ContainerControl
    FlaxEngine.GUI.ScrollableControl
    Panel
    DockWindow
    EditorWindow
    AssetEditorWindow
    AssetEditorWindowBase<TAsset>
    ClonedAssetEditorWindowBase<TAsset>
    VisjectFunctionSurfaceWindow<TAsset, TSurface>
    AnimationGraphFunctionWindow
    MaterialFunctionWindow
    ParticleEmitterFunctionWindow
    Implements
    System.IComparable
    IDrawable
    IEditable
    Inherited Members
    ClonedAssetEditorWindowBase<TAsset>.SaveToOriginal()
    ClonedAssetEditorWindowBase<TAsset>.LoadAsset()
    ClonedAssetEditorWindowBase<TAsset>.OriginalAsset
    AssetEditorWindowBase<TAsset>._isWaitingForLoaded
    AssetEditorWindowBase<TAsset>._asset
    AssetEditorWindowBase<TAsset>.RefreshAsset()
    AssetEditorWindowBase<TAsset>.ReloadAsset()
    AssetEditorWindowBase<TAsset>.OnAssetLoaded()
    AssetEditorWindowBase<TAsset>.OnAssetLoadFailed()
    AssetEditorWindowBase<TAsset>.OnShow()
    AssetEditorWindowBase<TAsset>.OnItemReimported(ContentItem)
    AssetEditorWindowBase<TAsset>.Asset
    AssetEditorWindow._item
    AssetEditorWindow._toolstrip
    AssetEditorWindow.UpdateTitle()
    AssetEditorWindow.IsEditingItem(ContentItem)
    AssetEditorWindow.OnClosing(ClosingReason)
    AssetEditorWindow.OnClose()
    AssetEditorWindow.OnScriptsReloadBegin()
    AssetEditorWindow.MarkAsEdited()
    AssetEditorWindow.ClearEditedFlag()
    AssetEditorWindow.OnEditedState()
    AssetEditorWindow.OnEditedStateChanged()
    AssetEditorWindow.OnShowContextMenu(ContextMenu)
    AssetEditorWindow.OnItemDeleted(ContentItem)
    AssetEditorWindow.OnItemRenamed(ContentItem)
    AssetEditorWindow.OnItemDispose(ContentItem)
    AssetEditorWindow.Item
    AssetEditorWindow.ToolStrip
    AssetEditorWindow.SerializationTypename
    AssetEditorWindow.WindowTitleName
    AssetEditorWindow.IsEdited
    AssetEditorWindow.OnEdited
    EditorWindow.Editor
    EditorWindow.OnSceneSaving(Scene, Guid)
    EditorWindow.OnSceneSaved(Scene, Guid)
    EditorWindow.OnSceneSaveError(Scene, Guid)
    EditorWindow.OnSceneLoading(Scene, Guid)
    EditorWindow.OnSceneLoaded(Scene, Guid)
    EditorWindow.OnSceneLoadError(Scene, Guid)
    EditorWindow.OnSceneUnloading(Scene, Guid)
    EditorWindow.OnSceneUnloaded(Scene, Guid)
    EditorWindow.OnPlayBeginning()
    EditorWindow.OnPlayBegin()
    EditorWindow.OnPlayEnd()
    EditorWindow.OnInit()
    EditorWindow.OnUpdate()
    EditorWindow.OnExit()
    EditorWindow.OnEditorStateChanged()
    EditorWindow.OnKeyDown(KeyboardKeys)
    EditorWindow.CanOpenContentFinder
    EditorWindow.CanUseNavigation
    DockWindow._masterPanel
    DockWindow._dockedTo
    DockWindow.InputActions
    DockWindow.ShowFloating()
    DockWindow.ShowFloating(WindowStartPosition)
    DockWindow.ShowFloating(Float2, WindowStartPosition)
    DockWindow.ShowFloating(Float2, Float2, WindowStartPosition)
    DockWindow.Show(DockState, DockPanel, Boolean, Nullable<Single>)
    DockWindow.Show(DockState, DockWindow)
    DockWindow.FocusOrShow()
    DockWindow.FocusOrShow(DockState)
    DockWindow.Hide()
    DockWindow.Close(ClosingReason)
    DockWindow.SelectTab(Boolean)
    DockWindow.BringToFront()
    DockWindow.OnUnlink()
    DockWindow.Undock()
    DockWindow.OnLayoutSerialize(XmlWriter)
    DockWindow.OnLayoutDeserialize(XmlElement)
    DockWindow.OnLayoutDeserialize()
    DockWindow.LayoutSerializeSplitter(XmlWriter, String, SplitPanel)
    DockWindow.LayoutDeserializeSplitter(XmlElement, String, SplitPanel)
    DockWindow.Focus()
    DockWindow.PerformLayoutBeforeChildren()
    DockWindow.HideOnClose
    DockWindow.MasterPanel
    DockWindow.ParentDockPanel
    DockWindow.IsDocked
    DockWindow.IsSelected
    DockWindow.IsHidden
    DockWindow.DefaultSize
    DockWindow.Title
    DockWindow.Icon
    DockWindow.TitleSize
    DockWindow.UseLayoutData
    Panel.SetViewOffset(Float2)
    Panel.FastScroll()
    Panel.ScrollViewTo(Control, Boolean)
    Panel.ScrollViewTo(Float2, Boolean)
    Panel.ScrollViewTo(Rectangle, Boolean)
    Panel.OnMouseDown(Float2, MouseButton)
    Panel.OnMouseWheel(Float2, Single)
    Panel.RemoveChildren()
    Panel.DisposeChildren()
    Panel.OnChildResized(Control)
    Panel.Draw()
    Panel.ContainsPoint(Float2, Boolean)
    Panel.IntersectsChildContent(Control, Float2, Float2)
    Panel.PerformLayout(Boolean)
    Panel.ArrangeAndGetBounds()
    Panel.Arrange()
    Panel.GetDesireClientArea(Rectangle)
    Panel.OnDragMove(Float2, DragData)
    Panel.ViewBottom
    Panel.ControlsBounds
    Panel.ScrollBars
    Panel.ScrollBarsSize
    Panel.AlwaysShowScrollbars
    Panel.ScrollMargin
    Panel.ScrollbarTrackColor
    Panel.ScrollbarThumbColor
    Panel.ScrollbarThumbSelectedColor
    ContainerControl._children
    ContainerControl._containsFocus
    ContainerControl._isLayoutLocked
    ContainerControl.LockChildrenRecursive()
    ContainerControl.UnlockChildrenRecursive()
    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.OnChildrenChanged()
    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.DrawSelf()
    ContainerControl.DrawChildren()
    ContainerControl.RayCast(Float2, Control)
    ContainerControl.OnMouseEnter(Float2)
    ContainerControl.OnMouseMove(Float2)
    ContainerControl.OnMouseLeave()
    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.OnKeyUp(KeyboardKeys)
    ContainerControl.OnDragEnter(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.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.OnVisibleChanged()
    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.Windows.Assets
    Assembly: FlaxEngine.CSharp.dll
    Syntax
    public abstract class VisjectFunctionSurfaceWindow<TAsset, TSurface> : ClonedAssetEditorWindowBase<TAsset>, IComparable, IDrawable, IEditable, IContentItemOwner, IVisjectSurfaceOwner, ISurfaceContext where TAsset : Asset where TSurface : VisjectSurface
    Type Parameters
    TAsset

    TSurface

    Constructors

    VisjectFunctionSurfaceWindow(Editor, AssetItem)

    Declaration
    protected VisjectFunctionSurfaceWindow(Editor editor, AssetItem item)
    Parameters
    Editor editor

    FlaxEditor.Content.AssetItem item

    Fields

    _isWaitingForSurfaceLoad

    True if window is waiting for asset load to load surface.

    Declaration
    protected bool _isWaitingForSurfaceLoad
    Field Value
    System.Boolean

    _panel

    The panel for the surface.

    Declaration
    protected readonly Panel _panel
    Field Value
    Panel

    _redoButton

    Redo button.

    Declaration
    protected ToolStripButton _redoButton
    Field Value
    FlaxEditor.GUI.ToolStripButton

    _saveButton

    Save button.

    Declaration
    protected ToolStripButton _saveButton
    Field Value
    FlaxEditor.GUI.ToolStripButton

    _surface

    The surface.

    Declaration
    protected TSurface _surface
    Field Value
    TSurface

    _tmpAssetIsDirty

    True if temporary asset is dirty, otherwise false.

    Declaration
    protected bool _tmpAssetIsDirty
    Field Value
    System.Boolean

    _undo

    The undo.

    Declaration
    protected Undo _undo
    Field Value
    Undo

    _undoButton

    Undo button.

    Declaration
    protected ToolStripButton _undoButton
    Field Value
    FlaxEditor.GUI.ToolStripButton

    Properties

    ParentContext

    Declaration
    public VisjectSurfaceContext ParentContext { get; }
    Property Value
    FlaxEditor.Surface.VisjectSurfaceContext

    Surface

    Gets the Visject Surface.

    Declaration
    public TSurface Surface { get; }
    Property Value
    TSurface

    SurfaceAsset

    Declaration
    public Asset SurfaceAsset { get; }
    Property Value
    Asset

    SurfaceData

    Declaration
    public abstract byte[] SurfaceData { get; set; }
    Property Value
    System.Byte[]

    SurfaceName

    Declaration
    public abstract string SurfaceName { get; }
    Property Value
    System.String

    Undo

    Gets the undo history context for this window.

    Declaration
    public Undo Undo { get; }
    Property Value
    Undo

    Methods

    LoadSurface()

    Loads the surface from the asset. Called during Update(Single) when asset is loaded and surface is missing.

    Declaration
    protected virtual bool LoadSurface()
    Returns
    System.Boolean

    True if failed, otherwise false.

    OnAssetLinked()

    Called when asset gets linked and window can setup UI for it.

    Declaration
    protected override void OnAssetLinked()
    Overrides
    FlaxEditor.Windows.Assets.AssetEditorWindowBase<TAsset>.OnAssetLinked()

    OnContextCreated(VisjectSurfaceContext)

    Declaration
    public void OnContextCreated(VisjectSurfaceContext context)
    Parameters
    FlaxEditor.Surface.VisjectSurfaceContext context

    OnDestroy()

    Method called when managed instance should be destroyed

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

    OnSurfaceClose()

    Declaration
    public void OnSurfaceClose()

    OnSurfaceEditedChanged()

    Declaration
    public void OnSurfaceEditedChanged()

    OnSurfaceGraphEdited()

    Declaration
    public void OnSurfaceGraphEdited()

    RefreshTempAsset()

    Refreshes temporary asset to see changes live when editing the surface.

    Declaration
    public bool RefreshTempAsset()
    Returns
    System.Boolean

    True if cannot refresh it, otherwise false.

    Save()

    Tries to save asset changes if it has been edited.

    Declaration
    public override void Save()
    Overrides
    AssetEditorWindow.Save()

    SaveSurface()

    Saves the surface to the asset. Called during Update(Single) when asset is loaded and surface is missing.

    Declaration
    protected virtual bool SaveSurface()
    Returns
    System.Boolean

    True if failed, otherwise false.

    ShowWholeGraph()

    Shows the whole surface graph.

    Declaration
    public void ShowWholeGraph()

    UnlinkItem()

    Unlinks the item. Removes reference to it and unbinds all events.

    Declaration
    protected override void UnlinkItem()
    Overrides
    FlaxEditor.Windows.Assets.AssetEditorWindowBase<TAsset>.UnlinkItem()

    Update(Single)

    Perform control update and all its children

    Declaration
    public override void Update(float deltaTime)
    Parameters
    System.Single deltaTime

    Delta time in seconds

    Overrides
    FlaxEditor.Windows.Assets.AssetEditorWindowBase<TAsset>.Update(System.Single)

    UpdateToolstrip()

    Updates the toolstrip buttons and other controls. Called after some window events.

    Declaration
    protected override void UpdateToolstrip()
    Overrides
    AssetEditorWindow.UpdateToolstrip()

    Extension Methods

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

    See Also

    AssetEditorWindow
    FlaxEditor.Surface.IVisjectSurfaceOwner
    In This Article
    Back to top Copyright © 2012-2024 Wojciech Figat