HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_StyleSheet.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_StyleSheet_h__
10 #define __HOM_StyleSheet_h__
11 
12 #include "HOM_API.h"
13 #include "HOM_Defines.h"
14 #include "HOM_Errors.h"
15 #include "HOM_Module.h"
16 #include "HOM_Node.h"
17 #include "HOM_Prim.h"
18 #include "HOM_PtrOrNull.h"
19 #include <string>
20 
21 SWIGOUT(%rename(StyleSheet) HOM_StyleSheet;)
22 // Force SWIG to output an __init__ method even though it determines this
23 // class is abstract.
24 SWIGOUT(%feature("notabstract") HOM_StyleSheet;)
25 
27 {
28 public:
29 #ifdef SWIG
30 %extend
31 {
33  { return HOM().newStyleSheet(); }
34  HOM_StyleSheet(const char *json_text)
35  { return HOM().newStyleSheet(json_text); }
36 }
37 #else
39  { HOM_CONSTRUCT_OBJECT(this) }
40 #endif
41 
42  virtual ~HOM_StyleSheet()
43  { HOM_DESTRUCT_OBJECT(this) }
44 
45  virtual bool operator==(HOM_PtrOrNull<HOM_StyleSheet> stylesheet) = 0;
46  virtual bool operator!=(HOM_PtrOrNull<HOM_StyleSheet> stylesheet) = 0;
47 
48  virtual int __hash__() = 0;
49  virtual std::string __repr__() = 0;
50 
51  SWIGOUT(%newobject clone;)
52  virtual HOM_StyleSheet *clone() = 0;
53 
54  SWIGOUT(%kwargs combine;)
55  SWIGOUT(%newobject cloneWithObject;)
56  virtual HOM_StyleSheet *cloneWithObject(HOM_Node &obj) = 0;
57 
58  SWIGOUT(%kwargs combine;)
59  SWIGOUT(%newobject cloneWithPrim;)
60  virtual HOM_StyleSheet *cloneWithPrim(HOM_Prim &prim) = 0;
61 
62  SWIGOUT(%kwargs combine;)
63  SWIGOUT(%newobject cloneWithShape;)
64  virtual HOM_StyleSheet *cloneWithShape(const char *shape_name,
65  HOM_Prim &agent_prim)=0;
66 
67  SWIGOUT(%kwargs cloneWithAddedStyleSheet;)
68  SWIGOUT(%newobject cloneWithAddedStyleSheet;)
69  virtual HOM_StyleSheet *cloneWithAddedStyleSheet(
70  HOM_StyleSheet &stylesheet,
71  const std::string &target = std::string()) = 0;
72 
73  virtual std::string errors() = 0;
74 
75  virtual std::string asJSON() = 0;
76 };
77 
78 #endif
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1291
GLsizei const GLchar *const * string
Definition: glcorearb.h:814
#define SWIGOUT(x)
Definition: HOM_Defines.h:24
string __repr__(VtArray< T > const &self)
Definition: wrapArray.h:352
#define HOM_API
Definition: HOM_API.h:13
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1290
bool operator!=(const Mat3< T0 > &m0, const Mat3< T1 > &m1)
Inequality operator, does exact floating point comparisons.
Definition: Mat3.h:556
GLenum target
Definition: glcorearb.h:1667
OIIO_UTIL_API bool rename(string_view from, string_view to, std::string &err)
virtual ~HOM_StyleSheet()
virtual HOM_StyleSheet * newStyleSheet()=0
HOM_API HOM_Module & HOM()
bool operator==(const Mat3< T0 > &m0, const Mat3< T1 > &m1)
Equality operator, does exact floating point comparisons.
Definition: Mat3.h:542