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_Node.h"
17 
18 class HOM_LopNode;
22 
23 SWIGOUT(%rename(LopNetwork) HOM_LopNetwork;)
24 
25 class HOM_API HOM_LopNetwork : virtual public HOM_Node
26 {
27 public:
29  : HOM_NetworkMovableItem(HOM_networkItemType::Node)
30  { HOM_CONSTRUCT_OBJECT(this) }
31  HOM_LopNetwork(const HOM_LopNetwork &pop_node)
32  : HOM_Node(pop_node),
33  HOM_NetworkMovableItem(pop_node)
34  { HOM_CONSTRUCT_OBJECT(this) }
35  ~HOM_LopNetwork() override
36  { HOM_DESTRUCT_OBJECT(this) }
37 
38  // Let swig know we're overriding __repr__ for this class so it doesn't
39  // provide its own __repr__.
40  SWIGOUT(virtual std::string __repr__() = 0;)
41 
42  virtual bool isDebugFlagSet() = 0;
43  virtual void setDebugFlag(bool on) = 0;
44 
45  SWIGOUT(%newobject displayNode;)
46  virtual HOM_Node *displayNode() = 0;
47  SWIGOUT(%newobject viewerNode;)
48  virtual HOM_Node *viewerNode() = 0;
49 
50  SWIGOUT(%newobject viewportOverrides;)
51  virtual HOM_LopViewportOverrides *viewportOverrides(HOM_LopNode *lop,
52  int output_index = 0) = 0;
53  virtual void saveNamedViewportOverrides(const char *name) = 0;
54  virtual void loadNamedViewportOverrides(const char *name) = 0;
55  virtual std::vector<std::string> namedViewportOverrides() = 0;
56 #ifdef SWIG
57 %extend
58 {
59  SWIGOUT(%kwargs viewportOverridesLayer;)
60  InterpreterObject viewportOverridesLayer(HOM_EnumValue &layer_id =
61  HOM_lopViewportOverridesLayer::Custom)
62  { return HOMincRef((InterpreterObject)self->
63  opaqueViewportOverridesLayer(layer_id)); }
64 }
65 #endif
66  SWIGOUT(%ignore opaqueViewportOverridesLayer;)
67  virtual void *opaqueViewportOverridesLayer(HOM_EnumValue &layer_id =
68  HOM_lopViewportOverridesLayer::Custom) = 0;
69 
70  SWIGOUT(%newobject viewportLoadMasks;)
71  virtual HOM_LopViewportLoadMasks *viewportLoadMasks() = 0;
72  virtual void setViewportLoadMasks(
73  HOM_LopViewportLoadMasks *load_masks) = 0;
74  virtual void saveNamedViewportLoadMasks(const char *name,
75  HOM_LopViewportLoadMasks *load_masks) = 0;
76  SWIGOUT(%newobject loadNamedViewportLoadMasks;)
77  virtual HOM_LopViewportLoadMasks *loadNamedViewportLoadMasks(
78  const char *name) = 0;
79  virtual std::vector<std::string> namedViewportLoadMasks() = 0;
80 
81  virtual std::vector<std::string> selection() = 0;
82  virtual std::string selectionLayerId() = 0;
83  virtual std::string selectionCurrentPrim() = 0;
84  virtual void setSelection(
85  const std::vector<std::string> &selection,
86  const char *layerid = nullptr,
87  const char *currentprim = nullptr) = 0;
88 
89  virtual std::map<std::string, HOM_ElemPtr<HOM_LopSelectionRule> >
90  selectionRules() = 0;
91  virtual void clearSelectionRules() = 0;
92  virtual void setSelectionRule(const char *name,
93  HOM_LopSelectionRule *rule) = 0;
94 };
95 
96 #endif
GT_API const UT_StringHolder selection
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1197
GLuint const GLchar * name
Definition: glew.h:1814
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:349
#define HOM_API
Definition: HOM_API.h:13
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1196
~HOM_LopNetwork() override
GLsizei const GLchar *const * string
Definition: glew.h:1844
HOM_LopNetwork(const HOM_LopNetwork &pop_node)