HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_Desktop.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_Desktop_h__
10 #define __HOM_Desktop_h__
11 
12 #include "HOM_API.h"
13 #include "HOM_Defines.h"
14 #include "HOM_Errors.h"
15 #include "HOM_Module.h"
16 #include "HOM_EnumValue.h"
17 #include <string>
18 #include <vector>
19 
20 class HOM_ShelfDock;
21 class HOM_Pane;
22 class HOM_PaneTab;
23 class HOM_FloatingPanel;
24 
25 SWIGOUT(%rename(Desktop) HOM_Desktop;)
26 
28 {
29 public:
31  { HOM_CONSTRUCT_OBJECT(this) }
33  { HOM_CONSTRUCT_OBJECT(this) }
34  virtual ~HOM_Desktop()
35  { HOM_DESTRUCT_OBJECT(this) }
36 
37  virtual std::string __repr__() = 0;
38 
39  virtual std::vector<HOM_ElemPtr<HOM_Pane> > panes() = 0;
40 
41  virtual std::vector<HOM_ElemPtr<HOM_PaneTab> > paneTabs() = 0;
42 
43  virtual std::vector<HOM_ElemPtr<HOM_PaneTab> > currentPaneTabs() = 0;
44 
45  virtual std::vector<HOM_ElemPtr<HOM_PaneTab> > floatingPaneTabs() = 0;
46 
47  SWIGOUT(%newobject paneTabOfType;)
48  SWIGOUT(%kwargs paneTabOfType;)
49  virtual HOM_PaneTab *paneTabOfType(HOM_EnumValue &type, int index=0) = 0;
50 
51  SWIGOUT(%newobject findPane;)
52  virtual HOM_Pane *findPane(int pane_id) = 0;
53 
54  SWIGOUT(%newobject findPaneTab;)
55  virtual HOM_PaneTab *findPaneTab(const char *name) = 0;
56 
57  SWIGOUT(%newobject createFloatingPaneTab;)
58  SWIGOUT(%kwargs createFloatingPaneTab;)
59  virtual HOM_PaneTab *createFloatingPaneTab(
60  HOM_EnumValue &pane_tab_type,
61  const std::vector<int> &position = std::vector<int>(),
62  const std::vector<int> &size = std::vector<int>(),
63  const char *python_panel_interface=nullptr) = 0;
64 
65  // This method is deprecated:
66  SWIGOUT(%newobject createFloatingPane;)
68  HOM_EnumValue &pane_tab_type,
69  const std::vector<int> &position = std::vector<int>(),
70  const std::vector<int> &size = std::vector<int>())
71  { return createFloatingPaneTab(pane_tab_type, position, size); }
72 
73  virtual std::vector<HOM_ElemPtr<HOM_FloatingPanel> > floatingPanels() = 0;
74 
75  SWIGOUT(%newobject createFloatingPanel;)
76  SWIGOUT(%kwargs createFloatingPanel;)
77  virtual HOM_FloatingPanel *createFloatingPanel(HOM_EnumValue &pane_tab_type,
78  const std::vector<int> &position = std::vector<int>(),
79  const std::vector<int> &size = std::vector<int>(),
80  const char *python_panel_interface=nullptr) = 0;
81 
82  SWIGOUT(%newobject paneUnderCursor;)
83  virtual HOM_Pane *paneUnderCursor() = 0;
84  SWIGOUT(%newobject paneTabUnderCursor;)
85  virtual HOM_PaneTab *paneTabUnderCursor() = 0;
86 
87 
88  virtual std::string name() = 0;
89 
90  SWIGOUT(%newobject shelfDock;)
91  virtual HOM_ShelfDock *shelfDock() = 0;
92 
93  SWIGOUT(%newobject displaySideHelp;)
94  virtual HOM_PaneTab *displaySideHelp(bool show = true) = 0;
95  virtual void displayHelp(HOM_NodeType &node_type) = 0;
96  virtual void displayHelpPath(const char *help_path) = 0;
97  virtual void displayHelpPyPanel(const char *interface_name) = 0;
98 
99  virtual void setAsCurrent() = 0;
100 };
101 
102 #endif
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1056
GLsizei const GLchar *const * string
Definition: glcorearb.h:813
#define SWIGOUT(x)
Definition: HOM_Defines.h:24
string __repr__(VtArray< T > const &self)
Definition: wrapArray.h:344
GLsizeiptr size
Definition: glcorearb.h:663
virtual ~HOM_Desktop()
Definition: HOM_Desktop.h:34
#define HOM_API
Definition: HOM_API.h:13
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1055
virtual HOM_PaneTab * paneTabOfType(HOM_EnumValue &type, int index=0)=0
GLuint const GLchar * name
Definition: glcorearb.h:785
virtual HOM_Vector2 * position()=0
virtual HOM_PaneTab * findPaneTab(const char *name)=0
GLuint index
Definition: glcorearb.h:785
virtual std::vector< HOM_ElemPtr< HOM_Pane > > panes()=0
GLint GLint GLsizei GLint GLenum GLenum type
Definition: glcorearb.h:107
HOM_Desktop(const HOM_Desktop &)
Definition: HOM_Desktop.h:32
HOM_PaneTab * createFloatingPane(HOM_EnumValue &pane_tab_type, const std::vector< int > &position=std::vector< int >(), const std::vector< int > &size=std::vector< int >())
Definition: HOM_Desktop.h:67
virtual std::vector< HOM_ElemPtr< HOM_PaneTab > > paneTabs()=0