HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros 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  virtual ~HOM_NetworkBox()
35  { HOM_DESTRUCT_OBJECT(this) }
36 
37  virtual std::string __repr__() = 0;
38 
39  virtual bool operator==(HOM_PtrOrNull<HOM_NetworkBox> networkbox) = 0;
40  virtual bool operator!=(HOM_PtrOrNull<HOM_NetworkBox> networkbox) = 0;
41 
42  virtual std::string comment() = 0;
43  virtual void setComment(const char *comment) = 0;
44 
45  virtual bool autoFit() = 0;
46  virtual void setAutoFit(bool auto_fit) = 0;
47 
48  virtual void setBounds(const HOM_BoundingRect &bounds) = 0;
49  virtual void setSize(const std::vector<double> &size) = 0;
50  virtual void resize(const std::vector<double> &amount) = 0;
51  virtual void fitAroundContents() = 0;
52 
53  virtual HOM_Vector2 minimizedSize() = 0;
54  virtual HOM_Vector2 restoredSize() = 0;
55 
56  virtual bool isMinimized() = 0;
57  virtual void setMinimized(bool on) = 0;
58 
59  SWIGOUT(%newobject nodes;)
60  virtual std::vector<HOM_ElemPtr<HOM_Node> > nodes(bool recurse=true) = 0;
61  virtual void addNode(HOM_Node &node) = 0;
62  virtual void removeNode(HOM_Node &node) = 0;
63  virtual void removeAllNodes() = 0;
64 
65  SWIGOUT(%newobject networkBoxes;)
66  virtual std::vector<HOM_ElemPtr<HOM_NetworkBox> >
67  networkBoxes(bool recurse=true) = 0;
68  virtual void addNetworkBox(HOM_NetworkBox &networkbox) = 0;
69  virtual void removeNetworkBox(HOM_NetworkBox &networkbox) = 0;
70 
71  SWIGOUT(%newobject stickyNotes;)
72  virtual std::vector<HOM_ElemPtr<HOM_StickyNote> >
73  stickyNotes(bool recurse=true) = 0;
74  virtual void addStickyNote(HOM_StickyNote &stickynote) = 0;
75  virtual void removeStickyNote(HOM_StickyNote &stickynote) = 0;
76 
77  SWIGOUT(%newobject subnetIndirectInputs;)
78  virtual std::vector<HOM_ElemPtr<HOM_SubnetIndirectInput> >
79  subnetIndirectInputs(bool recurse=true) = 0;
80  virtual void addSubnetIndirectInput(HOM_SubnetIndirectInput &indirect) = 0;
81  virtual void removeSubnetIndirectInput(HOM_SubnetIndirectInput &indirect) = 0;
82 
83  SWIGOUT(%newobject items;)
84  virtual std::vector<HOM_ElemPtr<HOM_NetworkMovableItem> >
85  items(bool recurse=true) = 0;
86  virtual void addItem(HOM_NetworkMovableItem &item) = 0;
87  virtual void removeItem(HOM_NetworkMovableItem &item) = 0;
88  virtual void removeAllItems() = 0;
89 
90  virtual void destroy(bool destroy_contents=false) = 0;
91 
92  SWIGOUT(%kwargs asCode;)
93  virtual std::string asCode(bool brief=false,
94  bool recurse=false,
95  bool save_box_contents=false,
96  bool save_channels_only=false,
97  bool save_creation_commands=true,
98  bool save_keys_in_frames=false,
99  bool save_parm_values_only=false,
100  bool save_spare_parms=false,
101  const char *function_name=NULL) = 0;
102 };
103 
104 #endif
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:983
virtual std::string __repr__()=0
GLsizei const GLchar *const * string
Definition: glcorearb.h:813
#define SWIGOUT(x)
Definition: HOM_Defines.h:24
GLsizeiptr size
Definition: glcorearb.h:663
#define HOM_API
Definition: HOM_API.h:13
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:982
bool operator!=(const Mat3< T0 > &m0, const Mat3< T1 > &m1)
Inequality operator, does exact floating point comparisons.
Definition: Mat3.h:610
const void * indirect
Definition: glcorearb.h:1794
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:596
virtual ~HOM_NetworkBox()