HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_NetworkBox.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  * COMMENTS:
7  */
8 
9 #ifndef __HOM_NetworkBox_h__
10 #define __HOM_NetworkBox_h__
11 
12 #include "HOM_API.h"
13 #include "HOM_NetworkMovableItem.h"
14 #include "HOM_EnumModules.h"
15 #include <string>
16 
17 class HOM_Color;
18 class HOM_Vector2;
19 class HOM_BoundingRect;
20 class HOM_StickyNote;
22 
23 SWIGOUT(%rename(NetworkBox) HOM_NetworkBox;)
24 
26 {
27 public:
29  : HOM_NetworkMovableItem(HOM_networkItemType::NetworkBox)
30  { HOM_CONSTRUCT_OBJECT(this) }
32  : HOM_NetworkMovableItem(net_box)
33  { HOM_CONSTRUCT_OBJECT(this) }
34  ~HOM_NetworkBox() override
35  { HOM_DESTRUCT_OBJECT(this) }
36 
37  virtual std::string __repr__() = 0;
38 
39  virtual int __hash__() override = 0;
40 
41  virtual bool operator==(HOM_PtrOrNull<HOM_NetworkBox> networkbox) = 0;
42  virtual bool operator!=(HOM_PtrOrNull<HOM_NetworkBox> networkbox) = 0;
43 
44  virtual std::string comment() = 0;
45  virtual void setComment(const char *comment) = 0;
46 
47  virtual bool autoFit() = 0;
48  virtual void setAutoFit(bool auto_fit) = 0;
49 
50  virtual void setBounds(const HOM_BoundingRect &bounds) = 0;
51  virtual void setSize(const std::vector<double> &size) = 0;
52  virtual void resize(const std::vector<double> &amount) = 0;
53  virtual void fitAroundContents() = 0;
54 
55  virtual HOM_Vector2 minimizedSize() = 0;
56  virtual HOM_Vector2 restoredSize() = 0;
57 
58  virtual bool isMinimized() = 0;
59  virtual void setMinimized(bool on) = 0;
60 
61  SWIGOUT(%newobject nodes;)
62  SWIGOUT(%kwargs nodes;)
63  virtual std::vector<HOM_ElemPtr<HOM_Node> > nodes(bool recurse=true) = 0;
64  virtual void addNode(HOM_Node &node) = 0;
65  virtual void removeNode(HOM_Node &node) = 0;
66  virtual void removeAllNodes() = 0;
67 
68  SWIGOUT(%newobject networkBoxes;)
69  SWIGOUT(%kwargs networkBoxes;)
70  virtual std::vector<HOM_ElemPtr<HOM_NetworkBox> >
71  networkBoxes(bool recurse=true) = 0;
72  virtual void addNetworkBox(HOM_NetworkBox &networkbox) = 0;
73  virtual void removeNetworkBox(HOM_NetworkBox &networkbox) = 0;
74 
75  SWIGOUT(%newobject stickyNotes;)
76  SWIGOUT(%kwargs stickyNotes;)
77  virtual std::vector<HOM_ElemPtr<HOM_StickyNote> >
78  stickyNotes(bool recurse=true) = 0;
79  virtual void addStickyNote(HOM_StickyNote &stickynote) = 0;
80  virtual void removeStickyNote(HOM_StickyNote &stickynote) = 0;
81 
82  SWIGOUT(%newobject subnetIndirectInputs;)
83  SWIGOUT(%kwargs subnetIndirectInputs;)
84  virtual std::vector<HOM_ElemPtr<HOM_SubnetIndirectInput> >
85  subnetIndirectInputs(bool recurse=true) = 0;
86  virtual void addSubnetIndirectInput(HOM_SubnetIndirectInput &indirect) = 0;
87  virtual void removeSubnetIndirectInput(HOM_SubnetIndirectInput &indirect) = 0;
88 
89  SWIGOUT(%newobject items;)
90  SWIGOUT(%kwargs items;)
91  virtual std::vector<HOM_ElemPtr<HOM_NetworkMovableItem> >
92  items(bool recurse=true) = 0;
93  virtual void addItem(HOM_NetworkMovableItem &item) = 0;
94  virtual void removeItem(HOM_NetworkMovableItem &item) = 0;
95  virtual void removeAllItems() = 0;
96 
97  virtual void destroy(bool destroy_contents=false) = 0;
98 
99  SWIGOUT(%kwargs asCode;)
100  virtual std::string asCode(bool brief=false,
101  bool recurse=false,
102  bool save_box_contents=false,
103  bool save_channels_only=false,
104  bool save_creation_commands=true,
105  bool save_keys_in_frames=false,
106  bool save_parm_values_only=false,
107  bool save_spare_parms=false,
108  const char *function_name=NULL) = 0;
109 };
110 
111 #endif
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1210
GLsizeiptr size
Definition: glew.h:1681
OIIO_API bool rename(string_view from, string_view to, std::string &err)
#define SWIGOUT(x)
Definition: HOM_Defines.h:24
string __repr__(VtArray< T > const &self)
Definition: wrapArray.h:349
~HOM_NetworkBox() override
#define HOM_API
Definition: HOM_API.h:13
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1209
bool operator!=(const Mat3< T0 > &m0, const Mat3< T1 > &m1)
Inequality operator, does exact floating point comparisons.
Definition: Mat3.h:563
ImageBuf OIIO_API resize(const ImageBuf &src, string_view filtername="", float filterwidth=0.0f, ROI roi={}, int nthreads=0)
const void * indirect
Definition: glew.h:2669
GLsizei const GLchar *const * string
Definition: glew.h:1844
virtual int __hash__() override=0
HOM_NetworkBox(const HOM_NetworkBox &net_box)
bool operator==(const Mat3< T0 > &m0, const Mat3< T1 > &m1)
Equality operator, does exact floating point comparisons.
Definition: Mat3.h:549