19 #ifndef QVCT_COVERLAY_HPP
20 #define QVCT_COVERLAY_HPP
24 #include <QTreeWidgetItem>
102 COverlay(
const QString& _rqsName );
135 void draw(
const CChart* _poChart, QPainter* _pqPainter );
139 virtual void showDetail(
const QTreeWidgetItem* _pqTreeWidgetItem )
const = 0;
141 virtual void setPosition(
const QTreeWidgetItem* _pqTreeWidgetItem )
const = 0;
151 QString
newChildName(
const QString& _rqsName,
int __iZeroPrefix = 0,
bool __bForceSuffix =
false )
const;
const QBrush & getBrushText() const
void setVisible(bool _bVisible)
Sets this overlay items' global visibility status.
const CChart * poChartPixmap
Chart for which the last rendering was achieved.
QPixmap qPixmapBuffer
Pixmap buffer used to render and cache this overlay's graphical content.
const QBrush & getBrushMarker() const
bool bForceRedraw
Forces this overlay's rendering (not matter its cache content)
virtual void drawContent(const CChart *_poChart, QPainter *_pqPainter) const =0
Draws this overlay's content.
bool isRedrawForced() const
QString newChildName(const QString &_rqsName, int __iZeroPrefix=0, bool __bForceSuffix=false) const
Returns a valid name for a new sibling of this object.
QPen qPenLine
QPen used to draw lines on this overlay.
QPen qPenVector
QPen used to draw vectors on this overlay.
QPen qPenText
QPen used to draw text on this overlay.
void draw(const CChart *_poChart, QPainter *_pqPainter)
Draws this overlay.
bool bVisible
Overlay items' global visibility status.
const QPen & getPenText() const
const QPen & getPenMarkerSelected() const
void forceRedraw()
Forces this overlay's rendering (not matter its cache content)
const QPen & getPenVector() const
virtual void setPosition(const QTreeWidgetItem *_pqTreeWidgetItem) const =0
Centers the chart on the given overlay object's position.
const QPen & getPenLine() const
QString qsName
Overlay name.
QPen qPenMarkerSelected
QPen used to identify selected markers on this overlay.
QFont qFont
QFont used to draw text on this overlay.
QBrush qBrushMarker
QBrush used to draw markers on this overlay.
COverlay(const QString &_rqsName)
bool isVisible() const
Returns this overlay items' global visibility status.
const QBrush & getBrushMarkerSelected() const
virtual void showDetail(const QTreeWidgetItem *_pqTreeWidgetItem) const =0
Displays the given overlay object's details (in the appropriate widget/view)
virtual COverlayPoint * matchScrPosition(const CChart *_poChart, const QPointF &_rqPointFScrPosition) const =0
Returns the overlay's point that (first) matches the given screen position (0 if none is found)
QBrush qBrushMarkerSelected
QBrush used to identify selected markers on this overlay.
const QFont & getFont() const
QPointF qPointFDatPositionPixmap
Chart position at which the last rendering was achieved.
double fdZoomPixmap
Zoom factor at which the last rendering was achieved.
QBrush qBrushText
QBrush used to draw text on this overlay.
QPen qPenMarker
QPen used to draw markers on this overlay.
const QPen & getPenMarker() const