10 class QCTMap
: public Map
13 QCTMap(const QString
&fileName
, QObject
*parent
= 0);
15 QString
name() const {return _name
;}
19 QPointF
ll2xy(const Coordinates
&c
);
20 Coordinates
xy2ll(const QPointF
&p
);
22 void draw(QPainter
*painter
, const QRectF
&rect
, Flags flags
);
24 void load(const Projection
&in
, const Projection
&out
, qreal deviceRatio
,
28 bool isValid() const {return _valid
;}
29 QString
errorString() const {return _errorString
;}
31 static Map
*create(const QString
&path
, bool *isDir
);
34 bool readName(QDataStream
&stream
);
35 bool readSize(QDataStream
&stream
);
36 bool readDatumShift(QDataStream
&stream
);
37 bool readHeader(QDataStream
&stream
);
38 bool readGeoRef(QDataStream
&stream
);
39 bool readIndex(QDataStream
&stream
);
40 bool readPalette(QDataStream
&stream
);
41 QPixmap
tile(int x
, int y
);
46 double _lon
, _lonX
, _lonXX
, _lonXXX
, _lonY
, _lonYY
, _lonYYY
, _lonXY
,
48 double _lat
, _latX
, _latXX
, _latXXX
, _latY
, _latYY
, _latYYY
, _latXY
,
50 double _eas
, _easY
, _easX
, _easYY
, _easXY
, _easXX
, _easYYY
, _easYYX
,
52 double _nor
, _norY
, _norX
, _norYY
, _norXY
, _norXX
, _norYYY
, _norYYX
,
54 double _shiftE
, _shiftN
;
55 QVector
<quint32
> _index
;
56 QVector
<QRgb
> _palette
;