Search Results for

    Show / Hide Table of Contents

    Class CeresNodeView

    Inheritance
    object
    CeresNodeView
    ExecutableNodeView
    Implements
    ICeresNodeView
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Ceres.Editor.Graph
    Assembly: cs.temp.dll.dll
    Syntax
    public abstract class CeresNodeView : ICeresNodeView

    Constructors

    CeresNodeView()

    Default constructor without initialization, please initialize node view in implementation

    Declaration
    protected CeresNodeView()

    Fields

    FieldInfos

    Node instance visible

    Declaration
    protected readonly List<FieldInfo> FieldInfos
    Field Value
    Type Description
    System.Collections.Generic.List<T><FieldInfo>

    FieldResolvers

    Node instance visible IFieldResolver

    Declaration
    protected readonly List<IFieldResolver> FieldResolvers
    Field Value
    Type Description
    System.Collections.Generic.List<T><IFieldResolver>

    PortViews

    Node port views

    Declaration
    protected readonly List<CeresPortView> PortViews
    Field Value
    Type Description
    System.Collections.Generic.List<T><CeresPortView>

    Properties

    GraphView

    The graph this view attached to

    Declaration
    public CeresGraphView GraphView { get; }
    Property Value
    Type Description
    CeresGraphView

    Guid

    Graph scope node view guid

    Declaration
    public string Guid { get; set; }
    Property Value
    Type Description
    string

    NodeElement

    Node visual element of this view

    Declaration
    public NodeElement NodeElement { get; }
    Property Value
    Type Description
    NodeElement

    NodeInstance

    Node instance contained by this view

    Declaration
    public CeresNode NodeInstance { get; }
    Property Value
    Type Description
    CeresNode

    NodeType

    Node instance type contained by this view

    Declaration
    public Type NodeType { get; }
    Property Value
    Type Description
    Type

    Methods

    AddPortView(CeresPortView)

    Declaration
    public virtual void AddPortView(CeresPortView portView)
    Parameters
    Type Name Description
    CeresPortView portView

    FillDefaultNodePorts()

    Fill node element with default ports

    Declaration
    protected void FillDefaultNodePorts()

    FillDefaultNodeProperties()

    Fill node element with default properties

    Declaration
    protected void FillDefaultNodeProperties()

    FillDefaultNodeTitle()

    Fill node element with default title

    Declaration
    protected void FillDefaultNodeTitle()

    FindConnectablePortView(CeresPortView)

    Find port view that is compatible to connect

    Declaration
    public CeresPortView FindConnectablePortView(CeresPortView portView)
    Parameters
    Type Name Description
    CeresPortView portView
    Returns
    Type Description
    CeresPortView

    FindFieldResolver(string)

    Find field resolver with field name if existed

    Declaration
    public IFieldResolver FindFieldResolver(string fieldName)
    Parameters
    Type Name Description
    string fieldName
    Returns
    Type Description
    IFieldResolver

    FindFieldResolver<T>(string)

    Declaration
    public T FindFieldResolver<T>(string fieldName) where T : class, IFieldResolver
    Parameters
    Type Name Description
    string fieldName
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    FindPortView(string, int)

    Find port view with property name if existed

    Declaration
    public CeresPortView FindPortView(string propertyName, int portIndex = 0)
    Parameters
    Type Name Description
    string propertyName
    int portIndex
    Returns
    Type Description
    CeresPortView

    FindPortViewWithDisplayName(string, int)

    Find port view with display name if existed

    Declaration
    public CeresPortView FindPortViewWithDisplayName(string displayName, int portIndex = 0)
    Parameters
    Type Name Description
    string displayName
    int portIndex
    Returns
    Type Description
    CeresPortView

    FindPortViewWithDisplayType(Type, int)

    Find port view with display type if existed

    Declaration
    public CeresPortView FindPortViewWithDisplayType(Type displayType, int portIndex = 0)
    Parameters
    Type Name Description
    Type displayType
    int portIndex
    Returns
    Type Description
    CeresPortView

    GetAllPortViews()

    Get all port views

    Declaration
    public CeresPortView[] GetAllPortViews()
    Returns
    Type Description
    CeresPortView[]

    GetContainerType()

    Declaration
    protected Type GetContainerType()
    Returns
    Type Description
    Type

    GetDefaultTooltip()

    Get node default tooltip

    Declaration
    public virtual string GetDefaultTooltip()
    Returns
    Type Description
    string

    Initialize(Type, CeresGraphView)

    Initialize node view

    Declaration
    public void Initialize(Type nodeType, CeresGraphView graphView)
    Parameters
    Type Name Description
    Type nodeType
    CeresGraphView graphView

    OnSetGraphView()

    Called after graph view setup

    Declaration
    protected virtual void OnSetGraphView()

    OnSetNodeInstanceType()

    Called after node setup or change node instance type

    Declaration
    protected virtual void OnSetNodeInstanceType()

    OnSetupNodeElement()

    Called in graph view initialize node style stage

    Declaration
    protected virtual void OnSetupNodeElement()

    ReconnectEdges()

    Reconnect edge from current metadata

    Declaration
    public void ReconnectEdges()

    RemovePortView(CeresPortView)

    Declaration
    public virtual void RemovePortView(CeresPortView portView)
    Parameters
    Type Name Description
    CeresPortView portView

    SetGraphOwner(CeresGraphView)

    Set node view's GraphView

    Declaration
    public void SetGraphOwner(CeresGraphView graphView)
    Parameters
    Type Name Description
    CeresGraphView graphView

    SetNodeInstance(CeresNode)

    Set node instance attached to this view and restore all properties

    Declaration
    public virtual void SetNodeInstance(CeresNode ceresNode)
    Parameters
    Type Name Description
    CeresNode ceresNode

    SetNodeInstanceType(Type)

    Set node view's NodeType

    Declaration
    public void SetNodeInstanceType(Type nodeType)
    Parameters
    Type Name Description
    Type nodeType

    SetTooltip(string)

    Set node tooltip

    Declaration
    public void SetTooltip(string tooltip)
    Parameters
    Type Name Description
    string tooltip

    SetupNodeElement(NodeElement)

    Set node element of this view

    Declaration
    public void SetupNodeElement(NodeElement nodeElement)
    Parameters
    Type Name Description
    NodeElement nodeElement

    Implements

    ICeresNodeView
    In This Article
    Back to top Copyright © 2025 AkiKurisu
    Generated with DocFX