contrib/oxl/oxp/MapInverter.h

Go to the documentation of this file.
00001 // This is oxl/oxp/MapInverter.h
00002 #ifndef MapInverter_h_
00003 #define MapInverter_h_
00004 #ifdef VCL_NEEDS_PRAGMA_INTERFACE
00005 #pragma interface
00006 #endif
00007 //
00008 // .NAME    MapInverter
00009 // .LIBRARY oxp
00010 // .HEADER  Oxford Package
00011 // .INCLUDE oxp/MapInverter.h
00012 // .FILE    MapInverter.cxx
00013 // .SECTION Author
00014 //     Andrew W. Fitzgibbon, Oxford RRG, 13 Jul 98
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: // implementation of Mapping_2d_2d
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_

Generated on Tue Dec 2 05:14:28 2008 for contrib/oxl/oxp by  doxygen 1.5.1