Class CeresNodeSearchWindow
public abstract class CeresNodeSearchWindow : ScriptableObject, ISearchWindowProvider
- Inheritance
-
CeresNodeSearchWindow
- Implements
- Derived
Constructors
CeresNodeSearchWindow()
protected CeresNodeSearchWindow()
Properties
Context
public NodeSearchContext Context { get; }
Property Value
GraphView
public CeresGraphView GraphView { get; }
Property Value
Height
public float Height { get; protected set; }
Property Value
Width
public float Width { get; protected set; }
Property Value
Methods
CanShowType(Type, NodeSearchContext)
protected static bool CanShowType(Type type, NodeSearchContext context)
Parameters
typeTypecontextNodeSearchContext
Returns
ConnectRequestPort(ICeresNodeView)
Connect request port from Context with new created node view
protected virtual bool ConnectRequestPort(ICeresNodeView nodeView)
Parameters
nodeViewICeresNodeView
Returns
CreateGenericNodeView(CeresNodeSearchEntryData)
Create node view from entry data and allowed construct generic node instance
public ICeresNodeView CreateGenericNodeView(CeresNodeSearchEntryData entryData)
Parameters
entryDataCeresNodeSearchEntryData
Returns
CreateNodeView(CeresNodeSearchEntryData)
Create node view from entry data by current Context
public ICeresNodeView CreateNodeView(CeresNodeSearchEntryData entryData)
Parameters
entryDataCeresNodeSearchEntryData
Returns
CreateNonGenericNodeView(CeresNodeSearchEntryData)
Create node view from entry data and not allowed construct generic node instance
public ICeresNodeView CreateNonGenericNodeView(CeresNodeSearchEntryData entryData)
Parameters
entryDataCeresNodeSearchEntryData
Returns
CreateSearchTree(SearchWindowContext)
public abstract List<SearchTreeEntry> CreateSearchTree(SearchWindowContext context)
Parameters
contextSearchWindowContext
Returns
Initialize(CeresGraphView, NodeSearchContext)
public void Initialize(CeresGraphView graphView, NodeSearchContext context)
Parameters
graphViewCeresGraphViewcontextNodeSearchContext
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
entryDataCeresNodeSearchEntryDatarectRect
Returns
OnSelectEntry(SearchTreeEntry, SearchWindowContext)
public virtual bool OnSelectEntry(SearchTreeEntry searchTreeEntry, SearchWindowContext context)
Parameters
searchTreeEntrySearchTreeEntrycontextSearchWindowContext
Returns
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
baseTypesType[]nodeSearchContextNodeSearchContext