HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_viewportVisualizers.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_viewportVisualizers_h__
10 #define __HOM_viewportVisualizers_h__
11 
12 #include "HOM_API.h"
13 #include "HOM_Errors.h"
14 #include "HOM_ElemPtr.h"
15 #include "HOM_EnumModules.h"
16 
17 #include <string>
18 #include <vector>
19 
21 class HOM_Node;
24 
25 SWIGOUT(%rename(viewportVisualizers) HOM_viewportVisualizers;)
26 
28 {
29 public:
31  {}
32 
33  virtual std::string __repr__() = 0;
34 
35  SWIGOUT(%kwargs visualizers;)
36  virtual std::vector<HOM_ElemPtr<HOM_ViewportVisualizer> > visualizers(
37  HOM_EnumValue &category=HOM_viewportVisualizerCategory::Common,
38  HOM_Node *node=NULL) = 0;
39 
40  SWIGOUT(%newobject createVisualizer;)
41  SWIGOUT(%kwargs createVisualizer;)
42  virtual HOM_ViewportVisualizer *createVisualizer(
44  HOM_EnumValue &category=HOM_viewportVisualizerCategory::Common,
45  HOM_Node *node=NULL) = 0;
46 
47  SWIGOUT(%newobject copyVisualizer;)
48  SWIGOUT(%kwargs copyVisualizer;)
49  virtual HOM_ViewportVisualizer *copyVisualizer(
51 
52  virtual std::vector<HOM_ElemPtr<HOM_ViewportVisualizerType> > types() = 0;
53 
54  SWIGOUT(%warnfilter(321) type;)
55  SWIGOUT(%newobject type;)
56  virtual HOM_ViewportVisualizerType *type(const char *name) = 0;
57 
58  SWIGOUT(%kwargs isCategoryActive;)
59  virtual bool isCategoryActive(
60  HOM_EnumValue &category, HOM_Node *node=NULL,
61  HOM_GeometryViewport *viewport=NULL) = 0;
62  SWIGOUT(%kwargs setIsCategoryActive;)
63  virtual void setIsCategoryActive(
64  bool on, HOM_EnumValue &category, HOM_Node *node=NULL,
65  HOM_GeometryViewport *viewport=NULL) = 0;
66 
67  SWIGOUT(%newobject visualizerBySessionId;)
68  virtual HOM_ViewportVisualizer *visualizerBySessionId(int session_id) = 0;
69 
70  SWIGOUT(%ignore addOpaqueEventCallback;)
71  virtual void addOpaqueEventCallback(
72  const std::vector<HOM_EnumValue *> &event_types,
73  void *py_callback,
74  HOM_EnumValue &category,
75  HOM_Node *node) = 0;
76  SWIGOUT(%ignore removeOpaqueEventCallback;)
77  virtual void removeOpaqueEventCallback(
78  const std::vector<HOM_EnumValue *> &event_types,
79  void *py_callback,
80  HOM_EnumValue &category,
81  HOM_Node *node) = 0;
82  SWIGOUT(%kwargs removeAllEventCallbacks;)
83  virtual void removeAllEventCallbacks(
84  HOM_EnumValue &category=HOM_viewportVisualizerCategory::Common,
85  HOM_Node *node=NULL) = 0;
86  SWIGOUT(%ignore opaqueEventCallbacks;)
87  virtual std::vector<std::pair<std::vector<HOM_EnumValue *>, void *> >
88  opaqueEventCallbacks(
89  HOM_EnumValue &category,
90  HOM_Node *node) = 0;
91 
92 #ifdef SWIG
93 %extend
94 {
95  SWIGOUT(%kwargs addEventCallback;)
96  void addEventCallback(
97  const std::vector<HOM_EnumValue *> &event_types,
98  InterpreterObject callback,
99  HOM_EnumValue &category=HOM_viewportVisualizerCategory::Common,
100  HOM_Node *node=NULL)
101  { self->addOpaqueEventCallback(event_types, callback, category, node); }
102 
103  SWIGOUT(%kwargs removeEventCallback;)
104  void removeEventCallback(
105  const std::vector<HOM_EnumValue *> &event_types,
106  InterpreterObject callback,
107  HOM_EnumValue &category=HOM_viewportVisualizerCategory::Common,
108  HOM_Node *node=NULL)
109  { self->removeOpaqueEventCallback(event_types, callback, category, node); }
110 
111  SWIGOUT(%kwargs removeEventCallback;)
112  std::vector<std::pair<std::vector<HOM_EnumValue *>, InterpreterObject> >
113  eventCallbacks(
114  HOM_EnumValue &category=HOM_viewportVisualizerCategory::Common,
115  HOM_Node *node=NULL)
116  {
117  std::vector<std::pair<std::vector<HOM_EnumValue *>, void *> >
118  opaque_callbacks(self->opaqueEventCallbacks(category, node));
119 
120  std::vector<std::pair<std::vector<HOM_EnumValue *>, InterpreterObject> >
121  callbacks;
122  for (int i=0; i< opaque_callbacks.size(); ++i)
123  callbacks.push_back(std::make_pair(
124  opaque_callbacks[i].first,
125  (InterpreterObject)opaque_callbacks[i].second));
126  return callbacks;
127  }
128 }
129 #endif
130 };
131 
132 #endif
133 
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
GLsizei GLsizei GLchar * source
Definition: glcorearb.h:803
GLuint const GLchar * name
Definition: glcorearb.h:786
OIIO_UTIL_API bool rename(string_view from, string_view to, std::string &err)
GLsizei GLenum GLenum * types
Definition: glcorearb.h:2542
type
Definition: core.h:1059