Class GeometryTextureFetchBlock
Hierarchy (View Summary)
- NodeGeometryBlock
- GeometryTextureFetchBlock
Constructors
constructor
-
Creates a new GeometryTextureFetchBlock
Parameters
- name: string
defines the block name
Returns GeometryTextureFetchBlock
- name: string
Properties
clamp Coordinates
Gets or sets a boolean indicating if coordinates should be clamped between 0 and 1
comments
A free comment about the block
interpolation
Gets or sets a boolean indicating if coordinates should be clamped between 0 and 1
on Build Observable
Gets an observable raised when the block is built
unique Id
Gets or sets the unique id of the node
visible On Frame
Gets or sets a boolean indicating that this input can be edited from a collapsed frame
Accessors
a
-
Gets the a component
Returns NodeGeometryConnectionPoint
b
-
Gets the b component
Returns NodeGeometryConnectionPoint
build Execution Time
-
get buildExecutionTime(): number
Gets the time spent to build this block (in ms)
Returns number
coordinates
-
Gets the coordinates component
Returns NodeGeometryConnectionPoint
g
-
Gets the g component
Returns NodeGeometryConnectionPoint
inputs
-
Gets the list of input points
Returns NodeGeometryConnectionPoint[]
is Debug
-
get isDebug(): boolean
Gets a boolean indicating if this block is a debug block
Returns boolean
is Input
-
get isInput(): boolean
Gets a boolean indicating if this block is an input
Returns boolean
is Teleport In
-
get isTeleportIn(): boolean
Gets a boolean indicating if this block is a teleport in
Returns boolean
is Teleport Out
-
get isTeleportOut(): boolean
Gets a boolean indicating if this block is a teleport out
Returns boolean
is Unique
-
get isUnique(): boolean
Gets a boolean indicating that this block can only be used once per NodeGeometry
Returns boolean
name
-
get name(): string
Gets or set the name of the block
Returns string
-
set name(value: string): void
Parameters
- value: string
Returns void
outputs
-
Gets the list of output points
Returns NodeGeometryConnectionPoint[]
r
-
Gets the r component
Returns NodeGeometryConnectionPoint
rgb
-
Gets the rgb component
Returns NodeGeometryConnectionPoint
rgba
-
Gets the rgba component
Returns NodeGeometryConnectionPoint
texture
-
Gets the texture component
Returns NodeGeometryConnectionPoint
Methods
auto Configure
-
Lets the block try to connect some inputs automatically
Parameters
- _nodeGeometry: NodeGeometry
defines the node geometry to use for auto connection
Returns void
- _nodeGeometry: NodeGeometry
build
-
Build the current node and generate the vertex data
Parameters
- state: NodeGeometryBuildState
defines the current generation state
Returns boolean
true if already built
- state: NodeGeometryBuildState
clone
-
Clone the current block to a new identical block
Returns NodeGeometryBlock | null
a copy of the current block
dispose
-
Release resources
Returns void
get Class Name
-
Gets the current class name
Returns string
the class name
get Descendant Of Predicate
-
getDescendantOfPredicate(
predicate: (block: NodeGeometryBlock) => boolean,
): Nullable<NodeGeometryBlock>Get the first descendant using a predicate
Parameters
- predicate: (block: NodeGeometryBlock) => boolean
defines the predicate to check
Returns Nullable<NodeGeometryBlock>
descendant or null if none found
- predicate: (block: NodeGeometryBlock) => boolean
get Input By Name
-
Find an input by its name
Parameters
- name: string
defines the name of the input to look for
Returns NodeGeometryConnectionPoint | null
the input or null if not found
- name: string
get Output By Name
-
Find an output by its name
Parameters
- name: string
defines the name of the output to look for
Returns NodeGeometryConnectionPoint | null
the output or null if not found
- name: string
initialize
-
Initialize the block and prepare the context for build
Returns void
is An Ancestor Of
-
Checks if the current block is an ancestor of a given block
Parameters
- block: NodeGeometryBlock
defines the potential descendant block to check
Returns boolean
true if block is a descendant
- block: NodeGeometryBlock
is An Ancestor Of Type
-
Checks if the current block is an ancestor of a given type
Parameters
- type: string
defines the potential type to check
Returns boolean
true if block is a descendant
- type: string
register Input
-
registerInput(
name: string,
type: NodeGeometryBlockConnectionPointTypes,
isOptional?: boolean,
value?: any,
valueMin?: any,
valueMax?: any,
): GeometryTextureFetchBlockRegister a new input. Must be called inside a block constructor
Parameters
- name: string
defines the connection point name
- type: NodeGeometryBlockConnectionPointTypes
defines the connection point type
- isOptional: boolean = false
defines a boolean indicating that this input can be omitted
Optionalvalue: anyvalue to return if there is no connection
OptionalvalueMin: anymin value accepted for value
OptionalvalueMax: anymax value accepted for value
Returns GeometryTextureFetchBlock
the current block
- name: string
register Output
-
registerOutput(
name: string,
type: NodeGeometryBlockConnectionPointTypes,
point?: NodeGeometryConnectionPoint,
): GeometryTextureFetchBlockRegister a new output. Must be called inside a block constructor
Parameters
- name: string
defines the connection point name
- type: NodeGeometryBlockConnectionPointTypes
defines the connection point type
Optionalpoint: NodeGeometryConnectionPointan already created connection point. If not provided, create a new one
Returns GeometryTextureFetchBlock
the current block
- name: string
serialize
-
Serializes this block in a JSON representation
Returns any
the serialized block object
Block used to fetch a color from texture data