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  virtual HOM_EnumValue &filter() = 0;
49  virtual void setFilter(HOM_EnumValue &filter) = 0;
50 
51  SWIGOUT(%ignore boostAnyPattern;)
52  virtual hboost::any boostAnyPattern() = 0;
53 
54 #ifdef SWIG
55 %extend
56 {
57  InterpreterObject pattern()
58  {
59  return HOMboostAnyToInterpreterObject(self->boostAnyPattern());
60  }
61 }
62 #endif
63 
64  virtual void setPattern(const char *pattern_or_none) = 0;
65 
66  virtual std::vector<HOM_ElemPtr<HOM_Node> > nodes() = 0;
67 
68  virtual bool containsNode(HOM_Node &node) = 0;
69  virtual void addNode(HOM_Node &node) = 0;
70  virtual void removeNode(HOM_Node &base_node) = 0;
71  virtual void clear() = 0;
72 
73  virtual bool isSelected() = 0;
74 
75  SWIGOUT(%kwargs setSelected;)
76  virtual void setSelected(bool on, bool clear_all_selected=false) = 0;
77 
78  virtual void convertToNormalBundle() = 0;
79  virtual void convertToSmartBundle() = 0;
80 };
81 
82 #endif
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1056
virtual void destroy()=0
virtual int __hash__()=0
HOM_NodeBundle(const HOM_Node &)
GLsizei const GLchar *const * string
Definition: glcorearb.h:813
virtual ~HOM_NodeBundle()
#define SWIGOUT(x)
Definition: HOM_Defines.h:24
string __repr__(VtArray< T > const &self)
Definition: wrapArray.h:344
virtual void setSelected(bool on, bool clear_all_selected=false, bool show_asset_if_selected=false)=0
virtual void setName(const char *name, bool unique_name=false)=0
#define HOM_API
Definition: HOM_API.h:13
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1055
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:604
GLuint const GLchar * name
Definition: glcorearb.h:785
virtual bool isSelected()=0
virtual std::vector< HOM_ElemPtr< HOM_Node > > nodes(const std::vector< std::string > &node_paths)=0
bool operator==(const Mat3< T0 > &m0, const Mat3< T1 > &m1)
Equality operator, does exact floating point comparisons.
Definition: Mat3.h:590
GLint GLint GLint GLint GLint GLint GLint GLbitfield GLenum filter
Definition: glcorearb.h:1296