mirrormodel.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef __FIREVISION_MODELS_MIRRORMODEL_H_
00025 #define __FIREVISION_MODELS_MIRRORMODEL_H_
00026
00027 #include <utils/math/types.h>
00028
00029 class MirrorModel
00030 {
00031
00032 public:
00033
00034 virtual ~MirrorModel();
00035
00036 virtual void warp2unwarp(unsigned int warp_x, unsigned int warp_y,
00037 unsigned int *unwarp_x, unsigned int *unwarp_y) = 0;
00038
00039 virtual void unwarp2warp(unsigned int unwarp_x, unsigned int unwarp_y,
00040 unsigned int *warp_x, unsigned int *warp_y) = 0;
00041
00042 virtual const char * getName() = 0;
00043
00044
00045 virtual fawkes::polar_coord_2d_t getWorldPointRelative(unsigned int image_x,
00046 unsigned int image_y) const = 0;
00047
00048 virtual fawkes::cart_coord_2d_t getWorldPointGlobal(unsigned int image_x,
00049 unsigned int image_y,
00050 float pose_x, float pose_y,
00051 float pose_ori) const = 0;
00052
00053 virtual void reset() = 0;
00054
00055 virtual fawkes::point_t getCenter() const = 0;
00056 virtual void setCenter(unsigned int image_x, unsigned int image_y ) = 0;
00057 virtual void setOrientation(float angle) = 0;
00058 virtual float getOrientation() const = 0;
00059
00060 virtual bool isValidPoint(unsigned int image_x, unsigned int image_y ) const = 0;
00061
00062 };
00063
00064 #endif