1 #ifndef __CameraViewFrustum_h__
2 #define __CameraViewFrustum_h__
4 #include <bias_config.h>
7 #define FRUSTUM_IS_FIXED_DEFAULT false
28 const bool cisFixed=FRUSTUM_IS_FIXED_DEFAULT )
30 zNear(czNear),zFar(czFar),
31 left(cleft), right(cright),
32 bottom(cbottom), top(ctop),
39 void SetPerspective(
const double & fovYdeg,
40 const double & fovAspect,
41 const double & zNear=1.,
42 const double & zFar=1000.);
45 double GetFovY()
const;
46 double GetFovX()
const;
49 double GetAspect()
const;
53 void AdaptWidth(
const double & vpAspectRatioDesired );
55 std::ostream & Print(std::ostream & os=std::cout )
const;
57 #ifdef BIAS_HAVE_OPENGL
58 void DisplayGL()
const;
59 #endif // BIAS_HAVE_OPENGL
66 this->left = -1. *zNear;
68 this->bottom = -1. *zNear;
71 this->isFixed=FRUSTUM_IS_FIXED_DEFAULT;
describes internal parameter Frustum of an (OpenGL) camera view
bool isFixed
Should reshape adapt aspect ? or keep aspect, thus window aspect and frustum aspect may be different...
CameraViewFrustum(const double czNear, const double czFar, const double cleft, const double cright, const double cbottom, const double ctop, const bool cisFixed=FRUSTUM_IS_FIXED_DEFAULT)
virtual ~CameraViewFrustum()