HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_DataTree.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_DataTree_h__
10 #define __HOM_DataTree_h__
11 
12 #include "HOM_PaneTab.h"
13 
14 SWIGOUT(%rename(DataTree) HOM_DataTree;)
15 
16 class HOM_API HOM_DataTree : virtual public HOM_PaneTab
17 {
18 public:
20  { HOM_CONSTRUCT_OBJECT(this) }
21  // Because the lowermost base classes initialize the virtual bases
22  // before any non-virtual bases, the correct thing to do here is
23  // explicitly call the constructor for HOM_PaneTab.
25  : HOM_PaneTab(pane)
26  { HOM_CONSTRUCT_OBJECT(this) }
27 
28  ~HOM_DataTree() override
29  { HOM_DESTRUCT_OBJECT(this) }
30 
31  // Let swig know we're overriding __repr__ for this class so it doesn't
32  // provide its own __repr__.
33  SWIGOUT(virtual std::string __repr__() = 0;)
34 
35  virtual std::vector<std::string> treeTypes() = 0;
36  virtual std::string treeType() = 0;
37  virtual bool setTreeType(const std::string &tree_type) = 0;
38 
39  virtual std::string currentPath() = 0;
40  virtual void clearCurrentPath() = 0;
41  virtual void setCurrentPath(const std::string &path,
42  bool multi_select = false,
43  int index = -1) = 0;
44  virtual void setCurrentPaths(const std::vector<std::string> &paths,
45  bool expanded) = 0;
46  virtual void setTreeExpanded(bool expanded) = 0;
47  virtual void setCurrentNodeExpanded(bool expanded) = 0;
48 };
49 
50 #endif
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1291
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
~HOM_DataTree() override
Definition: HOM_DataTree.h:28
string __repr__(VtArray< T > const &self)
Definition: wrapArray.h:352
#define HOM_API
Definition: HOM_API.h:13
HOM_DataTree(const HOM_DataTree &pane)
Definition: HOM_DataTree.h:24
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1290
OIIO_UTIL_API bool rename(string_view from, string_view to, std::string &err)
GLuint index
Definition: glcorearb.h:786