HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_NodeGroup.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_NodeGroup_h__
10 #define __HOM_NodeGroup_h__
11 
12 #include "HOM_API.h"
13 #include "HOM_Module.h"
14 #include "HOM_Errors.h"
15 #include "HOM_PtrOrNull.h"
16 #include <string>
17 
18 class HOM_Node;
19 
20 SWIGOUT(%rename(NodeGroup) HOM_NodeGroup;)
21 
23 {
24 public:
26  { HOM_CONSTRUCT_OBJECT(this) }
28  { HOM_CONSTRUCT_OBJECT(this) }
29  virtual ~HOM_NodeGroup()
30  { HOM_DESTRUCT_OBJECT(this) }
31 
32  virtual bool operator==(HOM_PtrOrNull<HOM_NodeGroup> node_group) = 0;
33  virtual bool operator!=(HOM_PtrOrNull<HOM_NodeGroup> node_group) = 0;
34 
35  virtual std::string __repr__() = 0;
36 
37  virtual std::string name() = 0;
38 
39  virtual std::vector<HOM_ElemPtr<HOM_Node> > nodes() = 0;
40 
41  SWIGOUT(%newobject parent;)
42  virtual HOM_Node *parent() = 0;
43 
44  virtual void addNode(HOM_Node &node) = 0;
45 
46  virtual void removeNode(HOM_Node &node) = 0;
47 
48  virtual void clear() = 0;
49 
50  virtual void destroy() = 0;
51 
52  SWIGOUT(%kwargs asCode;)
53  virtual std::string asCode(
54  bool save_creation_commands=true,
55  bool save_node_memberships=true,
56  const char *function_name=NULL) = 0;
57 };
58 
59 #endif
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1291
GLsizei const GLchar *const * string
Definition: glcorearb.h:814
virtual ~HOM_NodeGroup()
Definition: HOM_NodeGroup.h:29
#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:352
virtual HOM_Node * parent()=0
#define HOM_API
Definition: HOM_API.h:13
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1290
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:556
HOM_NodeGroup(const HOM_NodeGroup &)
Definition: HOM_NodeGroup.h:27
GLuint const GLchar * name
Definition: glcorearb.h:786
OIIO_UTIL_API bool rename(string_view from, string_view to, std::string &err)
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:542