|
Eneboo - Documentación para desarrolladores
|
A base class for plot print filters. Más...
#include <qwt_plot_printfilter.h>
Clases | |
| class | PrivateData |
Tipos públicos | |
| enum | Options { PrintMargin = 1, PrintTitle = 2, PrintLegend = 4, PrintGrid = 8, PrintBackground = 16, PrintFrameWithScales = 32, PrintAll = ~PrintFrameWithScales } |
| Print options. Más... | |
| enum | Item { Title, Legend, Curve, CurveSymbol, Marker, MarkerSymbol, MajorGrid, MinorGrid, CanvasBackground, AxisScale, AxisTitle, WidgetBackground } |
| Print items. Más... | |
Métodos públicos | |
| QwtPlotPrintFilter () | |
| virtual | ~QwtPlotPrintFilter () |
| Destructor. | |
| virtual QColor | color (const QColor &, Item item) const |
| Modifies a color for printing. | |
| virtual QFont | font (const QFont &, Item item) const |
| Modifies a font for printing. | |
| void | setOptions (int options) |
| Set plot print options. | |
| int | options () const |
| Get plot print options. | |
| virtual void | apply (QwtPlot *) const |
| virtual void | reset (QwtPlot *) const |
| virtual void | apply (QwtPlotItem *) const |
| virtual void | reset (QwtPlotItem *) const |
A base class for plot print filters.
A print filter can be used to customize QwtPlot::print().
| QwtPlotPrintFilter::QwtPlotPrintFilter | ( | ) | [explicit] |
Sets filter options to PrintAll
| QwtPlotPrintFilter::~QwtPlotPrintFilter | ( | ) | [virtual] |
Destructor.
| void QwtPlotPrintFilter::apply | ( | QwtPlot * | plot | ) | const [virtual] |
Change color and fonts of a plot
| void QwtPlotPrintFilter::apply | ( | QwtPlotItem * | item | ) | const [virtual] |
Modifies a color for printing.
| c | Color to be modified |
| item | Type of item where the color belongs |
In case of !(QwtPlotPrintFilter::options() & PrintBackground) MajorGrid is modified to Qt::darkGray, MinorGrid to Qt::gray. All other colors are returned unmodified.
Modifies a font for printing.
| f | Font to be modified |
| item | Type of item where the font belongs |
All fonts are returned unmodified
| int QwtPlotPrintFilter::options | ( | ) | const |
Get plot print options.
| void QwtPlotPrintFilter::reset | ( | QwtPlot * | plot | ) | const [virtual] |
Reset color and fonts of a plot
| void QwtPlotPrintFilter::reset | ( | QwtPlotItem * | item | ) | const [virtual] |
| void QwtPlotPrintFilter::setOptions | ( | int | options | ) |
Set plot print options.
| options | Or'd QwtPlotPrintFilter::Options values |
1.7.4