HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_NetworkMovableItem.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_NetworkMovableItem_h__
10 #define __HOM_NetworkMovableItem_h__
11 
12 #include "HOM_API.h"
13 #include "HOM_NetworkItem.h"
14 #include "HOM_Defines.h"
15 #include "HOM_Errors.h"
16 #include "HOM_Module.h"
17 
18 class HOM_Color;
19 class HOM_Node;
20 class HOM_NetworkBox;
21 class HOM_Vector2;
22 
23 SWIGOUT(%rename(NetworkMovableItem) HOM_NetworkMovableItem;)
24 
26 {
27 public:
29  : HOM_NetworkItem(network_item_type)
30  { HOM_CONSTRUCT_OBJECT(this) }
32  : HOM_NetworkItem(src)
33  { HOM_CONSTRUCT_OBJECT(this) }
35  { HOM_DESTRUCT_OBJECT(this) }
36 
37  virtual std::string __repr__() = 0;
38  virtual int __hash__() = 0;
39 
40  virtual std::string name() = 0;
41  SWIGOUT(%kwargs setName;)
42  virtual void setName(const char* name, bool unique_name = false) = 0;
43  virtual int digitsInName() = 0;
44 
45  virtual std::string path() = 0;
46  virtual std::string relativePathTo(HOM_NetworkMovableItem &base_item) = 0;
47 
48  virtual bool isSelected() = 0;
49  SWIGOUT(%kwargs setSelected;)
50  virtual void setSelected(bool on, bool clear_all_selected = false,
51  bool show_asset_if_selected = false) = 0;
52 
53  virtual HOM_Color color() = 0;
54  virtual void setColor(HOM_Color &color) = 0;
55 
56  virtual HOM_Vector2 size() = 0;
57  virtual HOM_Vector2 position() = 0;
58  virtual void setPosition(const std::vector<double> &position) = 0;
59  virtual void move(const std::vector<double> &amount) = 0;
60 
61  SWIGOUT(%newobject parent;)
62  virtual HOM_Node *parent() = 0;
63  SWIGOUT(%newobject parentNetworkBox;)
64  virtual HOM_NetworkBox *parentNetworkBox() = 0;
65 
66  virtual int64 sessionId() = 0;
67 };
68 
69 #endif
70 
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1303
GLsizei const GLchar *const * string
Definition: glcorearb.h:814
GLsizei const GLchar *const * path
Definition: glcorearb.h:3341
#define SWIGOUT(x)
Definition: HOM_Defines.h:24
string __repr__(VtArray< T > const &self)
Definition: wrapArray.h:349
int __hash__()
#define HOM_API
Definition: HOM_API.h:13
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1302
HOM_NetworkMovableItem(const HOM_NetworkMovableItem &src)
long long int64
Definition: SYS_Types.h:116
HOM_NetworkMovableItem(HOM_EnumValue &network_item_type)
GLuint const GLchar * name
Definition: glcorearb.h:786
GLsizeiptr size
Definition: glcorearb.h:664
GLuint color
Definition: glcorearb.h:1261
OIIO_UTIL_API bool rename(string_view from, string_view to, std::string &err)
SIM_API const UT_StringHolder position
GLenum src
Definition: glcorearb.h:1793