10 #define __HOM_Node_h__
58 int __hash__()
override = 0;
62 virtual bool isNetwork() = 0;
63 virtual bool isEditable() = 0;
75 virtual bool isDisplayDescriptiveNameFlagSet() = 0;
76 virtual void setDisplayDescriptiveNameFlag(
bool on) = 0;
78 virtual std::vector<std::string> errors() = 0;
79 virtual std::vector<std::string> warnings() = 0;
80 virtual std::vector<std::string> messages() = 0;
84 virtual HOM_Node* node(
const char* node_path) = 0;
88 const std::vector<std::string>& node_paths) = 0;
96 const std::vector<std::string>& item_paths) = 0;
102 SWIGOUT(%kwargs recursiveGlob;)
106 bool include_subnets =
true) = 0;
108 SWIGOUT(%newobject createNode;)
111 const char* node_type_name,
112 const char* node_name=NULL,
113 bool run_init_scripts=
true,
114 bool load_contents=
true,
115 bool exact_type_name=
false,
116 bool force_valid_node_name=
false) = 0;
118 virtual int inputIndex(
const char *input_name) = 0;
119 virtual int outputIndex(
const char *output_name) = 0;
121 virtual void setInput(
124 int output_index = 0) = 0;
126 virtual void setNamedInput(
127 const char *input_name,
129 const char *output_name) = 0;
131 virtual void setNamedInput(
132 const char *input_name,
134 int output_index) = 0;
136 virtual void setFirstInput(
138 int output_index = 0) = 0;
141 virtual void setNextInput(
143 int output_index = 0,
144 bool unordered_only =
false) = 0;
146 virtual void insertInput(
149 int output_index = 0) = 0;
151 virtual int numOrderedInputs() = 0;
153 virtual std::vector<HOM_ElemPtr<HOM_Node> > inputs() = 0;
155 SWIGOUT(%warnfilter(321) input;)
156 virtual HOM_Node *input(
int input_index) = 0;
157 virtual HOM_Node *inputFollowingOutputs(
int input_index) = 0;
159 virtual std::vector<HOM_ElemPtr<HOM_NodeConnection> > inputConnections() = 0;
161 SWIGOUT(%newobject inputConnectors;)
163 inputConnectors() = 0;
165 SWIGOUT(%kwargs inputAncestors;)
167 bool include_ref_inputs =
true,
168 bool follow_subnets =
false,
169 bool only_used_inputs =
false) = 0;
171 virtual std::vector<std::string> inputNames() = 0;
172 virtual std::vector<std::string> inputLabels() = 0;
174 virtual std::map<std::string, std::string> editableInputStrings(
175 int input_index) = 0;
176 virtual std::string editableInputString(
int input_index,
177 const char *key) = 0;
178 virtual void setEditableInputString(
int input_index,
179 const char *key,
const char *
value) = 0;
181 virtual std::vector<std::string> outputNames() = 0;
182 virtual std::vector<std::string> outputLabels() = 0;
184 virtual std::vector<HOM_ElemPtr<HOM_Node> > outputs() = 0;
186 virtual std::vector<HOM_ElemPtr<HOM_NodeConnection> >
187 outputConnections() = 0;
189 SWIGOUT(%newobject outputConnectors;)
191 outputConnectors() = 0;
194 virtual std::vector<HOM_ElemPtr<HOM_Node> > children() = 0;
195 SWIGOUT(%kwargs allSubChildren;)
197 bool top_down =
true,
198 bool recurse_in_locked_nodes =
true,
199 bool sync_delayed_definition =
false) = 0;
200 SWIGOUT(%kwargs selectedChildren;)
202 bool include_hidden =
false,
203 bool include_hidden_support_nodes =
false) = 0;
205 virtual std::vector<HOM_ElemPtr<HOM_NetworkMovableItem> > allItems() = 0;
208 bool top_down =
true,
209 bool recurse_in_locked_nodes =
true,
210 bool sync_delayed_definition =
false) = 0;
211 SWIGOUT(%kwargs selectedItems;)
213 bool include_hidden =
false,
214 bool include_hidden_support_nodes =
false) = 0;
217 bool selected_only =
false,
218 bool include_hidden =
false) = 0;
222 virtual void deleteItems(
223 const std::vector<HOM_NetworkMovableItem *>&
224 items = std::vector<HOM_NetworkMovableItem *>(),
225 bool disable_safety_checks =
false) = 0;
226 virtual void copyItemsToClipboard(
227 const std::vector<HOM_NetworkMovableItem *> &items =
228 std::vector<HOM_NetworkMovableItem *>()) = 0;
232 const std::vector<HOM_NetworkMovableItem *> &items,
233 bool channel_reference_originals=
false,
234 bool relative_references=
true,
235 bool connect_outputs_to_multi_inputs=
false) = 0;
240 SWIGOUT(%newobject moveToGoodPosition;)
241 SWIGOUT(%kwargs moveToGoodPosition;)
242 virtual HOM_Vector2 *moveToGoodPosition(
bool relative_to_inputs =
true,
243 bool move_inputs =
true,
244 bool move_outputs =
true,
245 bool move_unconnected =
true) = 0;
249 SWIGOUT(%kwargs layoutChildren);
250 virtual void layoutChildren
251 (
const std::vector<HOM_NetworkMovableItem *> &items =
252 std::vector<HOM_NetworkMovableItem *>(),
253 double horizontal_spacing=-1,
254 double vertical_spacing=-1) = 0;
256 virtual bool isCurrent() = 0;
258 virtual void setCurrent(
bool on,
bool clear_all_selected =
false) = 0;
260 virtual bool isHidden() = 0;
261 virtual void hide(
bool on) = 0;
264 virtual void setComment(
const char *comment) = 0;
265 virtual void appendComment(
const char *comment) = 0;
268 virtual void destroy(
bool disable_safety_checks=
false) = 0;
270 virtual std::vector<HOM_ElemPtr<HOM_NetworkBox> > networkBoxes() = 0;
271 SWIGOUT(%newobject iterNetworkBoxes;)
272 virtual HOM_IterableList<HOM_NetworkBox> *iterNetworkBoxes() = 0;
273 SWIGOUT(%newobject createNetworkBox;)
275 SWIGOUT(%newobject copyNetworkBox;)
277 const char *new_name=NULL,
bool channel_reference_original=
false) = 0;
278 SWIGOUT(%newobject findNetworkBox;)
280 virtual std::vector<HOM_ElemPtr<HOM_NetworkBox> >
281 findNetworkBoxes(
const char *
pattern) = 0;
283 virtual std::vector<HOM_ElemPtr<HOM_NetworkDot> > networkDots() = 0;
284 SWIGOUT(%newobject createNetworkDot;)
287 virtual bool canCreateDigitalAsset() = 0;
290 SWIGOUT(%kwargs collapseIntoSubnet;)
291 SWIGOUT(%newobject collapseIntoSubnet;)
292 virtual HOM_Node *collapseIntoSubnet(
293 const std::vector<HOM_NetworkMovableItem*> &child_items,
294 const char *subnet_name=NULL,
const char *subnet_type=NULL) = 0;
296 virtual std::vector<HOM_ElemPtr<HOM_NetworkMovableItem> >
297 extractAndDelete() = 0;
299 virtual std::vector<HOM_ElemPtr<HOM_SubnetIndirectInput> >
300 indirectInputs() = 0;
303 virtual std::vector<HOM_ElemPtr<HOM_Node> >
306 virtual bool isSubNetwork() = 0;
312 virtual void destroyUserData(
const char *
name,
bool must_exist=
true) = 0;
313 virtual void clearUserDataDict() = 0;
314 virtual std::map<std::string, std::string> userDataDict() = 0;
319 InterpreterObject userData(
const char *
name)
320 {
return HOMboostAnyToInterpreterObject(self->boostAnyUserData(name)); }
325 SWIGOUT(%newobject createStickyNote;)
327 virtual std::vector<HOM_ElemPtr<HOM_StickyNote> > stickyNotes() = 0;
328 SWIGOUT(%newobject iterStickyNotes;)
329 virtual HOM_IterableList<HOM_StickyNote> *iterStickyNotes() = 0;
330 SWIGOUT(%newobject copyStickyNote;)
332 const char *new_name=NULL) = 0;
333 SWIGOUT(%newobject findStickyNote;)
335 SWIGOUT(%newobject findStickyNotes;)
std::string ignore_case(std::string item)
Helper function to allow ignore_case to be passed to IsMember or Transform.
#define HOM_DESTRUCT_OBJECT(pointer)
GLsizei const GLchar *const * string
string __repr__(VtArray< T > const &self)
HOM_Node(const HOM_Node &node)
bool any(const vbool4 &v)
void ignore(T const &) VULKAN_HPP_NOEXCEPT
#define HOM_CONSTRUCT_OBJECT(pointer)
bool operator!=(const Mat3< T0 > &m0, const Mat3< T1 > &m1)
Inequality operator, does exact floating point comparisons.
GLuint const GLchar * name
OIIO_UTIL_API bool rename(string_view from, string_view to, std::string &err)
SIM_API const UT_StringHolder position
bool operator==(const Mat3< T0 > &m0, const Mat3< T1 > &m1)
Equality operator, does exact floating point comparisons.
GLint GLint GLint GLint GLint GLint GLint GLbitfield GLenum filter