HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_Take.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_Take_h__
10 #define __HOM_Take_h__
11 
12 #include "HOM_API.h"
13 #include "HOM_Defines.h"
14 #include "HOM_Errors.h"
15 #include "HOM_Module.h"
16 #include <string>
17 
18 class HOM_Node;
19 class HOM_ParmTuple;
20 
21 SWIGOUT(%rename(Take) HOM_Take;)
22 
24 {
25 public:
27  { HOM_CONSTRUCT_OBJECT(this) }
29  { HOM_CONSTRUCT_OBJECT(this) }
30  virtual ~HOM_Take()
31  { HOM_DESTRUCT_OBJECT(this) }
32 
33  virtual bool operator==(HOM_PtrOrNull<HOM_Take> take) = 0;
34  virtual bool operator!=(HOM_PtrOrNull<HOM_Take> take) = 0;
35 
36  virtual std::string __repr__() = 0;
37 
38  virtual bool isCurrent() = 0;
39 
40  virtual std::string name() = 0;
41  virtual void setName(const char *name) = 0;
42 
43  SWIGOUT(%newobject parent;)
44  virtual HOM_Take *parent() = 0;
45  virtual std::string path() = 0;
46 
47  SWIGOUT(%newobject addChildTake;)
48  SWIGOUT(%kwargs addChildTake;)
49  virtual HOM_Take *addChildTake(const char *name=NULL) = 0;
50  SWIGOUT(%newobject insertTakeAbove);
51  SWIGOUT(%kwargs insertTakeAbove;)
52  virtual HOM_Take *insertTakeAbove(const char *name=NULL) = 0;
53 
54  virtual void addNodeDisplayFlag(HOM_Node *node) = 0;
55  virtual void removeNodeDisplayFlag(HOM_Node *node) = 0;
56  virtual void addNodeBypassFlag(HOM_Node *node) = 0;
57  virtual void removeNodeBypassFlag(HOM_Node *node) = 0;
58  virtual void addNodeRenderFlag(HOM_Node *node) = 0;
59  virtual void removeNodeRenderFlag(HOM_Node *node) = 0;
60 
61  virtual bool hasParmTuple(HOM_ParmTuple *parm_tuple) = 0;
62  virtual std::vector<HOM_ElemPtr<HOM_ParmTuple> > parmTuples() = 0;
63  virtual void addParmTuple(HOM_ParmTuple *parm_tuple) = 0;
64  virtual void removeParmTuple(HOM_ParmTuple *parm_tuple) = 0;
65  SWIGOUT(%kwargs addParmTuplesFromTake;)
66  virtual void addParmTuplesFromTake(HOM_Take *take, bool overwrite_existing=true) = 0;
67  virtual void addParmTuplesFromNode(HOM_Node *node) = 0;
68  virtual void removeParmTuplesFromNode(HOM_Node *node) = 0;
69 
70  virtual std::vector<HOM_ElemPtr<HOM_Take> > children() = 0;
71 
72  SWIGOUT(%kwargs saveToFile;)
73  virtual void saveToFile(const char *filename, bool recurse=false) = 0;
74  SWIGOUT(%newobject loadChildTakeFromFile);
75  virtual HOM_Take *loadChildTakeFromFile(const char *filename) = 0;
76 
77  virtual void moveUnderTake(HOM_Take *take) = 0;
78 
79  SWIGOUT(%kwargs destroy;)
80  virtual void destroy(bool recurse=false) = 0;
81 };
82 
83 #endif
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1303
GT_API const UT_StringHolder filename
GLsizei const GLchar *const * string
Definition: glcorearb.h:814
GLsizei const GLchar *const * path
Definition: glcorearb.h:3341
#define SWIGOUT(x)
Definition: HOM_Defines.h:24
string __repr__(VtArray< T > const &self)
Definition: wrapArray.h:349
HOM_Take()
Definition: HOM_Take.h:26
struct _cl_event * event
Definition: glcorearb.h:2961
#define HOM_API
Definition: HOM_API.h:13
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1302
bool operator!=(const Mat3< T0 > &m0, const Mat3< T1 > &m1)
Inequality operator, does exact floating point comparisons.
Definition: Mat3.h:556
virtual HOM_Node * node()=0
HOM_Take(const HOM_Take &event)
Definition: HOM_Take.h:28
GLuint const GLchar * name
Definition: glcorearb.h:786
OIIO_UTIL_API bool rename(string_view from, string_view to, std::string &err)
bool operator==(const Mat3< T0 > &m0, const Mat3< T1 > &m1)
Equality operator, does exact floating point comparisons.
Definition: Mat3.h:542
virtual ~HOM_Take()
Definition: HOM_Take.h:30