Table of Contents

Class CeresNodeSearchWindow

Namespace
Ceres.Editor.Graph
Assembly
Ceres.Graph.Editor.dll
public abstract class CeresNodeSearchWindow : ScriptableObject, ISearchWindowProvider
Inheritance
CeresNodeSearchWindow
Implements
Derived

Constructors

CeresNodeSearchWindow()

protected CeresNodeSearchWindow()

Properties

Context

public NodeSearchContext Context { get; }

Property Value

NodeSearchContext

GraphView

public CeresGraphView GraphView { get; }

Property Value

CeresGraphView

Height

public float Height { get; protected set; }

Property Value

float

Width

public float Width { get; protected set; }

Property Value

float

Methods

CanShowType(Type, NodeSearchContext)

protected static bool CanShowType(Type type, NodeSearchContext context)

Parameters

type Type
context NodeSearchContext

Returns

bool

ConnectRequestPort(ICeresNodeView)

Connect request port from Context with new created node view

protected virtual bool ConnectRequestPort(ICeresNodeView nodeView)

Parameters

nodeView ICeresNodeView

Returns

bool

CreateGenericNodeView(CeresNodeSearchEntryData)

Create node view from entry data and allowed construct generic node instance

public ICeresNodeView CreateGenericNodeView(CeresNodeSearchEntryData entryData)

Parameters

entryData CeresNodeSearchEntryData

Returns

ICeresNodeView

CreateNodeView(CeresNodeSearchEntryData)

Create node view from entry data by current Context

public ICeresNodeView CreateNodeView(CeresNodeSearchEntryData entryData)

Parameters

entryData CeresNodeSearchEntryData

Returns

ICeresNodeView

CreateNonGenericNodeView(CeresNodeSearchEntryData)

Create node view from entry data and not allowed construct generic node instance

public ICeresNodeView CreateNonGenericNodeView(CeresNodeSearchEntryData entryData)

Parameters

entryData CeresNodeSearchEntryData

Returns

ICeresNodeView

CreateSearchTree(SearchWindowContext)

public abstract List<SearchTreeEntry> CreateSearchTree(SearchWindowContext context)

Parameters

context SearchWindowContext

Returns

List<SearchTreeEntry>

Initialize(CeresGraphView, NodeSearchContext)

public void Initialize(CeresGraphView graphView, NodeSearchContext context)

Parameters

graphView CeresGraphView
context NodeSearchContext

OnInitialize()

Initialize search window

protected virtual void OnInitialize()

OnSelectEntry(CeresNodeSearchEntryData, Rect)

Create node from CeresNodeSearchEntryData after click tree entry

protected virtual bool OnSelectEntry(CeresNodeSearchEntryData entryData, Rect rect)

Parameters

entryData CeresNodeSearchEntryData
rect Rect

Returns

bool

OnSelectEntry(SearchTreeEntry, SearchWindowContext)

public virtual bool OnSelectEntry(SearchTreeEntry searchTreeEntry, SearchWindowContext context)

Parameters

searchTreeEntry SearchTreeEntry
context SearchWindowContext

Returns

bool

SearchTypes(Type[], NodeSearchContext)

Util function for searching types grouped by CeresGroupAttribute

public static (List<IGrouping<string, Type>>, List<Type>) SearchTypes(Type[] baseTypes, NodeSearchContext nodeSearchContext)

Parameters

baseTypes Type[]
nodeSearchContext NodeSearchContext

Returns

(List<IGrouping<string, Type>>, List<Type>)