HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_Viewport2D.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_Viewport2D_h__
10 #define __HOM_Viewport2D_h__
11 
12 #include "HOM_API.h"
13 #include "HOM_Defines.h"
14 #include "HOM_ElemPtr.h"
15 #include "HOM_Errors.h"
16 #include "HOM_Module.h"
17 #include "HOM_ObjNode.h"
18 #include "HOM_EnumValue.h"
19 #include "HOM_Vector3.h"
20 #include <UT/UT_Tuple.h>
21 
22 SWIGOUT(%rename(Viewport2D) HOM_Viewport2D;)
23 
25 {
26 public:
28  { HOM_CONSTRUCT_OBJECT(this) }
30  { HOM_CONSTRUCT_OBJECT(this) }
31  virtual ~HOM_Viewport2D()
32  { HOM_DESTRUCT_OBJECT(this) }
33 
34  virtual std::string __repr__() = 0;
35  virtual std::string name() = 0;
36  virtual void draw() = 0;
37 
38  SWIGOUT(%newobject cameraToModelTransform;)
39  virtual HOM_Matrix4 *cameraToModelTransform() = 0;
40  virtual HOM_Vector2 * mapToScreen(const HOM_Vector3 &pos) = 0;
41  virtual HOM_Vector2 *mapToBuffer(const HOM_Vector2 &pos, const bool clamp = true) = 0;
42 
43  virtual std::pair<HOM_ElemPtr<HOM_Vector3>, HOM_ElemPtr<HOM_Vector3> >
44  mapToWorld(double x, double y) = 0;
45 
46  virtual std::vector<int> geometry() = 0;
47 };
48 
49 #endif
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1343
GLenum clamp
Definition: glcorearb.h:1234
#define SWIGOUT(x)
Definition: HOM_Defines.h:24
string __repr__(VtArray< T > const &self)
Definition: wrapArray.h:312
GLint y
Definition: glcorearb.h:103
#define HOM_API
Definition: HOM_API.h:13
HOM_Viewport2D(const HOM_Viewport2D &)
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1342
GLuint const GLchar * name
Definition: glcorearb.h:786
GLint GLenum GLint x
Definition: glcorearb.h:409
OIIO_UTIL_API bool rename(string_view from, string_view to, std::string &err)
virtual ~HOM_Viewport2D()