2019-05-29 00:08:13 +08:00
<?xml version="1.0" encoding="UTF-8" ?>
2023-07-06 16:08:05 +08:00
<class name= "VisualShaderNodeGroupBase" inherits= "VisualShaderNodeResizableBase" xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation= "../class.xsd" >
2019-05-29 00:08:13 +08:00
<brief_description >
2022-08-18 06:08:09 +08:00
Base class for a family of nodes with variable number of input and output ports within the visual shader graph.
2019-05-29 00:08:13 +08:00
</brief_description>
<description >
2020-01-27 23:14:10 +08:00
Currently, has no direct usage, use the derived classes instead.
2019-05-29 00:08:13 +08:00
</description>
<tutorials >
</tutorials>
<methods >
<method name= "add_input_port" >
2021-07-30 21:28:05 +08:00
<return type= "void" />
2022-08-07 02:11:48 +08:00
<param index= "0" name= "id" type= "int" />
<param index= "1" name= "type" type= "int" />
<param index= "2" name= "name" type= "String" />
2019-05-29 00:08:13 +08:00
<description >
2022-08-09 07:41:07 +08:00
Adds an input port with the specified [param type] (see [enum VisualShaderNode.PortType]) and [param name].
2019-05-29 00:08:13 +08:00
</description>
</method>
<method name= "add_output_port" >
2021-07-30 21:28:05 +08:00
<return type= "void" />
2022-08-07 02:11:48 +08:00
<param index= "0" name= "id" type= "int" />
<param index= "1" name= "type" type= "int" />
<param index= "2" name= "name" type= "String" />
2019-05-29 00:08:13 +08:00
<description >
2022-08-09 07:41:07 +08:00
Adds an output port with the specified [param type] (see [enum VisualShaderNode.PortType]) and [param name].
2019-05-29 00:08:13 +08:00
</description>
</method>
<method name= "clear_input_ports" >
2021-07-30 21:28:05 +08:00
<return type= "void" />
2019-05-29 00:08:13 +08:00
<description >
2020-01-27 23:14:10 +08:00
Removes all previously specified input ports.
2019-05-29 00:08:13 +08:00
</description>
</method>
<method name= "clear_output_ports" >
2021-07-30 21:28:05 +08:00
<return type= "void" />
2019-05-29 00:08:13 +08:00
<description >
2020-01-27 23:14:10 +08:00
Removes all previously specified output ports.
2019-05-29 00:08:13 +08:00
</description>
</method>
<method name= "get_free_input_port_id" qualifiers= "const" >
2021-07-30 21:28:05 +08:00
<return type= "int" />
2019-05-29 00:08:13 +08:00
<description >
2020-01-27 23:14:10 +08:00
Returns a free input port ID which can be used in [method add_input_port].
2019-05-29 00:08:13 +08:00
</description>
</method>
<method name= "get_free_output_port_id" qualifiers= "const" >
2021-07-30 21:28:05 +08:00
<return type= "int" />
2019-05-29 00:08:13 +08:00
<description >
2020-01-27 23:14:10 +08:00
Returns a free output port ID which can be used in [method add_output_port].
2019-05-29 00:08:13 +08:00
</description>
</method>
<method name= "get_input_port_count" qualifiers= "const" >
2021-07-30 21:28:05 +08:00
<return type= "int" />
2019-05-29 00:08:13 +08:00
<description >
2020-01-27 23:14:10 +08:00
Returns the number of input ports in use. Alternative for [method get_free_input_port_id].
2019-05-29 00:08:13 +08:00
</description>
</method>
<method name= "get_inputs" qualifiers= "const" >
2021-07-30 21:28:05 +08:00
<return type= "String" />
2019-05-29 00:08:13 +08:00
<description >
2021-03-18 19:04:28 +08:00
Returns a [String] description of the input ports as a colon-separated list using the format [code]id,type,name;[/code] (see [method add_input_port]).
2019-05-29 00:08:13 +08:00
</description>
</method>
<method name= "get_output_port_count" qualifiers= "const" >
2021-07-30 21:28:05 +08:00
<return type= "int" />
2019-05-29 00:08:13 +08:00
<description >
2020-01-27 23:14:10 +08:00
Returns the number of output ports in use. Alternative for [method get_free_output_port_id].
2019-05-29 00:08:13 +08:00
</description>
</method>
<method name= "get_outputs" qualifiers= "const" >
2021-07-30 21:28:05 +08:00
<return type= "String" />
2019-05-29 00:08:13 +08:00
<description >
2021-03-18 19:04:28 +08:00
Returns a [String] description of the output ports as a colon-separated list using the format [code]id,type,name;[/code] (see [method add_output_port]).
2019-05-29 00:08:13 +08:00
</description>
</method>
<method name= "has_input_port" qualifiers= "const" >
2021-07-30 21:28:05 +08:00
<return type= "bool" />
2022-08-07 02:11:48 +08:00
<param index= "0" name= "id" type= "int" />
2019-05-29 00:08:13 +08:00
<description >
2020-01-27 23:14:10 +08:00
Returns [code]true[/code] if the specified input port exists.
2019-05-29 00:08:13 +08:00
</description>
</method>
<method name= "has_output_port" qualifiers= "const" >
2021-07-30 21:28:05 +08:00
<return type= "bool" />
2022-08-07 02:11:48 +08:00
<param index= "0" name= "id" type= "int" />
2019-05-29 00:08:13 +08:00
<description >
2020-01-27 23:14:10 +08:00
Returns [code]true[/code] if the specified output port exists.
2019-05-29 00:08:13 +08:00
</description>
</method>
2019-06-24 16:39:59 +08:00
<method name= "is_valid_port_name" qualifiers= "const" >
2021-07-30 21:28:05 +08:00
<return type= "bool" />
2022-08-07 02:11:48 +08:00
<param index= "0" name= "name" type= "String" />
2019-06-24 16:39:59 +08:00
<description >
2020-01-27 23:14:10 +08:00
Returns [code]true[/code] if the specified port name does not override an existed port name and is valid within the shader.
2019-06-24 16:39:59 +08:00
</description>
</method>
2019-05-29 00:08:13 +08:00
<method name= "remove_input_port" >
2021-07-30 21:28:05 +08:00
<return type= "void" />
2022-08-07 02:11:48 +08:00
<param index= "0" name= "id" type= "int" />
2019-05-29 00:08:13 +08:00
<description >
2020-01-27 23:14:10 +08:00
Removes the specified input port.
2019-05-29 00:08:13 +08:00
</description>
</method>
<method name= "remove_output_port" >
2021-07-30 21:28:05 +08:00
<return type= "void" />
2022-08-07 02:11:48 +08:00
<param index= "0" name= "id" type= "int" />
2019-05-29 00:08:13 +08:00
<description >
2020-01-27 23:14:10 +08:00
Removes the specified output port.
2019-05-29 00:08:13 +08:00
</description>
</method>
<method name= "set_input_port_name" >
2021-07-30 21:28:05 +08:00
<return type= "void" />
2022-08-07 02:11:48 +08:00
<param index= "0" name= "id" type= "int" />
<param index= "1" name= "name" type= "String" />
2019-05-29 00:08:13 +08:00
<description >
2020-01-27 23:14:10 +08:00
Renames the specified input port.
2019-05-29 00:08:13 +08:00
</description>
</method>
<method name= "set_input_port_type" >
2021-07-30 21:28:05 +08:00
<return type= "void" />
2022-08-07 02:11:48 +08:00
<param index= "0" name= "id" type= "int" />
<param index= "1" name= "type" type= "int" />
2019-05-29 00:08:13 +08:00
<description >
2020-01-27 23:14:10 +08:00
Sets the specified input port's type (see [enum VisualShaderNode.PortType]).
2019-05-29 00:08:13 +08:00
</description>
</method>
<method name= "set_inputs" >
2021-07-30 21:28:05 +08:00
<return type= "void" />
2022-08-07 02:11:48 +08:00
<param index= "0" name= "inputs" type= "String" />
2019-05-29 00:08:13 +08:00
<description >
2020-01-27 23:14:10 +08:00
Defines all input ports using a [String] formatted as a colon-separated list: [code]id,type,name;[/code] (see [method add_input_port]).
2019-05-29 00:08:13 +08:00
</description>
</method>
<method name= "set_output_port_name" >
2021-07-30 21:28:05 +08:00
<return type= "void" />
2022-08-07 02:11:48 +08:00
<param index= "0" name= "id" type= "int" />
<param index= "1" name= "name" type= "String" />
2019-05-29 00:08:13 +08:00
<description >
2020-01-27 23:14:10 +08:00
Renames the specified output port.
2019-05-29 00:08:13 +08:00
</description>
</method>
<method name= "set_output_port_type" >
2021-07-30 21:28:05 +08:00
<return type= "void" />
2022-08-07 02:11:48 +08:00
<param index= "0" name= "id" type= "int" />
<param index= "1" name= "type" type= "int" />
2019-05-29 00:08:13 +08:00
<description >
2020-01-27 23:14:10 +08:00
Sets the specified output port's type (see [enum VisualShaderNode.PortType]).
2019-05-29 00:08:13 +08:00
</description>
</method>
<method name= "set_outputs" >
2021-07-30 21:28:05 +08:00
<return type= "void" />
2022-08-07 02:11:48 +08:00
<param index= "0" name= "outputs" type= "String" />
2019-05-29 00:08:13 +08:00
<description >
2020-01-27 23:14:10 +08:00
Defines all output ports using a [String] formatted as a colon-separated list: [code]id,type,name;[/code] (see [method add_output_port]).
2019-05-29 00:08:13 +08:00
</description>
</method>
</methods>
</class>