00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef _STELVIEWPORTDISTORTER_HPP_
00022 #define _STELVIEWPORTDISTORTER_HPP_
00023
00024 #include "StelProjectorType.hpp"
00025 class QString;
00026
00027 class StelViewportDistorter
00028 {
00029 public:
00030 static StelViewportDistorter *create(const QString &type,
00031 int width,int height,
00032 StelProjectorP prj);
00033
00034 virtual ~StelViewportDistorter(void) {}
00035 virtual QString getType(void) const = 0;
00036 virtual void prepare(void) const = 0;
00037 virtual void distort(void) const = 0;
00038 virtual bool distortXY(int &x,int &y) const = 0;
00039
00040 protected:
00041 StelViewportDistorter(void) {}
00042
00043 private:
00044
00045 StelViewportDistorter(const StelViewportDistorter&);
00046 const StelViewportDistorter &operator=(const StelViewportDistorter&);
00047
00048 };
00049
00050 #endif // _STELVIEWPORTDISTORTER_HPP_
00051