Basic Image AlgorithmS Library  2.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
CameraViewport.hh
1 #ifndef __CameraViewport_h__
2 #define __CameraViewport_h__
3 
4 #include <bias_config.h>
5 #include <iostream>
6 
7 
8 namespace BIAS {
9 
10  /** @class CameraViewport
11  \brief describes internal parameter viewport of an (OpenGL) camera view
12 
13  \author Jan Woetzel 09/2003 */
14  class BIASGui_EXPORT CameraViewport {
15  public:
16  virtual ~CameraViewport(){}; ///< destructor
17 
18  // ctors
20 
21  CameraViewport(const int vx0, int vy0, unsigned int vwidth, unsigned int height );
22 
23 
24  double GetAspect() const;
25 
26  std::ostream & Print(std::ostream & os=std::cout ) const;
27 
28  void InitMembers();
29 
30 #ifdef BIAS_HAVE_OPENGL
31  void DisplayGL() const;
32 #endif // BIAS_HAVE_OPENGL
33 
34  public:
35  int x0; //< origin in scroen coords
36  int y0;
37  unsigned int width; //< dim in screen coords
38  unsigned int height;
39 
40  }; // CameraViewFrustum
41 
42 
43 
44 
45 } // namespace BIAS
46 #endif
describes internal parameter viewport of an (OpenGL) camera view