HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups 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:1303
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
GLenum GLenum GLsizei void * image
Definition: glad.h:5132
HOM_NetworkImage(const char *path=NULL, const HOM_BoundingRect &rect=HOM_BoundingRect())
#define HOM_API
Definition: HOM_API.h:13
void ignore(T const &) VULKAN_HPP_NOEXCEPT
Definition: vulkan.hpp:6508
int __hash__() override=0
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1302
virtual std::string __str__()=0
OIIO_UTIL_API bool rename(string_view from, string_view to, std::string &err)
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:542
GLenum src
Definition: glcorearb.h:1793