Qt Virtual Chart Table (QVCT)
|
GDAL-based (raster) chart. More...
#include <charts/CChartGDALRaster.hpp>
Public Member Functions | |
CChartGDALRaster (const QString &_rqsFileName) | |
virtual | ~CChartGDALRaster () |
Public Member Functions inherited from CChartGDAL | |
QVCT::EStatus | getStatus () const |
Returns the chart internal status (after constructing object) More... | |
QString | getFileName () const |
Returns the chart (GDAL dataset) file name. More... | |
QRect | getDatGeometry () const |
Returns the chart (GDAL dataset) geometry (size) More... | |
EColorEncoding | getColorEncoding () const |
Returns the chart (GDAL dataset) color encoding. More... | |
QPointF | getDatPosition () const |
Returns the last drawn chart (GDAL dataset) center pixel position. More... | |
double | getZoom () const |
Returns the last drawn chart (GDAL dataset) zoom factor. More... | |
CDataPosition | toGeoPosition (const QPointF &_rqPointFDatPosition) const |
Converts the given chart pixel position to geographical position. More... | |
QPointF | toDatPosition (const CDataPosition &_roGeoPosition) const |
Converts the given (geographical) position [long,lat,elev] to chart (GDAL dataset) point [px]. More... | |
double | getResolution (const QPointF &_rqPointFDatPosition) const |
Returns the resolution at given chart (GDAL dataset) point [px], in meters per pixel [m/px]. More... | |
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. More... | |
void | move (const QPointF &_rqPointFDatPosition, double _fdZoom) |
Moves the chart, centered on given chart (GDAL dataset) point [px] and zoomed according to given factor. More... | |
Additional Inherited Members | |
Public Types inherited from CChartGDAL | |
enum | EColorEncoding { GRAY , GRAY_U16 , GRAY_S16 , GRAY_U32 , GRAY_S32 , GRAY_F32 , GRAY_F64 , PALETTE_GRAY , PALETTE_RGB , PALETTE_CMYK , PALETTE_HSL , ARGB , RGB , YUV } |
Underlying GDAL dataset color encoding IDs. More... | |
Protected Member Functions inherited from CChartGDAL | |
CChartGDAL () | |
virtual | ~CChartGDAL () |
void | open (const QString &_rqsFileName) |
Opens the underlying GDAL dataset. More... | |
virtual void | rasterBuffer (QImage *_pqImage, const QVector< quint16 > &_rqVector) const |
Rasterizes UInt16 buffer. More... | |
virtual void | rasterBuffer (QImage *_pqImage, const QVector< qint16 > &_rqVector) const |
Rasterizes Int16 buffer. More... | |
virtual void | rasterBuffer (QImage *_pqImage, const QVector< quint32 > &_rqVector) const |
Rasterizes UInt32 buffer. More... | |
virtual void | rasterBuffer (QImage *_pqImage, const QVector< qint32 > &_rqVector) const |
Rasterizes Int32 buffer. More... | |
virtual void | rasterBuffer (QImage *_pqImage, const QVector< float > &_rqVector) const |
Rasterizes Float32 buffer. More... | |
virtual void | rasterBuffer (QImage *_pqImage, const QVector< double > &_rqVector) const |
Rasterizes Float64 buffer. More... | |
Protected Attributes inherited from CChartGDAL | |
QVCT::EStatus | eStatus |
Chart internal status. More... | |
QString | qsFileName |
Chart (GDAL dataset) file name. More... | |
QRect | qRectGeometry |
Chart (GDAL dataset) geometry (size) More... | |
EColorEncoding | eColorEncoding |
Chart (GDAL dataset) color encoding. More... | |
QPointF | qPointFDatPositionWished |
Last drawn chart (GDAL dataset) center pixel position (requested by user) More... | |
QPointF | qPointFDatPositionActual |
Last drawn chart (GDAL dataset) center pixel position (actually rendered) More... | |
double | fdZoomWished |
Last drawn chart (GDAL dataset) zoom factor (requested by user) More... | |
double | fdZoomActual |
Last drawn chart (GDAL dataset) zoom factor (actually rendered) More... | |
GDALDataset * | poGDALDataset |
Underlying GDAL dataset. More... | |
void * | pGDALProjectionTransformer |
Underlying GDAL dataset projection transformer (to internal WGS84) More... | |
int * | piGDALBandMap |
Underlying GDAL dataset band mapping (for ARGB/RGB/YUV color encodings) More... | |
QPixmap | qPixmapBuffer |
Pixmap buffer where the chart (GDAL dataset) is rendered (rasterized) More... | |
QVector< QRgb > | qColorTable |
Color table (for GRAY/PALETTE_* color encodings) More... | |
GDAL-based (raster) chart.
This class wraps a GDAL dataset to be rasterized as a chart in QVCT.
All color encodings are supported, EXCEPT non-palette CMYK.
Definition at line 46 of file CChartGDALRaster.hpp.
CChartGDALRaster::CChartGDALRaster | ( | const QString & | _rqsFileName | ) |
Definition at line 27 of file CChartGDALRaster.cpp.
|
virtual |
Definition at line 33 of file CChartGDALRaster.cpp.