HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
HOM_NetworkImage.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_NetworkImage_h__
10 #define __HOM_NetworkImage_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_ElemPtr.h"
17 #include "HOM_BoundingRect.h"
18 #include <UT/UT_StringHolder.h>
19 #include <UT/UT_BoundingRect.h>
20 #include <string>
21 
22 SWIGOUT(%rename(NetworkImage) HOM_NetworkImage;)
23 
25 {
26 public:
27  HOM_NetworkImage(const char *path = NULL,
28  const HOM_BoundingRect &rect = HOM_BoundingRect())
29  : myPath(path),
30  myRelativeToPath(),
31  myRect(rect.myBoundingRect),
32  myBrightness(1.0)
33  { HOM_CONSTRUCT_OBJECT(this) }
35  : myPath(src.myPath),
36  myRelativeToPath(src.myRelativeToPath),
37  myRect(src.myRect),
38  myBrightness(src.myBrightness)
39  { HOM_CONSTRUCT_OBJECT(this) }
40 
42  { HOM_DESTRUCT_OBJECT(this) }
43 
46  { return !operator==(image); }
47 
48  int __hash__();
51 
52  void setPath(const char *path);
53  std::string path();
54 
55  void setRelativeToPath(const char *path);
56  std::string relativeToPath();
57 
58  void setRect(HOM_BoundingRect &rect);
59  HOM_BoundingRect rect();
60 
61  void setBrightness(double brightness);
62  double brightness();
63 
64  SWIGOUT(%ignore myPath;)
66  SWIGOUT(%ignore myRelativeToPath;)
67  UT_StringHolder myRelativeToPath;
68  SWIGOUT(%ignore myRect;)
70  SWIGOUT(%ignore myBrightness;)
71  double myBrightness;
72 };
73 
74 #endif
75 
bool operator!=(HOM_PtrOrNull< HOM_NetworkImage > image)
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:983
GLsizei const GLchar *const * string
Definition: glcorearb.h:813
GLsizei const GLchar *const * path
Definition: glcorearb.h:3340
#define SWIGOUT(x)
Definition: HOM_Defines.h:24
png_bytepp image
Definition: png.h:1849
int __hash__()
HOM_NetworkImage(const char *path=NULL, const HOM_BoundingRect &rect=HOM_BoundingRect())
#define HOM_API
Definition: HOM_API.h:13
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:982
std::string __str__()
HOM_NetworkImage(const HOM_NetworkImage &src)
bool operator==(const Mat3< T0 > &m0, const Mat3< T1 > &m1)
Equality operator, does exact floating point comparisons.
Definition: Mat3.h:596
std::string __repr__()
GLenum src
Definition: glcorearb.h:1792