00001
00002 #ifndef MapInverter_h_
00003 #define MapInverter_h_
00004 #ifdef VCL_NEEDS_PRAGMA_INTERFACE
00005 #pragma interface
00006 #endif
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #include <oxp/Mapping_2d_2d.h>
00019
00020 class MapInverter : public Mapping_2d_2d
00021 {
00022 public:
00023 MapInverter(Mapping_2d_2d* themap): _themap(themap) {}
00024
00025 protected:
00026 void implement_map(double x1, double y1, double* x2, double* y2) {
00027 _themap->map(x1, y1, x2, y2);
00028 }
00029 void implement_inverse_map(double x2, double y2, double* x1, double* y1) {
00030 _themap->inverse_map(x2, y2, x1, y1);
00031 }
00032
00033 protected:
00034 Mapping_2d_2d* _themap;
00035 };
00036
00037 #endif // MapInverter_h_