HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros 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 int __hash__() = 0;
38 
39  virtual std::string name() = 0;
40  SWIGOUT(%kwargs setName;)
41  virtual void setName(const char* name, bool unique_name = false) = 0;
42  virtual int digitsInName() = 0;
43 
44  virtual std::string path() = 0;
45  virtual std::string relativePathTo(HOM_NetworkMovableItem &base_item) = 0;
46 
47  virtual bool isSelected() = 0;
48  SWIGOUT(%kwargs setSelected;)
49  virtual void setSelected(bool on, bool clear_all_selected = false,
50  bool show_asset_if_selected = false) = 0;
51 
52  virtual HOM_Color color() = 0;
53  virtual void setColor(HOM_Color &color) = 0;
54 
55  virtual HOM_Vector2 size() = 0;
56  virtual HOM_Vector2 position() = 0;
57  virtual void setPosition(const std::vector<double> &position) = 0;
58  virtual void move(const std::vector<double> &amount) = 0;
59 
60  SWIGOUT(%newobject parent;)
61  virtual HOM_Node *parent() = 0;
62  SWIGOUT(%newobject parentNetworkBox;)
63  virtual HOM_NetworkBox *parentNetworkBox() = 0;
64 
65  virtual int64 sessionId() = 0;
66 };
67 
68 #endif
69 
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:973
GLsizei const GLchar *const * string
Definition: glcorearb.h:813
GLuint color
Definition: glcorearb.h:1260
GLsizei const GLchar *const * path
Definition: glcorearb.h:3340
#define SWIGOUT(x)
Definition: HOM_Defines.h:24
GLsizeiptr size
Definition: glcorearb.h:663
int __hash__()
long long int64
Definition: SYS_Types.h:100
#define HOM_API
Definition: HOM_API.h:13
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:972
HOM_NetworkMovableItem(const HOM_NetworkMovableItem &src)
HOM_NetworkMovableItem(HOM_EnumValue &network_item_type)
GLuint const GLchar * name
Definition: glcorearb.h:785
GLenum src
Definition: glcorearb.h:1792