HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_GeometryViewportCamera.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 #ifndef __HOM_GeometryViewportCamera_h
9 #define __HOM_GeometryViewportCamera_h
10 
11 #include "HOM_API.h"
12 #include "HOM_Defines.h"
13 #include "HOM_EnumValue.h"
14 #include "HOM_Matrix3.h"
15 
16 SWIGOUT(%rename(GeometryViewportCamera) HOM_GeometryViewportCamera;)
17 
19 {
20 public:
22  { HOM_CONSTRUCT_OBJECT(this) }
24  { HOM_CONSTRUCT_OBJECT(this) }
26  { HOM_DESTRUCT_OBJECT(this) }
27 
28  virtual std::string __repr__() = 0;
29 
30  SWIGOUT(%newobject stash;)
31  virtual HOM_GeometryViewportCamera *stash() = 0;
32 
33  virtual void setPerspective(bool perspective) = 0;
34  virtual bool isPerspective() = 0;
35  virtual bool isOrthographic() = 0;
36 
37  virtual void setAperture(double ap) = 0;
38  virtual double aperture() = 0;
39 
40  virtual void setFocalLength(double fl) = 0;
41  virtual double focalLength() = 0;
42 
43  virtual double focalUnitScale() = 0;
44 
45  virtual void setAspectRatio(double ar) = 0;
46  virtual double aspectRatio() = 0;
47 
48  virtual void setOrthoWidth(double ow) = 0;
49  virtual double orthoWidth() = 0;
50 
51  virtual void setRotation(const HOM_Matrix3 &mat) = 0;
52  virtual HOM_Matrix3 rotation() = 0;
53 
54  virtual void setTranslation(std::vector<double> xyz) = 0;
55  virtual std::vector<double> translation() = 0;
56 
57  virtual void setPivot(std::vector<double> xyz) = 0;
58  virtual std::vector<double> pivot() = 0;
59 
60  virtual void setClipPlanes(std::vector<double> near_far) = 0;
61  virtual std::vector<double> clipPlanes() = 0;
62 
63  virtual void setWindowOffset(std::vector<double> xy) = 0;
64  virtual std::vector<double> windowOffset() = 0;
65 
66  virtual void setWindowSize(std::vector<double> size) = 0;
67  virtual std::vector<double> windowSize() = 0;
68 };
69 
70 #endif
71 
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1303
HOM_GeometryViewportCamera(const HOM_GeometryViewportCamera &)
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:349
#define HOM_API
Definition: HOM_API.h:13
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1302
SIM_API const UT_StringHolder rotation
GLsizeiptr size
Definition: glcorearb.h:664
OIIO_UTIL_API bool rename(string_view from, string_view to, std::string &err)
GA_API const UT_StringHolder pivot