HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_HDAViewerStateModule.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_HDAViewerStateModule_h__
10 #define __HOM_HDAViewerStateModule_h__
11 
12 #include "HOM_API.h"
13 #include "HOM_Defines.h"
14 #include "HOM_Errors.h"
15 #include "HOM_Module.h"
16 
18 
20 
21 SWIGOUT(%rename(HDAViewerStateModule) HOM_HDAViewerStateModule;)
22 
24 {
25 public:
27  { HOM_CONSTRUCT_OBJECT(this) }
29  { HOM_CONSTRUCT_OBJECT(this) }
31  { HOM_DESTRUCT_OBJECT(this) }
32 
33  virtual std::string __repr__() = 0;
34 
35  // Helper method for hou.hda.reloadHDAViewerStateModule().
36  virtual void _reload() = 0;
37 
38 #if defined(SWIG) && defined(SWIGPYTHON)
39 %extend
40 {
41  // __getattr__ will look up the attribute name in the evaluation
42  // context's dictionaries and return the corresponding object if
43  // it exists. This way, the HDAViewerStateModule object can give a dictionary
44  // the behaviour of an object.
45  InterpreterObject __getattr__(const char *name)
46  {
47  return HOMgetattr<HOM_HDAViewerStateModule>(self, name);
48  }
49 }
50 
51 #endif
52 
53  // This method is not wrapped by swig. It is overridden by the HOMF
54  // subclass to provide access to the Python evaluation context containing
55  // the module's contents. It is ok for this method to return null.
56  SWIGOUT(%ignore getEvaluationContext;)
57  virtual PY_EvaluationContext *getEvaluationContext() = 0;
58 };
59 
60 #endif
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1303
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:349
#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:1302
GLuint const GLchar * name
Definition: glcorearb.h:786
HOM_HDAViewerStateModule(const HOM_HDAViewerStateModule &module)
OIIO_UTIL_API bool rename(string_view from, string_view to, std::string &err)