HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros 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 void setAspectRatio(double ar) = 0;
44  virtual double aspectRatio() = 0;
45 
46  virtual void setOrthoWidth(double ow) = 0;
47  virtual double orthoWidth() = 0;
48 
49  virtual void setRotation(const HOM_Matrix3 &mat) = 0;
50  virtual HOM_Matrix3 rotation() = 0;
51 
52  virtual void setTranslation(std::vector<double> xyz) = 0;
53  virtual std::vector<double> translation() = 0;
54 
55  virtual void setPivot(std::vector<double> xyz) = 0;
56  virtual std::vector<double> pivot() = 0;
57 
58  virtual void setClipPlanes(std::vector<double> near_far) = 0;
59  virtual std::vector<double> clipPlanes() = 0;
60 
61  virtual void setWindowOffset(std::vector<double> xy) = 0;
62  virtual std::vector<double> windowOffset() = 0;
63 
64  virtual void setWindowSize(std::vector<double> size) = 0;
65  virtual std::vector<double> windowSize() = 0;
66 };
67 
68 #endif
69 
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:973
HOM_GeometryViewportCamera(const HOM_GeometryViewportCamera &)
GLsizei const GLchar *const * string
Definition: glcorearb.h:813
#define SWIGOUT(x)
Definition: HOM_Defines.h:24
GLsizeiptr size
Definition: glcorearb.h:663
#define HOM_API
Definition: HOM_API.h:13
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:972
GA_API const UT_StringHolder pivot
std::string __repr__()
MatType rotation(const Quat< typename MatType::value_type > &q, typename MatType::value_type eps=static_cast< typename MatType::value_type >(1.0e-8))
Return the rotation matrix specified by the given quaternion.
Definition: Mat.h:169