KJB
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
gui_camera.h
Go to the documentation of this file.
1 /* $Id: gui_camera.h 18301 2014-11-26 19:17:13Z ksimek $ */
2 /* {{{=========================================================================== *
3  |
4  | Copyright (c) 1994-2012 by Kobus Barnard (author)
5  |
6  | Personal and educational use of this code is granted, provided that this
7  | header is kept intact, and that the authorship is not misrepresented, that
8  | its use is acknowledged in publications, and relevant papers are cited.
9  |
10  | For other use contact the author (kobus AT cs DOT arizona DOT edu).
11  |
12  | Please note that the code in this file has not necessarily been adequately
13  | tested. Naturally, there is no guarantee of performance, support, or fitness
14  | for any particular task. Nonetheless, I am interested in hearing about
15  | problems that you encounter.
16  |
17  | Author: Kyle Simek
18  * =========================================================================== }}}*/
19 
20 // vim: tabstop=4 shiftwidth=4 foldmethod=marker
21 
22 #ifdef KJB_HAVE_OPENGL
23 #ifndef KJB_CPP_GUI_CAMERA_H
24 #define KJB_CPP_GUI_CAMERA_H
25 
27 #include <gui_cpp/gui_viewer.h>
28 #include <vector>
29 
30 namespace kjb
31 {
32 namespace gui
33 {
34 
39 Viewer::Keyboard_listener_iterator
40 add_camera_keys(kjb::gui::Viewer& viewer, const std::vector<kjb::Perspective_camera>& cams, int msec = 500);
41 
45 void add_camera_frusta(
46  kjb::gui::Viewer& viewer,
47  const std::vector<kjb::Perspective_camera>& cams,
48  int width,
49  int height,
50  double scale);
51 
55 void add_camera_frusta(
56  kjb::gui::Viewer& viewer,
57  const std::vector<kjb::Perspective_camera>& cams,
58  const std::vector<kjb::Image>& img,
59  double scale);
60 
61 }
62 }
63 #endif
64 #endif /* KJB_HAVE_OPENGL */
height
Definition: APPgetLargeConnectedEdges.m:33
St_perspective_camera for modeling a perspective camera using the classic Forsyth and Ponce parametri...
void scale(kjb::Axis_aligned_rectangle_2d &box, const kjb::Vector &s)
Definition: gr_2D_bounding_box.cpp:108