Basic Image AlgorithmS Library  2.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
CameraViewInternals.cpp
1 #include "CameraViewInternals.hh"
2 #include <iostream>
3 #include <Base/Debug/Error.hh>
4 #include <Base/Debug/DebugSimple.hh>
5 
6 using namespace std;
7 using namespace BIAS;
8 
9 
11  const CameraViewport& cViewport)
12  : frustum(cFrustum), viewport(cViewport)
13 {}
14 
15 
16 std::ostream & BIAS::CameraViewInternals::Print(std::ostream & os ) const
17 {
18  os<<"CameraViewInternals : "<<endl;
19  frustum.Print(os); os<<endl;
20  viewport.Print(os); os<<endl;
21  return os;
22 }
23 
25 {
26  frustum.InitMembers();
27  viewport.InitMembers();
28 }
29 
30 #ifdef BIAS_HAVE_OPENGL
31 #include <Gui/biasgl.h>
33 {
34  frustum.DisplayGL();
35  viewport.DisplayGL();
36 }
37 #endif // BIAS_HAVE_OPENGL
38 
describes internal parameter Frustum of an (OpenGL) camera view
describes internal parameter viewport of an (OpenGL) camera view
std::ostream & Print(std::ostream &os=std::cout) const