HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_RopNode.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_RopNode_h__
10 #define __HOM_RopNode_h__
11 
12 #include "HOM_API.h"
13 #include "HOM_Defines.h"
14 #include "HOM_Errors.h"
15 #include "HOM_OpNode.h"
16 
17 SWIGOUT(%rename(RopNode) HOM_RopNode;)
18 
19 class HOM_API HOM_RopNode : virtual public HOM_OpNode
20 {
21 public:
23  : HOM_NetworkMovableItem(HOM_networkItemType::Node)
24  { HOM_CONSTRUCT_OBJECT(this) }
25  HOM_RopNode(const HOM_RopNode &rop_node)
26  : HOM_OpNode(rop_node),
27  HOM_NetworkMovableItem(rop_node)
28  { HOM_CONSTRUCT_OBJECT(this) }
29  ~HOM_RopNode() override
30  { HOM_DESTRUCT_OBJECT(this) }
31 
32  // Let swig know we're overriding __repr__ for this class so it doesn't
33  // provide its own __repr__.
34  SWIGOUT(virtual std::string __repr__() = 0;)
35 
36  virtual bool isBypassed() = 0;
37  virtual void bypass(bool on) = 0;
38  virtual bool isLocked() = 0;
39  virtual void setLocked(bool on) = 0;
40 
41  virtual std::vector<std::pair<HOM_ElemPtr<HOM_Node>, std::vector<double> > >
42  inputDependencies() = 0;
43 
44  SWIGOUT(%kwargs render;)
45  virtual void render(
46  const std::vector<double> &frame_range = std::vector<double>(),
47  const std::vector<double> &res = std::vector<double>(),
48  const char *output_file = NULL,
49  const char *output_format = NULL,
50  bool to_flipbook = false,
51  int quality = 2,
52  bool ignore_inputs = false,
53  HOM_EnumValue &method = HOM_renderMethod::RopByRop,
54  bool ignore_bypass_flags = false,
55  bool ignore_lock_flags = false,
56  bool verbose=false,
57  bool output_progress=false) = 0;
58 
59  SWIGOUT(%ignore addOpaqueRenderEventCallback;)
60  virtual void addOpaqueRenderEventCallback(
61  void *py_callback,
62  bool run_before_script) = 0;
63 
64  SWIGOUT(%ignore removeOpaqueRenderEventCallback;)
65  virtual void removeOpaqueRenderEventCallback(void *py_callback) = 0;
66 
67  virtual void removeAllRenderEventCallbacks() = 0;
68 #ifdef SWIG
69  %extend
70  {
71  void addRenderEventCallback(
72  InterpreterObject callback,
73  bool run_before_script = false)
74  { self->addOpaqueRenderEventCallback(callback, run_before_script); }
75  void removeRenderEventCallback(InterpreterObject callback)
76  { self->removeOpaqueRenderEventCallback(callback); }
77  }
78 #endif
79 };
80 
81 #endif
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1303
Definition: Node.h:52
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
IFDmantra you can see code vm_image_mplay_direction endcode When SOHO starts a render
Definition: HDK_Image.dox:266
#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
HOM_RopNode(const HOM_RopNode &rop_node)
Definition: HOM_RopNode.h:25
OIIO_UTIL_API bool rename(string_view from, string_view to, std::string &err)
~HOM_RopNode() override
Definition: HOM_RopNode.h:29