HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_CompositorViewer.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_CompositorViewer_h__
10 #define __HOM_CompositorViewer_h__
11 
12 #include "HOM_PathBasedPaneTab.h"
13 #include "HOM_EnumModules.h"
14 #include "HOM_Viewport2D.h"
15 
16 SWIGOUT(%rename(CompositorViewer) HOM_CompositorViewer;)
17 
19 {
20 public:
21  typedef std::vector< std::pair<std::string, std::string> > Bindings;
22  typedef std::vector< std::string > HandleParmNames;
23 
25  { HOM_CONSTRUCT_OBJECT(this) }
26 
27  // Because the lowermost base classes initialize the virtual bases
28  // before any non-virtual bases, the correct thing to do here is
29  // explicitly call the constructor for HOM_PaneTab.
31  : HOM_PaneTab(pane), HOM_PathBasedPaneTab(pane)
32  { HOM_CONSTRUCT_OBJECT(this) }
33 
35  { HOM_DESTRUCT_OBJECT(this) }
36 
37  // Let swig know we're overriding __repr__ for this class so it doesn't
38  // provide its own __repr__.
39  SWIGOUT(virtual std::string __repr__() = 0;)
40 
41  virtual std::string currentState() = 0;
42 
43  virtual void enterViewState(bool wait_for_exit = false) = 0;
44 
45  virtual void setCurrentState(const char *state, bool wait_for_exit = false) = 0;
46 
47  virtual bool usingOCIO() = 0;
48  virtual void setUsingOCIO(bool enable) = 0;
49 
50  SWIGOUT(%kwargs setOCIODisplayView;)
51  virtual void setOCIODisplayView(const char *display = nullptr,
52  const char *view = nullptr) = 0;
53  virtual std::string getOCIODisplay() = 0;
54  virtual std::string getOCIOView() = 0;
55 
56  SWIGOUT(%ignore _runStateCommand;)
57  SWIGOUT(%kwargs _runStateCommand;)
58  virtual void _runStateCommand(std::string const & name, void* args=nullptr) = 0;
59 
60  SWIGOUT(%newobject curViewport;)
61  virtual HOM_Viewport2D *curViewport() = 0;
62 
63  virtual void showHandle(std::string const& name, bool value) = 0;
64 
65 #ifdef SWIG
66 %extend
67 {
68  SWIGOUT(%kwargs runStateCommand;)
69  virtual void runStateCommand(std::string const & name, InterpreterObject args=nullptr)
70  {
71  self->_runStateCommand(name, args);
72  }
73 }
74 #endif
75 
76  SWIGOUT(%kwargs bindViewerHandle;)
77  virtual void bindViewerHandle(
78  std::string const& handle_type,
79  std::string const& handle_instance_name,
80  std::string const& settings=std::string(),
81  bool cache_previous_parms = false,
82  HandleParmNames const& handle_parms = HandleParmNames()) = 0;
83 
84  SWIGOUT(%kwargs bindViewerHandleStatic;)
85  virtual void bindViewerHandleStatic(
86  std::string const& handle_type,
87  std::string const& handle_instance_name,
88  Bindings const & bindings,
89  std::string const& settings=std::string() ) = 0;
90 
91  virtual void unbindViewerHandle(std::string const& handle_instance_name) = 0;
92 };
93 
94 #endif
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1343
GLsizei const GLfloat * value
Definition: glcorearb.h:824
#define SWIGOUT(x)
Definition: HOM_Defines.h:24
string __repr__(VtArray< T > const &self)
Definition: wrapArray.h:312
std::vector< std::pair< std::string, std::string > > Bindings
HOM_CompositorViewer(const HOM_CompositorViewer &pane)
#define HOM_API
Definition: HOM_API.h:13
void ignore(T const &) VULKAN_HPP_NOEXCEPT
Definition: vulkan.hpp:6508
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1342
std::vector< std::string > HandleParmNames
GLuint const GLchar * name
Definition: glcorearb.h:786
OIIO_UTIL_API bool rename(string_view from, string_view to, std::string &err)
**If you just want to fire and args
Definition: thread.h:618
state
Definition: core.h:2289