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 bool operator==(HOM_PtrOrNull<HOM_NetworkBox> networkbox) = 0;
38  virtual bool operator!=(HOM_PtrOrNull<HOM_NetworkBox> networkbox) = 0;
39 
40  int __hash__() override = 0;
41  std::string __repr__() override = 0;
42 
43  virtual std::string comment() = 0;
44  virtual void setComment(const char *comment) = 0;
45 
46  virtual bool autoFit() = 0;
47  virtual void setAutoFit(bool auto_fit) = 0;
48 
49  virtual void setBounds(const HOM_BoundingRect &bounds) = 0;
50  virtual void setSize(const std::vector<double> &size) = 0;
51  virtual void resize(const std::vector<double> &amount) = 0;
52  virtual void fitAroundContents() = 0;
53 
54  virtual HOM_Vector2 minimizedSize() = 0;
55  virtual HOM_Vector2 restoredSize() = 0;
56 
57  virtual bool isMinimized() = 0;
58  virtual void setMinimized(bool on) = 0;
59 
60  virtual double alpha() = 0;
61  virtual void setAlpha(double alpha) = 0;
62 
63  SWIGOUT(%newobject nodes;)
64  SWIGOUT(%kwargs nodes;)
65  virtual std::vector<HOM_ElemPtr<HOM_Node> > nodes(bool recurse=true) = 0;
66  virtual void addNode(HOM_Node &node) = 0;
67  virtual void removeNode(HOM_Node &node) = 0;
68  virtual void removeAllNodes() = 0;
69 
70  SWIGOUT(%newobject networkBoxes;)
71  SWIGOUT(%kwargs networkBoxes;)
72  virtual std::vector<HOM_ElemPtr<HOM_NetworkBox> >
73  networkBoxes(bool recurse=true) = 0;
74  virtual void addNetworkBox(HOM_NetworkBox &networkbox) = 0;
75  virtual void removeNetworkBox(HOM_NetworkBox &networkbox) = 0;
76 
77  SWIGOUT(%newobject stickyNotes;)
78  SWIGOUT(%kwargs stickyNotes;)
79  virtual std::vector<HOM_ElemPtr<HOM_StickyNote> >
80  stickyNotes(bool recurse=true) = 0;
81  virtual void addStickyNote(HOM_StickyNote &stickynote) = 0;
82  virtual void removeStickyNote(HOM_StickyNote &stickynote) = 0;
83 
84  SWIGOUT(%newobject subnetIndirectInputs;)
85  SWIGOUT(%kwargs subnetIndirectInputs;)
86  virtual std::vector<HOM_ElemPtr<HOM_SubnetIndirectInput> >
87  subnetIndirectInputs(bool recurse=true) = 0;
88  virtual void addSubnetIndirectInput(HOM_SubnetIndirectInput &indirect) = 0;
89  virtual void removeSubnetIndirectInput(HOM_SubnetIndirectInput &indirect) = 0;
90 
91  SWIGOUT(%newobject items;)
92  SWIGOUT(%kwargs items;)
93  virtual std::vector<HOM_ElemPtr<HOM_NetworkMovableItem> >
94  items(bool recurse=true) = 0;
95  virtual void addItem(HOM_NetworkMovableItem &item) = 0;
96  virtual void removeItem(HOM_NetworkMovableItem &item) = 0;
97  virtual void removeAllItems() = 0;
98 
99  virtual void destroy(bool destroy_contents=false) = 0;
100 
101  SWIGOUT(%kwargs asCode;)
102  virtual std::string asCode(bool brief=false,
103  bool recurse=false,
104  bool save_box_contents=false,
105  bool save_channels_only=false,
106  bool save_creation_commands=true,
107  bool save_keys_in_frames=false,
108  bool save_parm_values_only=false,
109  bool save_spare_parms=false,
110  bool save_netbox_membership=true,
111  const char *function_name=NULL) = 0;
112 };
113 
114 #endif
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1303
const void * indirect
Definition: glcorearb.h:1795
virtual int __hash__()=0
GLsizei const GLchar *const * string
Definition: glcorearb.h:814
#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:1302
bool operator!=(const Mat3< T0 > &m0, const Mat3< T1 > &m1)
Inequality operator, does exact floating point comparisons.
Definition: Mat3.h:556
GLfloat GLfloat GLfloat alpha
Definition: glcorearb.h:112
GLsizeiptr size
Definition: glcorearb.h:664
ImageBuf OIIO_API resize(const ImageBuf &src, string_view filtername="", float filterwidth=0.0f, ROI roi={}, int nthreads=0)
OIIO_UTIL_API bool rename(string_view from, string_view to, std::string &err)
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:542