19 #ifndef QVCT_CCHARTGDAL_HPP
20 #define QVCT_CCHARTGDAL_HPP
31 #include <gdal_priv.h>
122 void open(
const QString& _rqsFileName );
151 double getResolution(
const QPointF& _rqPointFDatPosition )
const;
153 void draw( QPainter* _pqPainter,
const QPointF& _rqPointFDatPosition,
double _fdZoom );
155 void move(
const QPointF& _rqPointFDatPosition,
double _fdZoom );
159 virtual void rasterBuffer( QImage* _pqImage,
const QVector<quint16>& _rqVector )
const;
161 virtual void rasterBuffer( QImage* _pqImage,
const QVector<qint16>& _rqVector )
const;
163 virtual void rasterBuffer( QImage* _pqImage,
const QVector<quint32>& _rqVector )
const;
165 virtual void rasterBuffer( QImage* _pqImage,
const QVector<qint32>& _rqVector )
const;
167 virtual void rasterBuffer( QImage* _pqImage,
const QVector<float>& _rqVector )
const;
169 virtual void rasterBuffer( QImage* _pqImage,
const QVector<double>& _rqVector )
const;
Generic GDAL-based dataset.
virtual void rasterBuffer(QImage *_pqImage, const QVector< quint16 > &_rqVector) const
Rasterizes UInt16 buffer.
QString qsFileName
Chart (GDAL dataset) file name.
void open(const QString &_rqsFileName)
Opens the underlying GDAL dataset.
EColorEncoding getColorEncoding() const
Returns the chart (GDAL dataset) color encoding.
QPointF getDatPosition() const
Returns the last drawn chart (GDAL dataset) center pixel position.
EColorEncoding
Underlying GDAL dataset color encoding IDs.
QRect getDatGeometry() const
Returns the chart (GDAL dataset) geometry (size)
void draw(QPainter *_pqPainter, const QPointF &_rqPointFDatPosition, double _fdZoom)
Draws chart, centered on given chart (GDAL dataset) point [px] and zoomed according to given factor.
CDataPosition toGeoPosition(const QPointF &_rqPointFDatPosition) const
Converts the given chart pixel position to geographical position.
void move(const QPointF &_rqPointFDatPosition, double _fdZoom)
Moves the chart, centered on given chart (GDAL dataset) point [px] and zoomed according to given fact...
QVCT::EStatus getStatus() const
Returns the chart internal status (after constructing object)
void * pGDALProjectionTransformer
Underlying GDAL dataset projection transformer (to internal WGS84)
int * piGDALBandMap
Underlying GDAL dataset band mapping (for ARGB/RGB/YUV color encodings)
double getResolution(const QPointF &_rqPointFDatPosition) const
Returns the resolution at given chart (GDAL dataset) point [px], in meters per pixel [m/px].
QPointF qPointFDatPositionActual
Last drawn chart (GDAL dataset) center pixel position (actually rendered)
double fdZoomActual
Last drawn chart (GDAL dataset) zoom factor (actually rendered)
QRect qRectGeometry
Chart (GDAL dataset) geometry (size)
EColorEncoding eColorEncoding
Chart (GDAL dataset) color encoding.
QPixmap qPixmapBuffer
Pixmap buffer where the chart (GDAL dataset) is rendered (rasterized)
QPointF toDatPosition(const CDataPosition &_roGeoPosition) const
Converts the given (geographical) position [long,lat,elev] to chart (GDAL dataset) point [px].
double fdZoomWished
Last drawn chart (GDAL dataset) zoom factor (requested by user)
QString getFileName() const
Returns the chart (GDAL dataset) file name.
double getZoom() const
Returns the last drawn chart (GDAL dataset) zoom factor.
QVCT::EStatus eStatus
Chart internal status.
GDALDataset * poGDALDataset
Underlying GDAL dataset.
QVector< QRgb > qColorTable
Color table (for GRAY/PALETTE_* color encodings)
QPointF qPointFDatPositionWished
Last drawn chart (GDAL dataset) center pixel position (requested by user)
(Geographical) Position data [long,lat,elev]