HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
OP_Network.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: OP Library (C++)
7  *
8  * COMMENTS:
9  *
10  */
11 
12 #ifndef __OP_Network_h__
13 #define __OP_Network_h__
14 
15 #include "OP_API.h"
16 #include "OP_DotList.h"
17 #include "OP_GroupList.h"
18 #include "OP_NetworkBox.h"
19 #include "OP_NetworkBoxList.h"
20 #include "OP_Node.h"
21 #include "OP_Operator.h"
22 #include "OP_PostIt.h"
23 #include "OP_PostItNoteList.h"
24 #include <UT/UT_ValArray.h>
25 #include <UT/UT_Set.h>
26 #include <UT/UT_String.h>
27 #include <UT/UT_SymbolTable.h>
28 #include <SYS/SYS_Types.h>
29 #include <iosfwd>
30 #include <set>
31 
32 class UT_CPIO;
33 class UT_WorkBuffer;
34 class UT_StringArray;
36 class OP_OperatorTable;
37 class OP_Director;
38 class OP_Group;
39 class OP_UndoLoad;
40 class OP_ProxyRefNode;
41 class OP_Dot;
42 class op_PathSet;
44 
46 
47 // The tile type is used to distinguish between the various types of
48 // nodes that the networks are starting to contain.
50 {
51  OP_TILE_ALL = 0xFF,
52  OP_TILE_NODE = 0x01, // The regular op nodes
53  OP_TILE_PARENT = 0x02, // The parent inputs for subnets
54  OP_TILE_GROUP = 0x04, // The op groups
55 
56  // These are for convenience
60 };
61 
62 // If you are looking for the OBJ_TABLE_NAME, SOP_SCRIPT_NAME, and
63 // POP_OPTYPE_NAME style #defines that used to be here, they have been moved up
64 // to OP_Node.h.
65 
67 {
68  OP_RENAME_NO_PROPAGATE = 0x00, // does no propagation
69  OP_RENAME_NORMAL = 0x01, // does all propagation
70  OP_RENAME_NO_EVENTS = 0x02, // does not send op events AND
71  // does not re-export chops
72  OP_RENAME_NO_DEPENDENCIES = 0x04, // does not notify dependencies
73 
75 };
76 
78 {
80  {
81  replacePrefix = 0;
82  replaceSuffix = 0;
84  }
85 
93 
94 private:
95  // copy constructors are not implemented yet
96  OP_FixNameParms( const OP_FixNameParms &copy );
97  OP_FixNameParms &operator =( const OP_FixNameParms &copy );
98 };
99 
100 // This class is used to filter OP_Operators from being instantiated
101 // and shelf tools from appearing in the Tab menu.
103 {
104  public:
106  virtual ~OP_OperatorFilter() { }
107 
108  /// Returns true if an operator type can be created as a child, and
109  /// false otherwise.
110  virtual bool allowOperatorAsChild(OP_Operator *) { return true; }
111 
112  /// Returns true if a shelf tool by the given name can appear
113  /// in the Tab menu for that (parent) network.
114  virtual bool allowTool(const char *tool_name) { return true; }
115 };
116 
117 typedef void *(OP_Network::*OP_FindItemFunc) (const char *);
118 
119 class OP_API OP_Network : public OP_Node
120 {
121 public:
122  static const char *getScriptFromTable(const char *table);
123  static const char *getOpTypeFromTable(const char *table);
124 
125  // Primary node access methods. Only take OP_Node's into consideration
126  virtual int getNchildren() const;
127  virtual OP_Node *getChild(const char *name=0, int *hint=0) const;
128  virtual OP_Node *getChild(int index) const;
129  virtual int getChildIndex(const OP_Node *) const;
130 
131  // isNetwork returns if the node can have children. This is true
132  // if the node has an operator table or has any children.
133  // This does NOT tell you if it is derived from OP_Network.
134  virtual int isNetwork() const;
135 
136  virtual int getDandROpsEqual();
137  virtual int updateDandROpsEqual(int check_inputs = 1);
138 
139  // This method a node within the network's UT_ValArray of children
140  // dstindex can be any number between 0 and childcount + 1.
141  // dstindex refers to the index of the child before which the
142  // src node should be moved. Right now, it is only used by OPUI_OpList.
143  // As soon as it is used elsewhere, we'll have to add OP_Events for it.
144  virtual void moveChildIndex(int srcindex, int dstindex);
145 
146  // These work the same as getOpType* but return what sort of ops
147  // this network usually has as children. Of course, there's
148  // always the chance of heterogenous ops skulking around in there
149  // so treat it as a guideline rather than an assertion.
150  virtual const char *getChildType() const;
151  virtual OP_OpTypeId getChildTypeID() const = 0;
152 
153  int getTemplateOps(UT_ValArray<OP_Node *> &list);
154 
155  // obtains the children that match a given operator name.
156  // INPUTS:
157  // op_name - the name of a operator to look for (e.g., "object_merge")
158  // OUTPUTS:
159  // list - the list of children that are instances of an operator
160  // that is identified by op_name
161  // RETURNS:
162  // number of children in the output list
163  int getOpsByName(const char *op_name,
164  UT_ValArray<OP_Node *> &list);
165 
166  OP_Node *peekCurrentNodePtr();
167  OP_Node *getCurrentNodePtr();
168 
169  void stashCurrentNodePtr(const OP_Node *child);
170  OP_Node * getStashedCurrentNodePtr() const;
171 
172  virtual OP_Node *getDisplayNodePtr();
173  virtual OP_Node *getRenderNodePtr();
174  virtual CHOP_Node *getAudioNodePtr();
175  virtual const UT_ValArray<OP_Node *> &getOutputNodePtrs() const;
176 
177  virtual void childDeleted(OP_Node *);
178  virtual void childFlagChange(OP_Node *);
179 
180  fpreal getChildrenScale() const { return myChildScale; }
181  void setChildrenScale(fpreal scale);
182 
183  // Returns the OP_OperatorFilter object for this network. Used to
184  // filter out some OP_Operator types. See OP_OperatorFilter above.
185  virtual OP_OperatorFilter *getOperatorFilter();
186 
187  /// Obtains the namespace scope names for this network and for its parents,
188  /// all aranged in a stack array, with this network's name first in the
189  /// array, and the node hierarchy root (director) appearing last.
190  /// By convention, the scope name is the same as the network operator name
191  /// (with the table name).
192  void getNetworkScopeStack(UT_StringArray &scope_stack);
193 
194  /// Returns true if the given op can be created as a child of this network.
195  bool isOperatorAllowedAsChild(OP_Operator *op);
196 
197  /// Returns true if the given tool can appear in the Tab menu for this net.
198  bool isToolAllowed(const char *tool_name);
199 
200  /// Adds a new OP_Node of the specified type as a child of this node.
201  /// If 'name' is not given, then it will use 'type' suffixed with a unique
202  /// numeric suffix. In either case, if the 'name' collides with a
203  /// pre-existing node, then the actual node will be created with a unique
204  /// name created by numeric suffixing.
205  /// @param exact_type If true, the operator name parameter 'type',
206  /// is used verbatim to lookup the operator. Otherwise,
207  /// a preferred operator name that matches 'type'
208  /// specification is found first and then is used to lookup
209  /// the operator. The preferred type may be different than
210  /// 'type' for version namespace (eg "hda"
211  /// may match the preferred "hda::2.0" operator), for
212  /// scope namespace (eg "hda" may match
213  /// "Object/outer::hda" inside "outer" subnet), or for
214  /// operator namespace (eg, "userX::hda" may be preferred
215  /// to "hda", if the namespace hierarchy is so configured
216  /// that "userX" namespace trumps the top level (global)
217  /// namespace).
218  OP_Node *createNode(const char *type, const char *name = 0,
219  int notify = 1, int explicitly = 1,
220  int loadcontents = 1,
221  int *aliasedScriptedOp = 0,
222  char *matIconFilename = 0,
223  bool exact_type = false);
224 
225  /// Convenience method for requesting en exact type
227  const char *name = 0)
228  {
229  return createNode(type, name, 1, 1, 1, 0, 0, true);
230  }
231 
232  // Create dummy reference proxy nodes for dangling references
233  // This should only be called from OP_Node!
234  virtual OP_Network *createProxyRefNode( const char *path );
235 
236  // Makes a copy of a single node inside this network. The source node does
237  // not need to be inside this network.
238  OP_Node *copyNode(const OP_Node *srcnode,
239  const char *toname = NULL,
240  bool reference_parameters = false);
241 
242  // Makes a copy of any number of network items inside this network. The
243  // source items must all be contained in a single network, but it does
244  // not need to be this network.
245  bool copyItems(const OP_NetworkBoxItemList &srcitems,
246  OP_NetworkBoxItemList &destitems,
247  bool reference_parameters,
248  bool relative_references);
249 
250  // Makes a copy of all picked network items into this network. The source
251  // network does not need to be this network.
252  void copyPickedItems(
253  const OP_Network *srcnet,
254  OP_ItemTypeMask item_type_mask,
255  OP_Group *newnodes = nullptr,
256  const OP_FixNameParms *fix_name_parms=nullptr);
257 
258  // Copy 'srcnetbox' and its contents to this network. 'toname' specifies
259  // the name you'd like the copy to have. If this name has already been
260  // taken in this network, we'll use a slightly altered unique version of
261  // it. 'nodes' may only be non-null when 'save_type' is
262  // OP_NETWORKBOX_SAVE_SPECIFIED_CONTENTS, in which case it must be a valid
263  // ptr array of nodes in 'netbox'.
264  OP_NetworkBox *copyNetworkBox(OP_NetworkBox *srcnetbox,
265  OP_NetworkBoxSaveType save_type,
266  OP_NodeList *nodes = NULL,
267  const char *toname = NULL,
268  bool reference_parameters = false);
269 
270  // Copy a single post-it note into this network. The source post-it does
271  // not need to be in this network.
272  OP_PostIt *copyPostItNote(OP_PostIt *src_note,
273  const char *toname = 0);
274 
275  // Makes a copy of all picked nodes into this network. The source network
276  // does not need to be this network.
277  void copyPickedNodes(const OP_Network *srcnet,
278  OP_Group *newnodes=0,
279  const OP_FixNameParms *fix_name_parms=0);
280 
281  // Moves the picked nodes from srcnet into this network.
282  // If src_nodes_ptr and dest_nodes_ptr are not null, they will be set
283  // to the original node pointers and the new node pointers. (The nodes
284  // in src_nodes_ptr will have been deleted.)
285  virtual bool movePickedNodes(OP_Network *src_net,
286  OP_NodeList *src_nodes_ptr=NULL,
287  OP_NodeList *dest_nodes_ptr=NULL);
288 
289  /// Returns true if it is safe at this time to destroy this node.
290  static bool canDestroyNode(OP_Node *node);
291 
292  int destroyNode(OP_Node *node);
293  int destroyNodes(const OP_NodeList &nodes);
294 
295  virtual int renameNode(OP_Node *node, const char *name,
297 
298  /// Obtains the CHOP network to store motion effects. If create is true,
299  /// then it will be created if it doesn't exist yet.
300  OP_Network *findOrCreateMotionEffectsNetwork(bool create=true);
301 
302  // Delete implicit ancestors. If included is true delete the initial given
303  // node as well. If a state name is passed in, check that the nodes were
304  // created by that state. The node is not deleted if any of its outputs do
305  // not match the given state. This function will have no effect on nodes
306  // not belonging to this network, or on subnetworks. The deletion will
307  // stop at the first invalid node (if keep_node points to anything, that
308  // node is invalid for deletion).
309  OP_Node *deleteImplicitAncestors(OP_Node &node,
310  const char *state = 0, OP_Node *keep_node = 0,
311  bool included = true);
312  // non-destructive version of deleteImplicitAncestors() that just returns
313  // the information.
314  OP_Node *getImplicitAncestors(
315  OP_NodeList &implicit_nodes,
316  OP_NodeList &border_nodes,
317  OP_Node &node,
318  const char *state = 0, OP_Node *keep_node = 0,
319  bool included = true);
320 
321  // Fetch all channel collections from this node down.
322  int getAllCollections(UT_ValArray<CH_Collection *> &list,
323  int hide=0);
324 
325  /// Build a unique node name or a unique operator name from
326  /// the one given. We'll pretend we also have children with the names in
327  /// 'fakeChildren' when we do our name-collision checking if 'fakeChildren'
328  /// is non-NULL.
329  void uniqueNodeName(UT_String &name,
330  UT_StringSet *fakeChildren = 0);
331 
332  // This function is used to make some extra names invalid. Returns 0
333  // by default. Used by the VOPNET manager to prevent a new VOPNET
334  // with a name that matches an existing operator type.
335  virtual int isInvalidName(const char *name);
336 
337  static void fixName( const char *name,
338  const OP_FixNameParms &fix_name_parms,
339  UT_String &fixed_name );
340 
341  // I/O methods - there are also the save & load inherited from the
342  // OP_Node class.
343 
344  ///Save all picked items of the types specified by 'item_type'. Note that
345  ///saving any nodes or netboxes implicitly always saves indirect inputs if
346  ///they're picked (legacy behaviour). If 'item_type' includes netboxes, you
347  ///can specify the save policy for netboxes regarding how much of their
348  ///contents they should be saved along with themselves. This is the only way
349  ///for a node to remember which netbox it was in.
350  OP_ERROR savePickedItems(std::ostream &os,
351  const OP_SaveFlags &flags,
352  OP_ItemTypeMask item_type,
353  OP_NetworkBoxSaveType save_type =
355 
356  ///Save all items of the types specified by 'item_type'. Note that
357  ///saving any nodes or netboxes implicitly always saves indirect inputs if
358  ///they're picked or part of a picked netbox (legacy behaviour).
359  OP_ERROR saveAllItems(std::ostream &os,
360  const OP_SaveFlags &flags,
361  OP_ItemTypeMask item_type);
362 
363  // Saves a single node with the same save options on the child nodes
364  // as on the top level node, with the exception of network box membership
365  // for children (which should always be saved)
366  OP_ERROR saveSingle(std::ostream &os, OP_Node *op,
367  const OP_SaveFlags &flags,
368  const UT_String &name_override = UT_String());
369  // Saves a single node with different save options for the child nodes
370  // compared to the top level node.
371  OP_ERROR saveSingle(std::ostream &os, OP_Node *op,
372  const OP_SaveFlags &flags,
373  const OP_SaveFlags &childflags,
374  std::set<int>* renaming_exclude_ids = NULL,
375  const UT_String &name_override = UT_String());
376 
377  ///Saves a single netbox. 'save_type' lets you specify the save policy
378  ///with regards to how much of its contents the network box saves with it.
379  ///'nodes' may only be non-null when 'save_type' is
380  ///OP_NETWORKBOX_SAVE_SPECIFIED_CONTENTS, in which case it must be a valid
381  ///ptr array of nodes in 'netbox'.
382  OP_ERROR saveSingleNetworkBox(std::ostream &os,
383  OP_NetworkBox &netbox,
384  const OP_SaveFlags &flags,
385  OP_NetworkBoxSaveType save_type,
386  OP_NodeList *nodes = NULL);
387 
388  /// Save a single post it note.
389  OP_ERROR saveSinglePostIt(std::ostream &os, OP_PostIt &pnote,
390  const OP_SaveFlags &flags);
391 
392  /// Save a single dot.
393  OP_ERROR saveSingleDot(std::ostream &os, OP_Dot &dot,
394  const OP_SaveFlags &flags);
395 
396  ///In order to avoid duplicately saving nodes in 'op_list' that have already
397  ///been saved by their netboxes, make sure to mark those netboxes and then
398  ///pass in 'skip_nodes_in_marked_netboxes' as true.
399  OP_ERROR saveOpList(std::ostream &os,
400  const UT_ValArray<OP_Node *> &op_list,
401  const OP_SaveFlags &save_flags,
402  int *nsaved = NULL);
403 
404  //Use when saving a mixture of different types of items into 1 file
405  OP_ERROR saveItemList(std::ostream &os,
406  const OP_NetworkBoxItemList &items,
407  const OP_SaveFlags &save_flags);
408 
409  const char *getClipboardFile(const char *file_prefix = 0);
410 
411  //Note that although we now have an OP_ItemTypeMask parameter available to
412  //us, we still need to keep the OP_TileType parameters to indicate saving
413  //of groups *boo*
414  int saveToClipboard(int all, OP_TileType type=OP_TILE_NODE,
415  int grouplist=0,
416  OP_ItemTypeMask item_type = OP_ITEMTYPE_NODE,
417  const char *file_prefix = 0);
418  int loadFromClipboard(fpreal x = 0, fpreal y = 0,
419  bool turn_off_display = false,
420  const char *file_prefix = 0);
421 
422  // loadNetwork will load nodes into the current net. For example,
423  // if there file is "foo.sops", you would call obj->loadNetwork().
424  // if the file were "foo.obj", you would call obj->getParent()->loadNetwork
425  bool loadNetwork(UT_IStream &is,
426  int merge = 0,
427  const char *pattern = NULL,
428  int overwrite = 0,
429  const OP_FixNameParms *fix_name_parms = NULL,
430  UT_StringArray *src_names = NULL,
431  UT_StringArray *dest_names = NULL);
432 
433  bool pasteNetworkForMove(UT_IStream &is,
434  UT_StringArray &src_names,
435  UT_StringArray &dest_names);
436 
437  virtual bool opShouldHandleChange(OP_EventType reason);
438 
439  static bool isOpWritten(UT_IStream &is);
440 
441  virtual void clearUnreferencedInputs();
442 
443  /// Check a stream for collisions for loading... This will add the
444  /// problem nodes to 'node_list' and the problem network boxes to
445  /// 'netbox_list', and also return the total number of collisions found...
446  /// It rewinds the stream to the starting point, thus, it can't be used with
447  /// stdin! Remember that a node can collide with a network box, since they
448  /// share the same namespace!
449  int getLoadCollisions(UT_IStream &is, OP_NodeList &node_list,
450  UT_ValArray<OP_NetworkBox *> &netbox_list,
451  UT_ValArray<OP_PostIt *> &pnote_list,
452  const char *pattern = "*");
453 
454  /// Simulates adding items with the names in 'names' to this network, and
455  /// stores the resulting names after name-collisions have been addressed
456  /// back into 'names'. This works for anything sharing the node namespace,
457  /// which currently includes nodes and network boxes.
458  void simulateNameCollisions(UT_StringArray &names);
459 
460  // The getSortedList() returns an array of all the child nodes sorted
461  // alphabetically.
462  const UT_ValArray<OP_Node *> *getSortedList();
463 
464  // getAnyOutputOf will return the first OP found which is has the
465  // given OP as an input. Returns null if no such op exists.
466  OP_Node *getAnyOutputOf(OP_Node *op) const;
467 
468  // getAnyOP will return any OP in the collection.
469  // Null if there are none.
470  OP_Node *getAnyOP() const;
471 
472  // Group manipulation methods:
473  char *findUniqueGroupName(const char *basename=0);
474  OP_Group * findGroup(const char *name) const;
475  OP_Group * createGroup(const char *name=0);
476  int destroyGroup(const char *name);
477  int destroyGroup(OP_Group *group);
478 
479  int getNgroups() const;
480  OP_Group *getGroup(int index) const;
481  int getGroups(UT_ValArray<OP_Group *> &list, int internal=0);
482  int getMemberships(const OP_Node *node,
484  int internal=0);
485 
486  char *findUniqueNetworkBoxName(const char *base = NULL);
487  char *findUniquePostItNoteName(const char *base = NULL);
488  char *findUniqueDotName(const char *base = NULL);
489 
490  /// Pass in NULL as the name if you'd like a default name. Passing in
491  /// 'items' will automatically create a network box containing those items
492  /// with the netbox positioned properly around them
493  OP_NetworkBox *createNetworkBox(const char *name,
494  OP_NetworkBoxItemList *items = NULL);
495  int getNnetworkBoxes() const;
496  // Given a path, return the network box. The path may be relative.
497  virtual OP_NetworkBox *findNetworkBox(const char *const_path);
498  // Unlike 'findNetworkBox()', these 2 methods only return netboxes
499  // contained directly in this network itself.
500  OP_NetworkBox *getNetworkBox(int index) const;
501  OP_NetworkBox *getNetworkBox(const char *name) const;
502 
503  /// Pass in NULL as the name if you'd like a default name.
504  OP_PostIt *createPostItNote(const char *name);
505  int getNpostItNotes() const;
506  // Given a path, return the post it note. The path may be relative.
507  virtual OP_PostIt *findPostItNote(const char *const_path);
508  // Unlike 'findPostItNote()', these 2 methods only return postits
509  // contained directly in this network itself.
510  OP_PostIt *getPostItNote(int index) const;
511  OP_PostIt *getPostItNote(const char *name) const;
512 
513  // Dots are not meant to be referenced by name.
515  { return myDotList; }
516  int getNdots() const;
517  // Given a path, return the post it note. The path may be relative.
518  virtual OP_Dot *findDot(const char *const_path);
519  OP_Dot *getDot(int index) const;
520  OP_Dot *getDot(const char *name) const;
521 
522  /// Return the number of items picked. 'item_type_mask' is a bit field used
523  /// to specify which item types you'd liked to include in the count. Use the
524  /// values in OP_ItemType to set the bits in 'item_type_mask'.
525  unsigned int nPicked(OP_ItemTypeMask item_type_mask,
526  bool include_hidden_nodes) const;
527 
528  /// Return all picked items of types specified by 'item_type_mask'.
529  /// Note that if only picked nodes are of interest, there is also
530  /// OP_Node::getPickedChildren().
531  void getPickedItems(OP_ItemTypeMask item_type_mask,
532  OP_NetworkBoxItemList &picked,
533  bool include_hidden = false,
534  bool recurse_picked_netboxes = false) const;
535 
536  /// Return all items that match the type mask.
537  void getAllItems(OP_ItemTypeMask item_type_mask,
538  OP_NetworkBoxItemList &items) const;
539 
540  /// Returns true if the item was successfully deleted
541  bool destroyItem(OP_NetworkBoxItem *item);
542  /// Returns the number of successfully deleted items
543  int destroyItems(const OP_NetworkBoxItemList &items);
544 
545  /// Same as findNode or findNetworkBox, but more generalized so you can
546  /// search through multiple items with just one method. 'item_type_mask' is
547  /// used to specify what type of items you want to consider in your search.
548  /// Does not support indirect parent input searches.
549  virtual OP_NetworkBoxItem *findItem(const char *const_path,
550  OP_ItemTypeMask item_type =
552 
553  /// Look up a direct child item by name, with an option to screen based
554  /// on the item type. Like findItem above, but doesn't look into child
555  /// networks.
556  OP_NetworkBoxItem *getItem(const char *name,
557  OP_ItemTypeMask item_type = OP_ITEMTYPE_ALL);
558 
559  /// Returns true if the given node is a child descendent of the same
560  /// type with no intervening levels of different type.
561  bool isSubNode(const OP_Node *node) const;
562 
563  /// Try to avoid using this method, it only clears the selection for tiles,
564  /// not network boxes (network boxes are considered items but not tiles).
565  /// Can use setAllPickFlags() instead. In fact, since there are no group
566  /// tiles in the worksheet any more, this method has become somewhat useless
567  void clearSelection(OP_TileType t, int grouplist);
568 
569  ///Set the pick flags to 'value' for all items of types specified by
570  ///'item_type'
571  void setAllPickFlags(OP_ItemTypeMask item_type, int value);
572  void pickRequest(OP_NetworkBoxItem *item, int shift);
573  void pickRequest(int shift)
574  { OP_Node::pickRequest(shift); }
575 
576  void addPicked(const OP_Group *group); // Pick these nodes
577  void subPicked(const OP_Group *group); // Removed from picked
578 
579  // There are two versions of getOperatorTable. One that takes an
580  // operator type and returns the table for that type. The second
581  // returns the operator table associated with this network. This
582  // latter assumes that "setOperatorTable" has been called. All
583  // OP_Network sub-class constructors should do this:
584  //
585  // setOperatorTable(getOperatorTable(operatorType));
586  //
587  // If the script_path is NOT null, this method will create the
588  // operator table if it doesn't exist. Otherwise, it will return
589  // null for non-existant table names.
590  static OP_OperatorTable *getOperatorTable(const char *op_type,
591  const char *script_path=0);
593  { return myOperatorTable; }
594  virtual const char *getScriptDirectory();
595 
596  // this is overridden so that we can clear the group flags
597  virtual void clearUndoFlags();
598 
599  // Sub-networks use parent inputs to connect open inputs in
600  // the net to inputs in the parent. A list of the parent connections
601  // is the bookeeping required to manage and resolve these connections.
602  bool wantsParentInputs() const;
603 
604  // Get all picked Parent Inputs
605  int getNparentInputs() const
606  { return myParentInputs.entries(); }
607  virtual OP_SubnetIndirectInput *findParentInput(const char *const_path);
608  OP_SubnetIndirectInput *getParentInput(int index) const;
609  OP_SubnetIndirectInput *getParentInput(const char *name) const;
610 
611  // getIndirectString returns a string that can be used to save
612  // parent inputs that refer to our parent input table.
613  // These are simply saved as a string index into our table.
614  // These can be resolved back using resolveIndirectString.
615  int getIndirectString(OP_IndirectInput *, UT_String &);
616  OP_IndirectInput *resolveIndirectString(const char *);
617 
618  virtual void inputConnectChanged(int which);
619 
620  void getAllConnectedChildren(
621  int input_index, OP_NodeList &nodes,
622  bool expandSubnets = true) const;
623  void getAllConnectedChildrenNamed(
624  const OP_ConnectorId& input_name,
625  OP_NodeList &nodes,
626  bool expandSubnets = true) const;
627 
628  // The ViewSetting functions are used by ICE to store the name
629  // of the COP currently being viewed. Put here because COP_SubNets
630  // and ICENET_Nodes both need to store this information.
631  virtual void setViewSetting(const char *) {};
632  virtual const char *getViewSetting() const { return ""; }
633 
634  virtual void dumpDependencies(std::ostream &os);
635 
636  virtual void changeParmTemplate(PRM_Template *new_template);
637 
638  int getNumChildManagers(OP_OpTypeId type) const;
639  void addChildManager(OP_OpTypeId type);
640  void removeChildManager(OP_OpTypeId type);
641  virtual bool getSaveWithVopnets();
642  virtual void runDelScript();
643  void clearDelScripts(int pickedOnly);
644 
645  /// This method will unscope all the channels belonging to this op.
646  /// If the recurse flag is set it will recurse through the children
647  /// (at this level the recurse flag is ignored).
648  virtual void unscopeChannels(bool recurse);
649 
650 
651  // Do global expansion on a pattern - get lists of network boxes
652  // If expand is given, concatenated with full list of names
653  // If list is given, appended with list of nodes.
654  virtual void globNetworkBoxes(const char *pat, UT_String *expand,
656  OP_GlobContext *context = 0,
657  const char *prefix = " ");
658 
659  virtual void globPostIts(const char *pat, UT_String *expand,
660  UT_ValArray<OP_PostIt *> *list=0,
661  OP_GlobContext *context = 0,
662  const char *prefix = " ");
663 
664  ///Save out all the netboxes in this network to 'os' in separate packets
665  OP_ERROR saveNetworkBoxes(std::ostream &os, const OP_SaveFlags &flags,
666  const char *path_prefix);
667  OP_ERROR savePostIts(std::ostream &os, const OP_SaveFlags &flags,
668  const char *path_prefix);
669  OP_ERROR saveDots(std::ostream &os, const OP_SaveFlags &flags,
670  const char *path_prefix);
671 
672  ///Load a network box from 'is'. Can load from both .hip files and the
673  ///clipboard. 'path' is used as the new netbox's name. If 'overwrite' is
674  ///specified, the new netbox will overwrite any other netboxes in this
675  ///network with the same name, rather than modify its name to be unique.
676  ///'created' is used to return a ptr to the new network box.
677  bool loadNetworkBox(UT_IStream &is, const char *path = "",
678  bool path_contains_network = true,
679  bool path_contains_packet_ext = true,
680  int overwrite = 0, OP_NetworkBox **created = NULL);
681 
682  /// Load a post-it note from 'is'. Can load from both .hip files and the
683  /// clipboard. 'path' is used as the new post-it's name. If 'overwrite' is
684  /// specified, the new post-it will overwrite any other post-its in this
685  /// network with the same name, rather than modify its name to be unique.
686  /// 'created' is used to return a ptr to the new post-it.
687  bool loadPostIt(UT_IStream &is, const char *path = "",
688  bool path_contains_network = true,
689  bool path_contains_packet_ext = true,
690  int overwrite = 0, OP_PostIt **created = NULL);
691 
692  /// Load a network dot from 'is'. Can load from both .hip files and the
693  /// clipboard. 'path' is used as the new dot's name. If 'overwrite' is
694  /// specified, the new dot will overwrite any other dots in this
695  /// network with the same name, rather than modify its name to be unique.
696  /// 'created' is used to return a ptr to the new post-it.
697  bool loadDot(UT_IStream &is, const char *path = "",
698  bool path_contains_network = true,
699  bool path_contains_packet_ext = true,
700  int overwrite = 0, OP_Dot **created = NULL);
701 
702  /// Returns the unique id of the representative operator that this network
703  /// may have. The changed_child parameter and the current_rep_id are used
704  /// in order to minimize the number of findSubNode() calls that are made.
705  int getRepresentativeNodeId(OP_Node *changed_child,
706  int current_rep_id);
707 
708  // Changes a child node's type from its current type to 'newtype'
709  // the keep... parameters will maintain the same name, pararmeter values
710  // and network contents if set to true.
711  bool changeChildNodeType(OP_Node *child,
712  const char *newtype,
713  bool keepname,
714  bool keepparms,
715  bool keepcontents,
716  bool quiet,
717  int *newChildId=NULL);
718 
719  // Returns true if the supplied node is specially marked as editable
720  // in this locked HDA node.
721  bool getIsSubNodeEditable(const OP_Node *subnode) const;
722  bool hasAnyEditableSubNodes() const;
723 
724  /// Builds the list of subnodes that are marked as message nodes.
725  /// Returns false if there are none (list.entries() == 0 then)
726  bool getMessageSubNodes(OP_NodeList &list) const;
727 
728  // Add any OTL-defined operators used by this network to the specified
729  // table.
730  virtual void getActiveOperatorsDefinedByOTL(
731  UT_Set<OP_Operator *> &active_operators) const;
732 
733  // Save a packet containing the fallback library paths for the specified
734  // operators.
735  static void saveOTLBackupInformation(std::ostream &os,
736  const OP_OperatorList &fallbackops,
737  const OP_OperatorList &dummyops);
738 
739  OP_SubnetIndirectInput *getNamedParentInput(
740  const OP_ConnectorId& name) const;
742  { return myIsClearingContentsOfEditableSubnodes; }
743 
744  virtual int64 getMemoryUsage(bool inclusive) const;
745 
746  static bool warnDeprecatedOpsOnLoad()
747  { return theWarnDeprecatedOpsOnLoad; }
748  static void setWarnDeprecatedOpsOnLoad(bool enable)
749  { theWarnDeprecatedOpsOnLoad = enable; }
750 
751  static const char *theChildTableName;
752 
753  void setCachedMimeFile(const char *filename);
754  const char *getCachedMimeFile() const;
755  void clearCachedMimeFile();
756  bool hasCachedMimeFile() const;
757 
758 protected:
759  // Protected constructor since networks are only created by Operators.
760  OP_Network(OP_Network *parent, const char *name, OP_Operator *op);
761  virtual ~OP_Network();
762 
763  virtual void clearAndDestroy(void);
764  void clearAndDestroyNodes(void);
765 
766  virtual int propagateModification(OP_Node *by_whom,
767  OP_EventType reason,
768  int parm_index,
769  OP_PropagateData &prop_data);
770 
771  // new method for dependencies: use the PRM_TYPE_OP_REF_*
772  // in your parm template to add your dependency.
773  // override this to do special cases, make sure you call the base class
774  virtual void buildOpDependencies();
775  virtual void notifyRenameDependents( const UT_String &full_from,
776  OP_NodeList &cook_nodes );
777  virtual void notifyRenameReferences( const UT_String &full_from,
778  OP_NodeList &cook_nodes );
779  virtual void rebuildOpDependents( bool proxy_only );
780 
781  // clone dependencies from the proxy. proxy is no longer valid
782  // after the clone!
783  virtual void cloneFromProxyRefNode( OP_Network *proxy );
784  // clone a new proxy node. this node is no longer valid after this!
785  virtual OP_Network * cloneToProxyRefNode();
786  virtual int hasProxyRefNodes() const
787  { return myProxyRefNodes.entries() > 0; }
788  void removeProxyRefNode( OP_Network *proxy );
789  virtual void moveProxyRefNodes( OP_Network *dest );
790 
791  virtual void moveDependencies( OP_Node *from_node );
792 
793  // Override of OP_Node::load to handle some network-specific packets.
794  virtual bool load(UT_IStream &is, const char *ext = "",
795  const char *path = 0);
796 
797  /// Called upon entering and exiting loadNetwork() method
798  virtual void beginLoadingInNetwork();
799  virtual void endLoadingInNetwork();
800 
801  // Called at the end of loadChildOrder()
802  virtual void finishedLoadingChildOrder();
803 
804  // Called when loadNetwork finishes loading this whole network.
805  // Do not set `is_child_call`. That argument is set internally to
806  // true when finishedLoadingNetwork() is called on the node's children.
807  virtual void finishedLoadingNetwork(bool is_child_call=false);
808 
809  // This overrides the OP_Node function.
810  // syncContents loads the given stream into this operator.
811  // The stream should be in .hip file format, with "this" pointing to
812  // the root node in the .hip file. It handles collisions gracefully
813  // by updating the existing operators instead of deleting and
814  // recreating them. It deletes any existing nodes not in the
815  // stream, and creates nodes if necessary.
816  virtual bool syncContents(UT_IStream &is);
817 
818  // The following should only be called by the director, who doesn't have
819  // a real choice, does he?
820  virtual void addNode(OP_Node *node, int notify=1, int explicitly=1);
821 
822  OP_Node *findConnectedNode(OP_Node *op) const;
823 
824  // These functions ensure we have valid render and display nodes.
825  OP_Node *getPreferredDisplayNodePtr(OP_Node *skipthisnode)const;
826  void resetDisplayNodePtr(OP_Node *skipthisnode=0);
827  OP_Node *getPreferredRenderNodePtr(OP_Node *skipthisnode) const;
828  void resetRenderNodePtr(OP_Node *skipthisnode=0);
829  OP_Node *getPreferredAudioNodePtr(OP_Node *skipthisnode) const;
830  void resetAudioNodePtr(OP_Node *skipthisnode=0);
831  virtual CHOP_Node **getAudioNodeRef();
832 
833  // This function calls all of the above, for when we are deleting nodes.
834  void validateStatusNodePtrs(const OP_NodeList &skipnodes);
835 
836  virtual void updateExtraFlagPtrs();
837 
838  virtual void nodeUnlocked();
839 
840  virtual bool canDestroyNode();
841  virtual void destroySingleNode(OP_Node *node);
842 
843  // This function goes recursively through every node below this one and
844  // renames it to some unique but meaningless value. This is used for
845  // compiling networks.
846  void modifyAllChildNodeNames(bool renamepickableobjects,
847  const char *prefix, int &id,
848  std::set<int>* renaming_exclude_ids = NULL);
849 
850  /// This is a helper method to the setChannelScope method. It traverses
851  /// the node's parameters and sets the scope on them according to the
852  /// given pattern.
853  /// This method is also defined in OP_Parameters, it is overridden here
854  /// to provide parsing support for network paths.
855  virtual void traverseScope(const char *pattern,
856  OP_ScopeOp scope_op,
857  const OP_ScopeOptions &scope_opts);
858 
859 
863 
864  // Implemented in VOPs. Only the new nodes are to be inserted into the out
865  // list, not any of the existing ones.
866  virtual void getAdditionalUndoNodes(const OP_NodeList& orig_list,
867  OP_NodeList& nodes_for_input_undo) { }
868 
869  /// Returns true if the child at node can should be saved, false otherwise.
870  virtual bool getAllowSavingChild(OP_Node *node,
871  const OP_SaveFlags &flags)
872  { return true; }
873 
874 private:
875  // Some helper functions for loading and saving.
876  OP_ERROR saveNetwork(std::ostream &os, const OP_SaveFlags &flags,
877  const OP_SaveFlags &childflags,
878  const char *pathPrefix, bool vopnets);
879  OP_ERROR saveChildNodes(std::ostream &os, const OP_SaveFlags &flags,
880  const char *pathPrefix, bool vopnets,
881  bool forceNoInit = false);
882  OP_ERROR saveOp(std::ostream &os, OP_Node *node,
883  const OP_SaveFlags &flags,
884  const OP_SaveFlags &childflags, const char *pathPrefix,
885  bool vopnets, bool forceNoInit = false,
886  const UT_String &name_override = UT_String());
887  OP_ERROR savePostIt(std::ostream &os, OP_PostIt *pnote,
888  const OP_SaveFlags &flags,
889  const char *pathPrefix);
890  bool loadNodeType(UT_IStream &is, OP_Network *net,
891  UT_String &nodeType, int &matches);
892  bool loadOp(UT_IStream &is, int overwrite, const char *path,
893  op_PathSet &noneditable_missing_table);
894 
895  // Some special handling for items loaded into a network due to copy/paste
896  // or undo/redo. We need to register these items with an OP_UndoLoad, and
897  // we may want to pick them.
898  void beginPickLoaded(bool pick_loaded);
899  void beginLoadUndo(OP_Node *save_ops[4]);
900  void itemLoaded(OP_NetworkBoxItem *item);
901  void endLoadUndo(OP_Node *save_ops[4]);
902  void endPickLoaded();
903 
904  // Some helper functions for syncContents.
905  bool syncContentsInit(UT_IStream &is,
906  OP_Network *net, OP_Node *node,
907  UT_String &nodeName, OP_Node *&newnode,
908  const char *packet_node_path);
909  // Helper method to clear the netboxes/post-its from any subnodes of the
910  // given network whose netboxes may be saved to *this network's contents
911  // section without a preceding .init packet for that subnode.
912  void syncContentsClearNetboxesFromNonInitSubNodes(OP_Network *net);
913  // Helper method to clear the contents of any editable subnodes which will
914  // be loaded from the hip file or a parent asset's contents.
915  void clearContentsOfEditableSubNodes();
916  // Helper method to determine if an ancestor is an instance of a particular
917  // operator currently loading its contents section.
918  bool isLoadingContentsSection(OP_Operator *op) const;
919 
920  void setDoMergeFlag( bool flag ) { myDoMerge = flag; }
921 
922  // These functions perform operations that are required after loading
923  // a number of new operators. Used by loadNetwork and syncContents.
924  void initSpecialNodes(OP_NodeList &loaded_ops);
925  void initNodeConnectors(OP_NodeList &loaded_ops);
926  void sendBulkNotifications(const OP_NodeList &loaded_ops,
927  const OP_NodeList &op_roots,
928  bool builddependencies);
929  void fixPendingOverride();
930 
931  int savePartialVerify(std::ostream &os);
932  void createParentInputs();
933 
934  // Build a list of item roots from the stream. In English, this means that
935  // 'item_roots' will be populated with the paths of all items at the top
936  // level of this load. Initial stream position is unchanged.
937  bool buildItemRoots(UT_IStream &is, const char *mergePattern,
938  UT_StringArray &item_roots);
939 
940  // Destroys all child nodes except those that appear in the supplied
941  // list (and their parents). Traverses into writable child nodes too.
942  // Returns the number of descendents found in nodes.
943  void destroyAllNodesExcept(const UT_Set<OP_Node *> &nodes);
944 
945  // Then after the list is made, we go through and rename the original
946  // items so there won't be any collisions on loading
947  void prepareCollisionNames(const OP_NetworkBoxItemList &items,
948  UT_WorkBuffer &prefix);
949  // Then, after the load, we go through and rename the items to their
950  // original status (renaming the collisions along the way)
951  void fixLoadInputs(); // Resolves references of nodes
952  void fixLoadNames(const OP_NetworkBoxItemList &items,
953  UT_WorkBuffer &prefix,
954  const OP_FixNameParms *fix_name_parms,
955  UT_StringArray *dest_names);
956 
957  int groupCount() const; // Doesn't count internal groups.
958  OP_ERROR saveGroupList(std::ostream &os, int binary = 0);
959  bool loadGroupList(UT_IStream &is, const char *path="");
960  OP_ERROR saveParentInputs(std::ostream &os, int picked= 0);
961  bool loadParentInputs(UT_IStream &is, const char *path = "");
962  OP_ERROR saveNetworkData(std::ostream &os, int binary = 0,
963  int picked= 0);
964  bool loadNetworkData(UT_IStream &is, const char *path = "");
965  OP_ERROR saveChildOrder(std::ostream &os, const OP_SaveFlags &flags);
966  bool loadChildOrder(UT_IStream &is);
967  OP_ERROR saveCompiledSection(std::ostream &os, int binary = 0,
968  int picked= 0);
969  bool loadCompiledSection(UT_IStream &is, const char *path = "");
970 
971  // these should surround saving of ops within a network.
972  void prepareOpSave(std::ostream &os, const OP_SaveFlags &flags,
973  int &nsaved, int &writeTrailer);
974  void cleanupOpSave(std::ostream &os, const OP_SaveFlags &flags,
975  int &nsaved, int &writeTrailer);
976 
977  // A helper function for findUniqueGroupName and findUniqueNetworkBoxName
978  // and findUniqueDotName which takes the "does this item exist" function as
979  // a parameter
980  char *findUniqueName(const char *base, OP_FindItemFunc find);
981 
982  void changeNodeIdFromLoad(OP_Node &node, int new_id);
983  void invokeFinishLoadingNetwork(OP_NodeList& op_roots);
984 
985  bool verifyParents();
986  static bool verifyAllParents();
987 
988  void setOperatorTable(OP_OperatorTable *table);
989 
990  UT_SymbolMap<OP_Node *> mySymbols;
991  UT_ValArray<OP_Node *> myNodes;
992  UT_ValArray<OP_Network *> myProxyRefNodes;
993  UT_ValArray<OP_Node *> mySortedList;
995  OP_GroupList myGroups;
996  OP_NetworkBoxList myNetworkBoxes;
997  OP_PostItNoteList myPostItNotes;
998  OP_DotList myDotList;
999  OP_OperatorTable *myOperatorTable;
1000  OP_Node *myLastLoadedOpPtr;
1001  OP_NetworkBox *myLastLoadedNetworkBox;
1002  OP_PostIt *myLastLoadedPostIt;
1003  OP_Dot *myLastLoadedDot;
1004  OP_Node *myCreatedNode;
1005  UT_SortedSet<int> myEditableSubNodes;
1006  OP_UndoLoad *myUndoLoad;
1007  bool myPickLoaded;
1008 
1009  fpreal myChildScale;
1010  int myDandRCounter;
1011  short myDandROpsEqual;
1012  char myNameSortDirty;
1013  char myOpLoadedFlag;
1014  bool myDoMerge;
1015  UT_StringHolder mySkipBadNodePath;
1016 
1017  int myLastInputChanged;
1018  int myChildManagerCount[NUM_MANAGERS];
1019  int myStashedCurrentNodeId;
1020  bool myIsClearingContentsOfEditableSubnodes;
1021  UT_StringHolder myCachedMimeFile;
1022 
1023  static bool theWarnDeprecatedOpsOnLoad;
1024 
1025  friend class OP_Director;
1026  friend class MOT_Director;
1027 };
1028 
1030 
1031 #endif
1032 
UT_ValArray< OP_Node * > myOutputNodes
Definition: OP_Network.h:862
virtual bool load(UT_IStream &is, const char *ext="", const char *path=0)
OP_TileType
Definition: OP_Network.h:49
UT_String suffixReplaceStr
Definition: OP_Network.h:90
virtual void moveProxyRefNodes(OP_Network *)
Definition: OP_Node.h:3113
virtual void traverseScope(const char *pattern, OP_ScopeOp scope_op, const OP_ScopeOptions &scope_options)
int getNparentInputs() const
Definition: OP_Network.h:605
virtual void cloneFromProxyRefNode(OP_Network *proxy)
virtual bool canDestroyNode()
Return true if it is safe at this time to destroy this node.
OP_OperatorTable * getOperatorTable() const
Definition: OP_Network.h:592
const GLuint GLenum const void * binary
Definition: glcorearb.h:1923
GLsizei const GLchar *const * path
Definition: glcorearb.h:3340
UT_ErrorSeverity
Definition: UT_Error.h:25
GLbitfield flags
Definition: glcorearb.h:1595
virtual const char * getViewSetting() const
Definition: OP_Network.h:632
OP_Node * createNodeOfExactType(const char *type, const char *name=0)
Convenience method for requesting en exact type.
Definition: OP_Network.h:226
GLint y
Definition: glcorearb.h:102
virtual int hasProxyRefNodes() const
Definition: OP_Network.h:786
virtual OP_Network * cloneToProxyRefNode()
virtual void nodeUnlocked()
Definition: OP_Node.h:3242
virtual void runDelScript()
fpreal getChildrenScale() const
Definition: OP_Network.h:180
OP_NetworkBoxSaveType
Definition: OP_NetworkBox.h:40
virtual OP_Node * getChild(const char *name, int *hint=0) const
OP_Node * myDisplayNodePtr
Definition: OP_Network.h:861
virtual bool getAllowSavingChild(OP_Node *node, const OP_SaveFlags &flags)
Returns true if the child at node can should be saved, false otherwise.
Definition: OP_Network.h:870
virtual int propagateModification(OP_Node *by_whom, OP_EventType reason, int parm_index, OP_PropagateData &prop_data)
virtual void globNetworkBoxes(const char *pat, UT_String *expand, UT_ValArray< OP_NetworkBox * > *list=0, OP_GlobContext *glob_context=0, const char *prefix=" ")
void notifyRenameDependents(const UT_String &full_from)
virtual OP_PostIt * findPostItNote(const char *const_path)
Definition: OP_Node.h:833
long long int64
Definition: SYS_Types.h:100
GA_API const UT_StringHolder scale
virtual ~OP_OperatorFilter()
Definition: OP_Network.h:106
virtual bool allowTool(const char *tool_name)
Definition: OP_Network.h:114
static bool warnDeprecatedOpsOnLoad()
Definition: OP_Network.h:746
virtual int isNetwork() const
virtual int getNchildren() const
UT_SymbolMap< OP_OperatorTable * > OP_OperatorTableMap
Definition: OP_Network.h:43
OP_DotList & getDotList()
Definition: OP_Network.h:514
virtual int64 getMemoryUsage(bool inclusive) const
UT_String prefixReplaceStr
Definition: OP_Network.h:87
virtual OP_Network * createProxyRefNode(const char *path)
fpreal64 dot(const CE_VectorT< T > &a, const CE_VectorT< T > &b)
Definition: CE_Vector.h:218
virtual void setViewSetting(const char *)
Definition: OP_Network.h:631
static void setWarnDeprecatedOpsOnLoad(bool enable)
Definition: OP_Network.h:748
void notifyRenameReferences(const UT_String &full_from)
virtual void clearUndoFlags()
virtual void clearAndDestroy(void)
GLuint const GLchar * name
Definition: glcorearb.h:785
Definition: OP_Dot.h:24
virtual OP_NetworkBoxItem * findItem(const char *const_path, OP_ItemTypeMask item_type=OP_ITEMTYPE_ALL)
Definition: OP_Node.h:839
bool getIsClearingContentsOfEditableSubnodes()
Definition: OP_Network.h:741
OP_OpTypeId
Definition: OP_Node.h:263
OP_Node * myRenderNodePtr
Definition: OP_Network.h:860
void pickRequest(int shift)
int removeTrailingDigits
Definition: OP_Network.h:92
friend class OP_Network
Definition: OP_Node.h:3656
virtual void buildOpDependencies()
void pickRequest(int shift)
Definition: OP_Network.h:573
void *(OP_Network::* OP_FindItemFunc)(const char *)
Definition: OP_Network.h:117
virtual void changeParmTemplate(PRM_Template *new_template)
unsigned int OP_ItemTypeMask
Definition: OP_ItemId.h:38
GLsizei const GLfloat * value
Definition: glcorearb.h:823
double fpreal
Definition: SYS_Types.h:263
Create an evaluation context scope with a new node.
Definition: OP_Director.h:60
virtual void rebuildOpDependents(bool proxy_only)
virtual bool syncContents(UT_IStream &is)
virtual void unscopeChannels(bool recurse)
virtual void dumpDependencies(std::ostream &os)
virtual void globPostIts(const char *pat, UT_String *expand, UT_ValArray< OP_PostIt * > *list=0, OP_GlobContext *glob_context=0, const char *prefix=" ")
#define OP_API
Definition: OP_API.h:10
GLuint index
Definition: glcorearb.h:785
virtual int getDandROpsEqual()
Definition: OP_Node.h:784
GLint GLenum GLint x
Definition: glcorearb.h:408
virtual bool allowOperatorAsChild(OP_Operator *)
Definition: OP_Network.h:110
OP_EventType
Definition: OP_Value.h:22
virtual void getActiveOperatorsDefinedByOTL(UT_Set< OP_Operator * > &active_operators) const
GLint GLint GLsizei GLint GLenum GLenum type
Definition: glcorearb.h:107
virtual bool getSaveWithVopnets()
virtual int updateDandROpsEqual(int=1)
Definition: OP_Node.h:787
virtual void inputConnectChanged(int which)
virtual bool opShouldHandleChange(OP_EventType reason)
virtual void getAdditionalUndoNodes(const OP_NodeList &orig_list, OP_NodeList &nodes_for_input_undo)
Definition: OP_Network.h:866
virtual void moveDependencies(OP_Node *from_node)
virtual OP_SubnetIndirectInput * findParentInput(const char *const_path)
Definition: OP_Node.h:837
OP_ScopeOp
Definition: OP_Parameters.h:56
png_infop png_uint_32 flag
Definition: png.h:2242
virtual OP_NetworkBox * findNetworkBox(const char *name)
Definition: OP_Node.h:831
OP_RenameAction
Definition: OP_Network.h:66
UT_String suffixStr
Definition: OP_Network.h:91
OP_API const OP_OperatorTableMap & OPgetGlobalOperatorTables()
static const char * theChildTableName
Definition: OP_Network.h:751
virtual void clearUnreferencedInputs()
Definition: OP_PostIt.h:34
virtual OP_Dot * findDot(const char *const_path)
Definition: OP_Node.h:835
UT_String prefixStr
Definition: OP_Network.h:88