VisualShaderNodeGroupBase.xml 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="VisualShaderNodeGroupBase" inherits="VisualShaderNode" version="3.3">
  3. <brief_description>
  4. Base class for a family of nodes with variable amount of input and output ports within the visual shader graph.
  5. </brief_description>
  6. <description>
  7. Currently, has no direct usage, use the derived classes instead.
  8. </description>
  9. <tutorials>
  10. </tutorials>
  11. <methods>
  12. <method name="add_input_port">
  13. <return type="void">
  14. </return>
  15. <argument index="0" name="id" type="int">
  16. </argument>
  17. <argument index="1" name="type" type="int">
  18. </argument>
  19. <argument index="2" name="name" type="String">
  20. </argument>
  21. <description>
  22. Adds an input port with the specified [code]type[/code] (see [enum VisualShaderNode.PortType]) and [code]name[/code].
  23. </description>
  24. </method>
  25. <method name="add_output_port">
  26. <return type="void">
  27. </return>
  28. <argument index="0" name="id" type="int">
  29. </argument>
  30. <argument index="1" name="type" type="int">
  31. </argument>
  32. <argument index="2" name="name" type="String">
  33. </argument>
  34. <description>
  35. Adds an output port with the specified [code]type[/code] (see [enum VisualShaderNode.PortType]) and [code]name[/code].
  36. </description>
  37. </method>
  38. <method name="clear_input_ports">
  39. <return type="void">
  40. </return>
  41. <description>
  42. Removes all previously specified input ports.
  43. </description>
  44. </method>
  45. <method name="clear_output_ports">
  46. <return type="void">
  47. </return>
  48. <description>
  49. Removes all previously specified output ports.
  50. </description>
  51. </method>
  52. <method name="get_free_input_port_id" qualifiers="const">
  53. <return type="int">
  54. </return>
  55. <description>
  56. Returns a free input port ID which can be used in [method add_input_port].
  57. </description>
  58. </method>
  59. <method name="get_free_output_port_id" qualifiers="const">
  60. <return type="int">
  61. </return>
  62. <description>
  63. Returns a free output port ID which can be used in [method add_output_port].
  64. </description>
  65. </method>
  66. <method name="get_input_port_count" qualifiers="const">
  67. <return type="int">
  68. </return>
  69. <description>
  70. Returns the number of input ports in use. Alternative for [method get_free_input_port_id].
  71. </description>
  72. </method>
  73. <method name="get_inputs" qualifiers="const">
  74. <return type="String">
  75. </return>
  76. <description>
  77. 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]).
  78. </description>
  79. </method>
  80. <method name="get_output_port_count" qualifiers="const">
  81. <return type="int">
  82. </return>
  83. <description>
  84. Returns the number of output ports in use. Alternative for [method get_free_output_port_id].
  85. </description>
  86. </method>
  87. <method name="get_outputs" qualifiers="const">
  88. <return type="String">
  89. </return>
  90. <description>
  91. 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]).
  92. </description>
  93. </method>
  94. <method name="has_input_port" qualifiers="const">
  95. <return type="bool">
  96. </return>
  97. <argument index="0" name="id" type="int">
  98. </argument>
  99. <description>
  100. Returns [code]true[/code] if the specified input port exists.
  101. </description>
  102. </method>
  103. <method name="has_output_port" qualifiers="const">
  104. <return type="bool">
  105. </return>
  106. <argument index="0" name="id" type="int">
  107. </argument>
  108. <description>
  109. Returns [code]true[/code] if the specified output port exists.
  110. </description>
  111. </method>
  112. <method name="is_valid_port_name" qualifiers="const">
  113. <return type="bool">
  114. </return>
  115. <argument index="0" name="name" type="String">
  116. </argument>
  117. <description>
  118. Returns [code]true[/code] if the specified port name does not override an existed port name and is valid within the shader.
  119. </description>
  120. </method>
  121. <method name="remove_input_port">
  122. <return type="void">
  123. </return>
  124. <argument index="0" name="id" type="int">
  125. </argument>
  126. <description>
  127. Removes the specified input port.
  128. </description>
  129. </method>
  130. <method name="remove_output_port">
  131. <return type="void">
  132. </return>
  133. <argument index="0" name="id" type="int">
  134. </argument>
  135. <description>
  136. Removes the specified output port.
  137. </description>
  138. </method>
  139. <method name="set_input_port_name">
  140. <return type="void">
  141. </return>
  142. <argument index="0" name="id" type="int">
  143. </argument>
  144. <argument index="1" name="name" type="String">
  145. </argument>
  146. <description>
  147. Renames the specified input port.
  148. </description>
  149. </method>
  150. <method name="set_input_port_type">
  151. <return type="void">
  152. </return>
  153. <argument index="0" name="id" type="int">
  154. </argument>
  155. <argument index="1" name="type" type="int">
  156. </argument>
  157. <description>
  158. Sets the specified input port's type (see [enum VisualShaderNode.PortType]).
  159. </description>
  160. </method>
  161. <method name="set_inputs">
  162. <return type="void">
  163. </return>
  164. <argument index="0" name="inputs" type="String">
  165. </argument>
  166. <description>
  167. Defines all input ports using a [String] formatted as a colon-separated list: [code]id,type,name;[/code] (see [method add_input_port]).
  168. </description>
  169. </method>
  170. <method name="set_output_port_name">
  171. <return type="void">
  172. </return>
  173. <argument index="0" name="id" type="int">
  174. </argument>
  175. <argument index="1" name="name" type="String">
  176. </argument>
  177. <description>
  178. Renames the specified output port.
  179. </description>
  180. </method>
  181. <method name="set_output_port_type">
  182. <return type="void">
  183. </return>
  184. <argument index="0" name="id" type="int">
  185. </argument>
  186. <argument index="1" name="type" type="int">
  187. </argument>
  188. <description>
  189. Sets the specified output port's type (see [enum VisualShaderNode.PortType]).
  190. </description>
  191. </method>
  192. <method name="set_outputs">
  193. <return type="void">
  194. </return>
  195. <argument index="0" name="outputs" type="String">
  196. </argument>
  197. <description>
  198. Defines all output ports using a [String] formatted as a colon-separated list: [code]id,type,name;[/code] (see [method add_output_port]).
  199. </description>
  200. </method>
  201. </methods>
  202. <members>
  203. <member name="size" type="Vector2" setter="set_size" getter="get_size" default="Vector2( 0, 0 )">
  204. The size of the node in the visual shader graph.
  205. </member>
  206. </members>
  207. <constants>
  208. </constants>
  209. </class>