Fawkes API  Fawkes Development Version
zoom.cpp
1 
2 /***************************************************************************
3  * zoom.cpp - Abstract class defining a camera zoom controller
4  *
5  * Created: Wed Apr 22 10:50:53 2009
6  * Copyright 2009 Tobias Kellner
7  * 2005-2009 Tim Niemueller [www.niemueller.de]
8  *
9  ****************************************************************************/
10 
11 /* This program is free software; you can redistribute it and/or modify
12  * it under the terms of the GNU General Public License as published by
13  * the Free Software Foundation; either version 2 of the License, or
14  * (at your option) any later version. A runtime exception applies to
15  * this software (see LICENSE.GPL_WRE file mentioned below for details).
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU Library General Public License for more details.
21  *
22  * Read the full text in the LICENSE.GPL_WRE file in the doc directory.
23  */
24 
25 #include <fvcams/control/zoom.h>
26 #include <core/exceptions/software.h>
27 
28 namespace firevision {
29 #if 0 /* just to make Emacs auto-indent happy */
30 }
31 #endif
32 
33 /** @class CameraControlZoom <fvcams/control/zoom.h>
34  * Camera zoom control interface.
35  * Some cameras feature zooming.
36  *
37  * This interface shall be implemented by such cameras.
38  *
39  * @author Tim Niemueller
40  * @author Tobias Kellner
41  *
42  * @fn void CameraControlZoom::reset_zoom() = 0
43  * Reset zoom.
44  * @throws NotImplementedException Not implemented by this control
45  *
46  * @fn void CameraControlZoom::set_zoom(unsigned int zoom) = 0
47  * Set new camera-specific zoom value.
48  * @param zoom zoom value
49  *
50  * @fn unsigned int CameraControlZoom::zoom() = 0
51  * Get current zoom value.
52  * @return current zoom value.
53  *
54  * @fn unsigned int CameraControlZoom::zoom_max() = 0
55  * Maximum zoom value.
56  * @return maximum zoom value
57  *
58  * @fn unsigned int CameraControlZoom::zoom_min() = 0
59  * Minimum zoom value.
60  * @return Minimum zoom value
61  */
62 
64 
65 /** Empty virtual destructor. */
67 {
68 }
69 
70 
71 /** Set speed in tele range.
72  * @param speed camera-specific speed value
73  * @throws NotImplementedException Not implemented by this control
74  */
75 void
77 {
78  throw NotImplementedException("Not implemented");
79 }
80 
81 
82 /** Set speed in wide range.
83  * @param speed camera-specific speed value.
84  * @throws NotImplementedException Not implemented by this control
85  */
86 void
88 {
89  throw NotImplementedException("Not implemented");
90 }
91 
92 
93 /** Set if digital zoom may be used.
94  * @param enabled true, to enable digital zoom, false otherwise
95  * @throws NotImplementedException Not implemented by this control
96  */
97 void
99 {
100  throw NotImplementedException("Not implemented");
101 }
102 
103 } // end namespace firevision
virtual void set_zoom_digital_enabled(bool enabled)
Set if digital zoom may be used.
Definition: zoom.cpp:98
Called method has not been implemented.
Definition: software.h:107
virtual void set_zoom_speed_wide(unsigned int speed)
Set speed in wide range.
Definition: zoom.cpp:87
virtual ~CameraControlZoom()
Empty virtual destructor.
Definition: zoom.cpp:66
virtual void set_zoom_speed_tele(unsigned int speed)
Set speed in tele range.
Definition: zoom.cpp:76