Basic Image AlgorithmS Library  2.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
CameraViewExternals.hh
1 #ifndef __CameraViewExternals_h__
2 #define __CameraViewExternals_h__
3 
4 // ----------------------------------------------------------
5 #include <bias_config.h>
6 #include <iostream>
7 // BIAS
8 #include <Base/Math/Vector3.hh>
9 
10 
11 namespace BIAS {
12 
13  /** @class CameraViewExternals
14  \brief describes external params of a camera view
15  Used e.g. OpenGL and manipularted by controller classes, e.g. trackball.
16  \author Jan Woetzel */
17  class BIASGui_EXPORT CameraViewExternals {
18  public:
19  virtual ~CameraViewExternals(){}; ///< destructor
20 
21  // ctors
23 
25  const BIAS::Vector3<double> & up,
26  const BIAS::Vector3<double> & viewAt);
27 
28 
29  std::ostream & Print(std::ostream & os=std::cout );
30 
31 #ifdef BIAS_HAVE_OPENGL
32  void DisplayGL() const;
33  void DisplayViewAt(const double & size=1.0) const;
34 #endif // BIAS_HAVE_OPENGL
35 
36  void InitMembers()
37  {
38  C.Set(0,0,1);
39  up.Set(0,1,0);
40  viewAt.SetZero();
41  }
42 
43  public:
44  // external params : pose
48 
49  }; // CameraViewExternals
50 
51 } // namespace BIAS
52 #endif
BIAS::Vector3< double > up
BIAS::Vector3< double > viewAt
BIAS::Vector3< double > C
describes external params of a camera view Used e.g.