HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_LopPostLayer.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  * Class used to create a block for editing a post layer on a
8  * LOP Network.
9  */
10 
11 #ifndef __HOM_LopPostLayer_h__
12 #define __HOM_LopPostLayer_h__
13 
14 #include "HOM_API.h"
15 #include "HOM_Errors.h"
16 #include "HOM_Module.h"
17 
18 SWIGOUT(%rename(LopPostLayer) HOM_LopPostLayer;)
19 
21 {
22 public:
24  { HOM_CONSTRUCT_OBJECT(this) }
26  { HOM_CONSTRUCT_OBJECT(this) }
28  { HOM_DESTRUCT_OBJECT(this) }
29 
30  // Let swig know we're overriding __repr__ for this class so it doesn't
31  // provide its own __repr__.
32  virtual std::string __repr__() = 0;
33 
34  virtual HOM_LopPostLayer *__enter__() = 0;
35 
36  SWIGOUT(%ignore opaqueLayer;)
37  virtual void *opaqueLayer() = 0;
38  SWIGOUT(%ignore opaqueStage;)
39  virtual void *opaqueStage() = 0;
40 
41  SWIGOUT(%ignore opaqueExit;)
42  virtual void opaqueExit() = 0;
43 
44 #ifdef SWIG
45 %extend
46 {
47  InterpreterObject layer()
48  { return HOMincRef((InterpreterObject)self->opaqueLayer()); }
49  InterpreterObject stage()
50  { return HOMincRef((InterpreterObject)self->opaqueStage()); }
51 
52  // We can ignore the type, value, and traceback Python objects.
53  SWIGOUT(virtual void __exit__(
54  InterpreterObject type, InterpreterObject value,
55  InterpreterObject traceback)
56  { self->opaqueExit(); };)
57 }
58 #endif
59 
60 };
61 
62 #endif
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1238
GLenum GLuint GLint GLint layer
Definition: glcorearb.h:1298
virtual ~HOM_LopPostLayer()
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:353
GLint GLint GLsizei GLint GLenum GLenum type
Definition: glcorearb.h:107
#define HOM_API
Definition: HOM_API.h:13
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1237
GLsizei const GLchar *const * string
Definition: glcorearb.h:813
HOM_LopPostLayer(const HOM_LopPostLayer &)
GLsizei const GLfloat * value
Definition: glcorearb.h:823
HOM_LopPostLayer()