HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_ContextViewer.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_ContextViewer_h__
10 #define __HOM_ContextViewer_h__
11 
12 #include "HOM_PathBasedPaneTab.h"
13 
16 class HOM_SceneViewer;
17 
18 SWIGOUT(%rename(ContextViewer) HOM_ContextViewer;)
19 
21 {
22 public:
24  { HOM_CONSTRUCT_OBJECT(this) }
25 
26  // Because the lowermost base classes initialize the virtual bases
27  // before any non-virtual bases, the correct thing to do here is
28  // explicitly call the constructor for HOM_PaneTab.
30  : HOM_PaneTab(pane), HOM_PathBasedPaneTab(pane)
31  { HOM_CONSTRUCT_OBJECT(this) }
32 
33  ~HOM_ContextViewer() override
34  { HOM_DESTRUCT_OBJECT(this) }
35 
36  // Let swig know we're overriding __repr__ for this class so it doesn't
37  // provide its own __repr__.
38  SWIGOUT(virtual std::string __repr__() = 0;)
39 
40  SWIGOUT(%newobject sceneViewer;)
41  virtual HOM_SceneViewer *sceneViewer() = 0;
42 
43  SWIGOUT(%newobject compositorViewer;)
44  virtual HOM_CompositorViewer *compositorViewer() = 0;
45 
46  SWIGOUT(%newobject findViewport;)
47  virtual HOM_GeometryViewport *findViewport(const char *name) = 0;
48 };
49 
50 #endif
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1291
GLsizei const GLchar *const * string
Definition: glcorearb.h:814
#define SWIGOUT(x)
Definition: HOM_Defines.h:24
string __repr__(VtArray< T > const &self)
Definition: wrapArray.h:352
virtual HOM_GeometryViewport * findViewport(const char *name)=0
#define HOM_API
Definition: HOM_API.h:13
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1290
~HOM_ContextViewer() override
HOM_ContextViewer(const HOM_ContextViewer &pane)
GLuint const GLchar * name
Definition: glcorearb.h:786
OIIO_UTIL_API bool rename(string_view from, string_view to, std::string &err)
virtual HOM_Pane * pane()=0