HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_NodeConnection.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_NodeConnection_h__
10 #define __HOM_NodeConnection_h__
11 
12 #include "HOM_API.h"
13 #include "HOM_NetworkItem.h"
14 #include "HOM_Module.h"
15 #include "HOM_EnumModules.h"
16 #include "HOM_Errors.h"
17 #include <string>
18 
19 class HOM_Node;
22 
23 SWIGOUT(%rename(NodeConnection) HOM_NodeConnection;)
24 
26 {
27 public:
29  : HOM_NetworkItem(HOM_networkItemType::Connection)
30  { HOM_CONSTRUCT_OBJECT(this) }
32  : HOM_NetworkItem(src)
33  { HOM_CONSTRUCT_OBJECT(this) }
35  { HOM_DESTRUCT_OBJECT(this) }
36 
37  virtual bool operator==(HOM_PtrOrNull<HOM_NodeConnection> connection) = 0;
38  virtual bool operator!=(HOM_PtrOrNull<HOM_NodeConnection> connection) = 0;
39 
40  virtual int __hash__() = 0;
41  virtual std::string __repr__() = 0;
42 
43  SWIGOUT(%newobject outputNode;)
44  virtual HOM_Node *outputNode() = 0;
45  virtual int inputIndex() = 0;
46  SWIGOUT(%newobject outputItem;)
47  virtual HOM_NetworkMovableItem *outputItem() = 0;
48 
49  SWIGOUT(%newobject inputNode;)
50  virtual HOM_Node *inputNode() = 0;
51  virtual int outputIndex() = 0;
52  SWIGOUT(%newobject subnetIndirectInput;)
53  virtual HOM_SubnetIndirectInput *subnetIndirectInput() = 0;
54  SWIGOUT(%newobject inputItem;)
55  virtual HOM_NetworkMovableItem *inputItem() = 0;
56  virtual int inputItemOutputIndex() = 0;
57 
58  virtual bool isSelected() = 0;
59  SWIGOUT(%kwargs setSelected;)
60  virtual void setSelected(bool selected, bool clear_all_selected=false) = 0;
61 
62  virtual std::string inputName() = 0;
63  virtual std::string inputLabel() = 0;
64  virtual std::string inputDataType() = 0;
65  virtual std::string outputName() = 0;
66  virtual std::string outputLabel() =0;
67  virtual std::string outputDataType() = 0;
68 };
69 
70 #endif
71 
~HOM_NodeConnection() override
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1303
virtual HOM_NetworkMovableItem * inputItem()=0
virtual int __hash__()=0
HOM_NodeConnection(const HOM_NodeConnection &src)
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
virtual void setSelected(bool on, bool clear_all_selected=false, bool show_asset_if_selected=false)=0
#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
virtual bool isSelected()=0
OIIO_UTIL_API bool rename(string_view from, string_view to, std::string &err)
virtual int inputItemOutputIndex()=0
bool operator==(const Mat3< T0 > &m0, const Mat3< T1 > &m1)
Equality operator, does exact floating point comparisons.
Definition: Mat3.h:542
GLenum src
Definition: glcorearb.h:1793