HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_LopNetwork.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_LopNetwork_h__
10 #define __HOM_LopNetwork_h__
11 
12 #include "HOM_API.h"
13 #include "HOM_Defines.h"
14 #include "HOM_EnumModules.h"
15 #include "HOM_Errors.h"
16 #include "HOM_OpNode.h"
17 
18 class HOM_LopNode;
19 class HOM_LopPostLayer;
23 
24 SWIGOUT(%rename(LopNetwork) HOM_LopNetwork;)
25 
26 class HOM_API HOM_LopNetwork : virtual public HOM_OpNode
27 {
28 public:
30  : HOM_NetworkMovableItem(HOM_networkItemType::Node)
31  { HOM_CONSTRUCT_OBJECT(this) }
32  HOM_LopNetwork(const HOM_LopNetwork &pop_node)
33  : HOM_OpNode(pop_node),
34  HOM_NetworkMovableItem(pop_node)
35  { HOM_CONSTRUCT_OBJECT(this) }
36  ~HOM_LopNetwork() override
37  { HOM_DESTRUCT_OBJECT(this) }
38 
39  // Let swig know we're overriding __repr__ for this class so it doesn't
40  // provide its own __repr__.
41  SWIGOUT(virtual std::string __repr__() = 0;)
42 
43  virtual bool isDebugFlagSet() = 0;
44  virtual void setDebugFlag(bool on) = 0;
45 
46  SWIGOUT(%newobject displayNode;)
47  virtual HOM_Node *displayNode() = 0;
48  SWIGOUT(%newobject viewerNode;)
49  virtual HOM_Node *viewerNode() = 0;
50 
51  SWIGOUT(%newobject viewportOverrides;)
52  virtual HOM_LopViewportOverrides *viewportOverrides(HOM_LopNode *lop,
53  int output_index = 0) = 0;
54  virtual void saveNamedViewportOverrides(const char *name) = 0;
55  virtual void loadNamedViewportOverrides(const char *name) = 0;
56  virtual std::vector<std::string> namedViewportOverrides() = 0;
57 #ifdef SWIG
58 %extend
59 {
60  SWIGOUT(%kwargs viewportOverridesLayer;)
61  InterpreterObject viewportOverridesLayer(HOM_EnumValue &layer_id =
62  HOM_lopViewportOverridesLayer::Custom)
63  { return HOMincRef((InterpreterObject)self->
64  opaqueViewportOverridesLayer(layer_id)); }
65 }
66 #endif
67  SWIGOUT(%ignore opaqueViewportOverridesLayer;)
68  virtual void *opaqueViewportOverridesLayer(HOM_EnumValue &layer_id =
69  HOM_lopViewportOverridesLayer::Custom) = 0;
70 
71  SWIGOUT(%newobject viewportLoadMasks;)
72  virtual HOM_LopViewportLoadMasks *viewportLoadMasks() = 0;
73  virtual void setViewportLoadMasks(
74  HOM_LopViewportLoadMasks *load_masks) = 0;
75  virtual void saveNamedViewportLoadMasks(const char *name,
76  HOM_LopViewportLoadMasks *load_masks) = 0;
77  SWIGOUT(%newobject loadNamedViewportLoadMasks;)
78  virtual HOM_LopViewportLoadMasks *loadNamedViewportLoadMasks(
79  const char *name) = 0;
80  virtual std::vector<std::string> namedViewportLoadMasks() = 0;
81 
82  SWIGOUT(%newobject editablePostLayer;)
83  virtual HOM_LopPostLayer *editablePostLayer(const char *name,
84  HOM_LopNode *lop,
85  int output_index = 0) = 0;
86  virtual std::vector<std::string> postLayerNames() = 0;
87 #ifdef SWIG
88 %extend
89 {
90  InterpreterObject postLayer(const char *name)
91  { return HOMincRef((InterpreterObject)self->opaquePostLayer(name)); }
92 }
93 #endif
94  SWIGOUT(%ignore opaquePostLayer;)
95  virtual void *opaquePostLayer(const char *name) = 0;
96  virtual void removePostLayer(const char *name) = 0;
97 
98  virtual std::vector<std::string> selection() = 0;
99  virtual std::string selectionCurrentPrim() = 0;
100  virtual std::vector<std::string> selectionWithInstanceIds() = 0;
101  SWIGOUT(%kwargs setSelection;)
102  virtual void setSelection(
103  const std::vector<std::string> &selection,
104  const char *currentprim = nullptr) = 0;
105 
106  virtual std::map<std::string, HOM_ElemPtr<HOM_LopSelectionRule> >
107  selectionRules() = 0;
108  virtual void clearSelectionRules() = 0;
109  virtual void setSelectionRule(const char *name,
110  HOM_LopSelectionRule *rule) = 0;
111 };
112 
113 #endif
GT_API const UT_StringHolder selection
#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
#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_LopNetwork() override
GLuint const GLchar * name
Definition: glcorearb.h:786
OIIO_UTIL_API bool rename(string_view from, string_view to, std::string &err)
HOM_LopNetwork(const HOM_LopNetwork &pop_node)