HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_ChannelEditorPane.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_ChannelEditorPane_h__
10 #define __HOM_ChannelEditorPane_h__
11 
12 #include "HOM_API.h"
13 #include "HOM_BaseKeyframe.h"
14 #include "HOM_ChannelList.h"
15 #include "HOM_ElemPtr.h"
16 #include "HOM_PaneTab.h"
17 
18 #include <vector>
19 
20 
21 class HOM_ChannelGraph;
22 
23 
24 SWIGOUT(%rename(ChannelEditorPane) HOM_ChannelEditorPane;)
25 
27 {
28 public:
30  { HOM_CONSTRUCT_OBJECT(this) }
31  // Because the lowermost base classes initialize the virtual bases
32  // before any non-virtual bases, the correct thing to do here is
33  // explicitly call the constructor for HOM_PaneTab.
35  : HOM_PaneTab(pane)
36  { HOM_CONSTRUCT_OBJECT(this) }
37 
39  { HOM_DESTRUCT_OBJECT(this) }
40 
41  // Let swig know we're overriding __repr__ for this class so it doesn't
42  // provide its own __repr__.
43  SWIGOUT(virtual std::string __repr__() = 0;)
44 
45  SWIGOUT(%newobject graph;)
46  virtual HOM_ChannelGraph *graph() = 0;
47 
48  virtual double channelListSplitFraction() = 0;
49  virtual void setChannelListSplitFraction(double split_fraction) = 0;
50 
51  virtual std::string displayFilter() = 0;
52  virtual void setDisplayFilter(const std::string &filter) = 0;
53 
54  virtual HOM_EnumValue &editorMode() = 0;
55  virtual void setEditorMode(HOM_EnumValue &mode) = 0;
56 
57  virtual std::string templateFilter() = 0;
58  virtual void setTemplateFilter(const std::string &filter) = 0;
59 
60  virtual std::string colorsCallback() = 0;
61  virtual bool setColorsCallback(const std::string &cb) = 0;
62 
63  SWIGOUT(%ignore registerColorsOpaqueCallback;)
64  virtual bool registerColorsOpaqueCallback(const std::string &cb_class, void* ptr ) = 0;
65  virtual bool unregisterColorsCallback(const std::string &cb_class ) = 0;
66  virtual std::vector< std::string > colorsCallbacks() = 0;
67 
68 #ifdef SWIG
69 %extend
70 {
71  virtual bool registerColorsCallback(const std::string &cb_class, InterpreterObject callback)
72  { return self->registerColorsOpaqueCallback(cb_class, callback); }
73 }
74 #endif
75 
76  virtual HOM_ChannelList *channelList() = 0;
77  virtual void setChannelList( HOM_ChannelList *l ) = 0;
78 
79  virtual bool channelListPinned() = 0;
80  virtual void setChannelListPinned(bool pinned) = 0;
81 };
82 
83 #endif // __HOM_ChannelEditorPane_h__
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1130
GLenum mode
Definition: glew.h:2163
OIIO_API bool rename(string_view from, string_view to, std::string &err)
#define SWIGOUT(x)
Definition: HOM_Defines.h:24
string __repr__(VtArray< T > const &self)
Definition: wrapArray.h:349
GLdouble l
Definition: glew.h:9122
GLint GLint GLint GLint GLint GLint GLint GLbitfield GLenum filter
Definition: glew.h:2981
#define HOM_API
Definition: HOM_API.h:13
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1129
GLsizei const GLchar *const * string
Definition: glew.h:1844
const void * ptr(const T *p)
Definition: format.h:3292
HOM_ChannelEditorPane(const HOM_ChannelEditorPane &pane)