#include <PlotEnrichement.h>
PlotEnrichement draws d_pic at the position specified by d_pos, scaled to d_size. d_file_name isn't used internally, but only provided to help Graph manage save/restore.
Following the above thoughts, it might help clarify the purpose of PlotEnrichement, LegendMarker and LineMarker if they are renamed according to the new superclasse's name (e.g. ImageEnrichment, TextEnrichment and LineEnrichment).
See the documentation of SelectionMoveResizer for other advantages of this approach.
Public Member Functions | |
double | bottom () |
virtual QwtDoubleRect | boundingRect () const |
Return bounding rectangle in plot coordinates. | |
QPoint | origin () const |
Return position in paint coordinates. | |
PlotEnrichement () | |
virtual QRect | rect () const |
Return bounding rectangle in paint coordinates. | |
double | right () |
virtual void | setBoundingRect (double left, double top, double right, double bottom) |
Set position (xValue() and yValue()), right and bottom values giving everything in plot coordinates. | |
void | setOrigin (const QPoint &p) |
Set QwtPlotMarker::value() in paint coordinates. | |
virtual void | setRect (int x, int y, int w, int h) |
Set value (position) and d_size, giving everything in paint coordinates. | |
void | setSize (const QSize &size) |
Set d_size. | |
QSize | size () |
Return d_size. | |
virtual void | updateBoundingRect () |
Private Member Functions | |
QRect | calculatePaintingRect () |
Private Attributes | |
QPoint | d_pos |
The position in paint coordiantes. | |
QSize | d_size |
The size (in paint coordinates). | |
double | d_x_right |
The right side position in scale coordinates. | |
double | d_y_bottom |
The bottom side position in scale coordinates. |
PlotEnrichement::PlotEnrichement | ( | ) |
double PlotEnrichement::bottom | ( | ) | [inline] |
Reimplemented in ImageMarker.
QwtDoubleRect PlotEnrichement::boundingRect | ( | ) | const [virtual] |
Return bounding rectangle in plot coordinates.
Reimplemented in ImageMarker, LegendMarker, and LineMarker.
QRect PlotEnrichement::calculatePaintingRect | ( | ) | [private] |
QPoint PlotEnrichement::origin | ( | ) | const [inline] |
virtual QRect PlotEnrichement::rect | ( | ) | const [inline, virtual] |
Return bounding rectangle in paint coordinates.
Reimplemented in ImageMarker, LegendMarker, and LineMarker.
double PlotEnrichement::right | ( | ) | [inline] |
Reimplemented in ImageMarker.
void PlotEnrichement::setBoundingRect | ( | double | left, | |
double | top, | |||
double | right, | |||
double | bottom | |||
) | [virtual] |
Set position (xValue() and yValue()), right and bottom values giving everything in plot coordinates.
Reimplemented in ImageMarker, and LineMarker.
void PlotEnrichement::setOrigin | ( | const QPoint & | p | ) |
void PlotEnrichement::setRect | ( | int | x, | |
int | y, | |||
int | w, | |||
int | h | |||
) | [virtual] |
Set value (position) and d_size, giving everything in paint coordinates.
Reimplemented in ImageMarker.
void PlotEnrichement::setSize | ( | const QSize & | size | ) |
QSize PlotEnrichement::size | ( | ) | [inline] |
void PlotEnrichement::updateBoundingRect | ( | ) | [virtual] |
Reimplemented in ImageMarker, and LineMarker.
QPoint PlotEnrichement::d_pos [private] |
QSize PlotEnrichement::d_size [private] |
double PlotEnrichement::d_x_right [private] |
double PlotEnrichement::d_y_bottom [private] |