HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_NodeBundle.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_NodeBundle_h__
10 #define __HOM_NodeBundle_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_Module.h"
17 #include "HOM_PtrOrNull.h"
18 #include <hboost/any.hpp>
19 #include <string>
20 #include <vector>
21 
22 class HOM_Node;
23 
24 SWIGOUT(%rename(Bundle) HOM_NodeBundle;)
25 
27 {
28 public:
30  { HOM_CONSTRUCT_OBJECT(this) }
32  { HOM_CONSTRUCT_OBJECT(this) }
33  virtual ~HOM_NodeBundle()
34  { HOM_DESTRUCT_OBJECT(this) }
35 
36  virtual bool operator==(HOM_PtrOrNull<HOM_NodeBundle> bundle) = 0;
37  virtual bool operator!=(HOM_PtrOrNull<HOM_NodeBundle> bundle) = 0;
38 
39  virtual int __hash__() = 0;
40  virtual std::string __repr__() = 0;
41 
42  virtual void destroy() = 0;
43 
44  virtual std::string name() = 0;
45  virtual void setName(const char* name) = 0;
46 
47  virtual HOM_EnumValue &findBestFilter() = 0;
48  SWIGOUT(%warnfilter(321) filter;)
49  virtual HOM_EnumValue &filter() = 0;
50  virtual void setFilter(HOM_EnumValue &filter) = 0;
51 
52  SWIGOUT(%ignore boostAnyPattern;)
53  virtual hboost::any boostAnyPattern() = 0;
54 
55 #ifdef SWIG
56 %extend
57 {
58  InterpreterObject pattern()
59  {
60  return HOMboostAnyToInterpreterObject(self->boostAnyPattern());
61  }
62 }
63 #endif
64 
65  virtual void setPattern(const char *pattern_or_none) = 0;
66 
67  virtual std::vector<HOM_ElemPtr<HOM_Node> > nodes() = 0;
68 
69  virtual bool containsNode(HOM_Node &node) = 0;
70  virtual void addNode(HOM_Node &node) = 0;
71  virtual void removeNode(HOM_Node &base_node) = 0;
72  virtual void clear() = 0;
73 
74  virtual bool isSelected() = 0;
75 
77  virtual void setSelected(bool on, bool clear_all_selected=false) = 0;
78 
79  virtual void convertToNormalBundle() = 0;
80  virtual void convertToSmartBundle() = 0;
81 };
82 
83 #endif
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1210
GLuint const GLchar * name
Definition: glew.h:1814
HOM_NodeBundle(const HOM_Node &)
OIIO_API bool rename(string_view from, string_view to, std::string &err)
virtual ~HOM_NodeBundle()
#define SWIGOUT(x)
Definition: HOM_Defines.h:24
virtual void destroy(bool disable_safety_checks=false)=0
string __repr__(VtArray< T > const &self)
Definition: wrapArray.h:349
virtual void setSelected(bool on, bool clear_all_selected=false, bool show_asset_if_selected=false)=0
GLint GLint GLint GLint GLint GLint GLint GLbitfield GLenum filter
Definition: glew.h:2981
virtual void setName(const char *name, bool unique_name=false)=0
bool any(const vbool4 &v)
Definition: simd.h:3372
#define HOM_API
Definition: HOM_API.h:13
int __hash__() override=0
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1209
virtual HOM_Node * node(const char *node_path)=0
bool operator!=(const Mat3< T0 > &m0, const Mat3< T1 > &m1)
Inequality operator, does exact floating point comparisons.
Definition: Mat3.h:563
virtual bool isSelected()=0
GLsizei const GLchar *const * string
Definition: glew.h:1844
virtual std::vector< HOM_ElemPtr< HOM_Node > > nodes(const std::vector< std::string > &node_paths)=0
GLubyte * pattern
Definition: glew.h:5711
bool operator==(const Mat3< T0 > &m0, const Mat3< T1 > &m1)
Equality operator, does exact floating point comparisons.
Definition: Mat3.h:549