Options
All
  • Public
  • Public/Protected
  • All
Menu

Defines a connection point for a block

Hierarchy

  • NodeGeometryConnectionPoint

Index

Constructors

Properties

acceptedConnectionPointTypes: NodeGeometryBlockConnectionPointTypes[]

Gets or sets the additional types supported by this connection point

defaultValue: any

Gets the default value used for this point at creation time

displayName: string

Gets or sets the connection point display name

excludedConnectionPointTypes: NodeGeometryBlockConnectionPointTypes[]

Gets or sets the additional types excluded by this connection point

exposedPortPosition: number

Gets or sets number indicating the position that the port is exposed to on a frame

isExposedOnFrame: boolean

Gets or sets a boolean indicating that this connection point is exposed on a frame

isOptional: boolean

Gets or sets a boolean indicating that this connection point can be omitted

name: string

Gets or sets the connection point name

onConnectionObservable: Observable<NodeGeometryConnectionPoint>

Observable triggered when this point is connected

value: any

Gets or sets the default value used for this point if nothing is connected

valueMax: any

Gets or sets the max value accepted for this point if nothing is connected

valueMin: any

Gets or sets the min value accepted for this point if nothing is connected

Accessors

  • Get the block connected on the endpoints of this connection (if any)

    Returns NodeGeometryBlock[]

  • get hasEndpoints(): boolean
  • Gets a boolean indicating if that output point is connected to at least one input

    Returns boolean

  • get isConnected(): boolean
  • Gets a boolean indicating that the current point is connected to another NodeMaterialBlock

    Returns boolean

  • Get the block that owns this connection point

    Returns NodeGeometryBlock

  • Get the block connected on the other side of this connection (if any)

    Returns Nullable<NodeGeometryBlock>

Methods

  • addExcludedConnectionPointFromAllowedTypes(mask: number): void
  • Fill the list of excluded connection point types with all types other than those passed in the parameter

    Parameters

    • mask: number

      Types (ORed values of NodeMaterialBlockConnectionPointTypes) that are allowed, and thus will not be pushed to the excluded list

    Returns void

  • Gets a boolean indicating if the current point can be connected to another point

    Parameters

    Returns boolean

    a boolean

  • Connect this point to another connection point

    Parameters

    • connectionPoint: NodeGeometryConnectionPoint

      defines the other connection point

    • Optional ignoreConstraints: boolean

      defines if the system will ignore connection type constraints (default is false)

    Returns NodeGeometryConnectionPoint

    the current connection point

  • dispose(): void
  • Release resources

    Returns void

  • getClassName(): string
  • Gets the current class name e.g. "NodeMaterialConnectionPoint"

    Returns string

    the class name

  • Gets the value represented by this connection point

    Parameters

    Returns any

    the connected value or the value if nothing is connected

  • serialize(isInput?: boolean): any
  • Serializes this point in a JSON representation

    Parameters

    • Optional isInput: boolean

      defines if the connection point is an input (default is true)

    Returns any

    the serialized point object

Legend

  • Constructor
  • Property
  • Method
  • Accessor
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Property
  • Method
  • Static method

Settings

Theme