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  virtual ~HOM_LopNetwork()
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 
48  SWIGOUT(%newobject viewportOverrides;)
49  virtual HOM_LopViewportOverrides *viewportOverrides(HOM_LopNode *lop,
50  int output_index = 0) = 0;
51  virtual void saveNamedViewportOverrides(const char *name) = 0;
52  virtual void loadNamedViewportOverrides(const char *name) = 0;
53  virtual std::vector<std::string> namedViewportOverrides() = 0;
54 #ifdef SWIG
55 %extend
56 {
57  SWIGOUT(%kwargs viewportOverridesLayer;)
58  InterpreterObject viewportOverridesLayer(HOM_EnumValue &layer_id =
59  HOM_lopViewportOverridesLayer::Custom)
60  { return HOMincRef((InterpreterObject)self->
61  opaqueViewportOverridesLayer(layer_id)); }
62 }
63 #endif
64  SWIGOUT(%ignore opaqueViewportOverridesLayer;)
65  virtual void *opaqueViewportOverridesLayer(HOM_EnumValue &layer_id =
66  HOM_lopViewportOverridesLayer::Custom) = 0;
67 
68  SWIGOUT(%newobject viewportLoadMasks;)
69  virtual HOM_LopViewportLoadMasks *viewportLoadMasks() = 0;
70  virtual void setViewportLoadMasks(
71  HOM_LopViewportLoadMasks *load_masks) = 0;
72  virtual void saveNamedViewportLoadMasks(const char *name,
73  HOM_LopViewportLoadMasks *load_masks) = 0;
74  SWIGOUT(%newobject loadNamedViewportLoadMasks;)
75  virtual HOM_LopViewportLoadMasks *loadNamedViewportLoadMasks(
76  const char *name) = 0;
77  virtual std::vector<std::string> namedViewportLoadMasks() = 0;
78 
79  virtual std::vector<std::string> selection() = 0;
80  virtual std::string selectionLayerId() = 0;
81  virtual std::string selectionCurrentPrim() = 0;
82  virtual void setSelection(
83  const std::vector<std::string> &selection,
84  const char *layerid = nullptr,
85  const char *currentprim = nullptr) = 0;
86 
87  virtual std::map<std::string, HOM_ElemPtr<HOM_LopSelectionRule> >
88  selectionRules() = 0;
89  virtual void clearSelectionRules() = 0;
90  virtual void setSelectionRule(const char *name,
91  HOM_LopSelectionRule *rule) = 0;
92 };
93 
94 #endif
virtual ~HOM_LopNetwork()
GT_API const UT_StringHolder selection
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1138
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:1137
GLsizei const GLchar *const * string
Definition: glew.h:1844
HOM_LopNetwork(const HOM_LopNetwork &pop_node)