Class NodeRenderGraphConnectionPoint
Constructors
constructor
-
new NodeRenderGraphConnectionPoint(
name: string,
ownerBlock: NodeRenderGraphBlock,
direction: NodeRenderGraphConnectionPointDirection,
): NodeRenderGraphConnectionPointCreates a new connection point
Parameters
- name: string
defines the connection point name
- ownerBlock: NodeRenderGraphBlock
defines the block hosting this connection point
- direction: NodeRenderGraphConnectionPointDirection
defines the direction of the connection point
Returns NodeRenderGraphConnectionPoint
- name: string
Properties
accepted Connection Point Types
Gets or sets the additional types supported by this connection point
display Name
Gets or sets the connection point display name
excluded Connection Point Types
Gets or sets the additional types excluded by this connection point
exposed Port Position
Gets or sets number indicating the position that the port is exposed to on a frame
is Exposed On Frame
Gets or sets a boolean indicating that this connection point is exposed on a frame
is Optional
Gets or sets a boolean indicating that this connection point can be omitted
name
Gets or sets the connection point name
need Dual Direction Validation
Indicates that this connection point needs dual validation before being connected to another point
on Connection Observable
Observable triggered when this point is connected
on Disconnection Observable
Observable triggered when this point is disconnected
value
The value stored in this connection point
Accessors
connected Blocks
-
get connectedBlocks(): NodeRenderGraphBlock[]
Get the block connected on the endpoints of this connection (if any)
Returns NodeRenderGraphBlock[]
connected Point
-
Get the other side of the connection (if any)
Returns Nullable<NodeRenderGraphConnectionPoint>
direction
-
Gets the direction of the point
Returns NodeRenderGraphConnectionPointDirection
endpoints
-
Gets the list of connected endpoints
Returns NodeRenderGraphConnectionPoint[]
has Endpoints
-
get hasEndpoints(): boolean
Gets a boolean indicating if that output point is connected to at least one input
Returns boolean
inner Type
-
Get the inner type (ie AutoDetect for instance instead of the inferred one)
Returns NodeRenderGraphBlockConnectionPointTypes
is Connected
-
get isConnected(): boolean
Gets a boolean indicating that the current point is connected to another NodeRenderGraphBlock
Returns boolean
owner Block
-
get ownerBlock(): NodeRenderGraphBlock
Get the block that owns this connection point
Returns NodeRenderGraphBlock
source Block
-
get sourceBlock(): Nullable<NodeRenderGraphBlock>
Get the block connected on the other side of this connection (if any)
Returns Nullable<NodeRenderGraphBlock>
type
-
Gets or sets the connection point type (default is Undefined)
Returns NodeRenderGraphBlockConnectionPointTypes
-
Parameters
Returns void
Methods
add Accepted Connection Point Types
-
Adds accepted connection point types
Parameters
- mask: number
Types (ORed values of NodeRenderGraphBlockConnectionPointTypes) that are allowed to connect to this point
Returns void
- mask: number
add Excluded Connection Point From Allowed Types
-
Fills the list of excluded connection point types with all types other than those passed in the parameter
Parameters
- mask: number
Types (ORed values of NodeRenderGraphBlockConnectionPointTypes) that are allowed, and thus will not be pushed to the excluded list
Returns void
- mask: number
can Connect To
-
Gets a boolean indicating if the current point can be connected to another point
Parameters
- connectionPoint: NodeRenderGraphConnectionPoint
defines the other connection point
Returns boolean
a boolean
- connectionPoint: NodeRenderGraphConnectionPoint
check Compatibility State
-
checkCompatibilityState(
connectionPoint: NodeRenderGraphConnectionPoint,
): NodeRenderGraphConnectionPointCompatibilityStatesGets a number indicating if the current point can be connected to another point
Parameters
- connectionPoint: NodeRenderGraphConnectionPoint
defines the other connection point
Returns NodeRenderGraphConnectionPointCompatibilityStates
a number defining the compatibility state
- connectionPoint: NodeRenderGraphConnectionPoint
connect To
-
connectTo(
connectionPoint: NodeRenderGraphConnectionPoint,
ignoreConstraints?: boolean,
): NodeRenderGraphConnectionPointConnect this point to another connection point
Parameters
- connectionPoint: NodeRenderGraphConnectionPoint
defines the other connection point
- ignoreConstraints: boolean = false
defines if the system will ignore connection type constraints (default is false)
Returns NodeRenderGraphConnectionPoint
the current connection point
- connectionPoint: NodeRenderGraphConnectionPoint
create Custom Input Block
-
Creates a block suitable to be used as an input for this input point. If null is returned, a block based on the point type will be created.
Returns Nullable<[NodeRenderGraphBlock, string]>
The returned string parameter is the name of the output point of NodeRenderGraphBlock (first parameter of the returned array) that can be connected to the input
disconnect From
-
Disconnect this point from one of his endpoint
Parameters
- endpoint: NodeRenderGraphConnectionPoint
defines the other connection point
Returns NodeRenderGraphConnectionPoint
the current connection point
- endpoint: NodeRenderGraphConnectionPoint
dispose
-
Release resources
Returns void
get Class Name
-
Gets the current class name e.g. "NodeRenderGraphConnectionPoint"
Returns string
the class name
serialize
-
Serializes this point in a JSON representation
Parameters
- isInput: boolean = true
defines if the connection point is an input (default is true)
Returns any
the serialized point object
- isInput: boolean = true
StaticIs Shadow Generator
-
Checks if the value is a shadow generator task
Parameters
- value: any
The value to check
Returns boolean
True if the value is a shadow generator
- value: any
StaticIs Shadow Light
-
Checks if the value is a shadow light
Parameters
- value: any
The value to check
Returns boolean
True if the value is a shadow light
- value: any
StaticIs Texture Handle
-
Checks if the value is a texture handle
Parameters
- value: any
The value to check
Returns boolean
True if the value is a texture handle
- value: any
Defines a connection point for a block