Fawkes API
Fawkes Development Version
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
relativepositionmodel.h
1
2
/***************************************************************************
3
* relativepositionmodel.h - Abstract class defining a position model for
4
* calculation of relative position
5
*
6
* Created: Tue May 31 13:50:12 2005
7
* Copyright 2005-2006 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
#ifndef __FIREVISION_RELATIVEPOSITIONMODEL_H_
26
#define __FIREVISION_RELATIVEPOSITIONMODEL_H_
27
28
#include <fvutils/base/types.h>
29
30
namespace
firevision {
31
#if 0
/* just to make Emacs auto-indent happy */
32
}
33
#endif
34
35
class
RelativePositionModel
36
{
37
38
public
:
39
virtual
~
RelativePositionModel
();
40
41
virtual
const
char
* get_name(
void
)
const
= 0;
42
virtual
void
set_radius(
float
r) = 0;
43
virtual
void
set_center(
float
x,
float
y) = 0;
44
virtual
void
set_center(
const
center_in_roi_t
& c) = 0;
45
46
virtual
void
set_pan_tilt(
float
pan,
float
tilt) = 0;
47
virtual
void
get_pan_tilt(
float
*pan,
float
*tilt)
const
= 0;
48
49
virtual
void
set_cam_rotation(
float
pan,
float
tilt,
float
roll = 0.f);
50
virtual
void
get_cam_rotation(
float
&pan,
float
&tilt,
float
&roll)
const
;
51
52
virtual
void
set_cam_translation(
float
height,
float
rel_x = 0.f,
float
rel_y = 0.f);
53
virtual
void
get_cam_translation(
float
&height,
float
&rel_x,
float
&rel_y)
const
;
54
55
virtual
void
calc() = 0;
56
virtual
void
calc_unfiltered() = 0;
57
58
virtual
void
reset() = 0;
59
60
virtual
float
get_distance()
const
= 0;
61
virtual
float
get_bearing()
const
= 0;
62
virtual
float
get_slope()
const
= 0;
63
virtual
float
get_x()
const
= 0;
64
virtual
float
get_y()
const
= 0;
65
66
virtual
bool
is_pos_valid()
const
= 0;
67
68
};
69
70
}
// end namespace firevision
71
72
#endif
src
libs
fvmodels
relative_position
relativepositionmodel.h
Generated by
1.8.1.2