19 #ifndef QVCT_CCHART_HPP
20 #define QVCT_CCHART_HPP
23 #include <QDomElement>
27 #include <QXmlStreamWriter>
82 CChart(
const QString& _rqsFileName, QWidget* _pqParent = 0 );
95 virtual void paintEvent( QPaintEvent* _pqPaintEvent );
162 void move(
const QPointF& _rqPointFDrawPositionOffset );
170 void print( QPrinter* _pqPrinter );
174 void parseQVCT(
const QDomElement& _rqDomElement );
176 void dumpQVCT( QXmlStreamWriter & _rqXmlStreamWriter )
const;
GDAL-based (elevation) chart.
GDAL-based (raster) chart.
Generic GDAL-based dataset.
bool hasElevation() const
Returns whether this chart has been associated elevation model data.
QString getFileName() const
Returns the underlying chart (GDAL dataset) file name.
void dumpQVCT(QXmlStreamWriter &_rqXmlStreamWriter) const
Stores this object's content to the given QVCT destination (file)
void parseQVCT(const QDomElement &_rqDomElement)
Retrieves this object's content from the given QVCT source (file)
void lockZoom(bool _bLock)
Sets the zoom lock status.
bool isPositionLocked() const
Returns the position lock status.
bool isZoomLocked() const
Returns the zoom lock status.
double getZoomFit() const
Returns the zoom factor allowing to view the entire chart.
double getZoom() const
Returns the current zoom factor.
double getZoomActual() const
Returns the zoom factor corresponding to a 1:1 dataset/screen pixels ratio.
void print(QPrinter *_pqPrinter)
Prints the chart.
void draw()
Draws the chart (on screen)
CChartGDALElevation * poChartGDALElevation
GDAL data elevation model (dataset)
double fdZoom
Current zoom factor.
double getResolution() const
Returns the resolution of the chart at its current position, in meters per pixel [m/px].
void move(const QPointF &_rqPointFDrawPositionOffset)
Move the current (center) chart position by specified offset (in the draw area)
QPointF qPointFDatPosition
Current (center) position in the GDAL dataset.
bool isElevationShowed() const
Returns the elevation model show status.
bool bZoomLock
Zoom lock status.
QRectF getDrawArea() const
Returns the viewport draw area.
void setZoom(double _fdZoom)
Sets the current zoom factor.
QPointF getDatPosition() const
Returns the current (center) position (dataset coordinates) of the chart.
void setGeoPosition(const CDataPosition &_roGeoPosition)
Sets the current (center) position (geographical coordinates) of the chart.
virtual void paintEvent(QPaintEvent *_pqPaintEvent)
QVCT::EStatus getStatus() const
Returns the internal status of the object.
CDataPosition getGeoPosition() const
Returns the current (center) position (geographical coordinates) of the chart.
void lockPosition(bool _bLock)
Sets the position lock status.
CChart(const QString &_rqsFileName, QWidget *_pqParent=0)
void setDrawArea(QRectF _qRectFDrawArea)
Sets the viewport draw area.
bool bPositionLock
Position lock status.
void resetDrawArea()
Resets the viewport draw area (to the widget's area)
QPointF toDrawPosition(const CDataPosition &_roGeoPosition) const
Converts the given (geographical) position [long,lat,elev] to chart draw point [px].
CDataPosition toGeoPosition(const QPointF &_rqPointFDrawPosition) const
Converts the given chart draw position to geographical position.
CChartGDALRaster * poChartGDALRaster
GDAL chart (dataset)
void showElevation(bool _bShow)
Sets the elevation model show status.
QRectF qRectFDrawArea
Viewport draw area.
bool bShowElevation
Elevation model show status.
double getZoomArea(const CDataPosition &_roGeoPosition1, const CDataPosition &_roGeoPosition2) const
Returns the zoom factor allowing to view the given geographical area (defined by its opposite corners...
QPointF getDrawPositionCenter() const
Returns the viewport draw area's center position.
void addElevation(const QString &_rqsFileName)
Add elevation model data to chart.
CDataPosition getGeoPositionCenter() const
Returns the center position (geographical coordinates) of the chart.
(Geographical) Position data [long,lat,elev]