94 QwtFigure(QWidget* parent =
nullptr, Qt::WindowFlags f = Qt::WindowFlags());
97 void addWidget(QWidget* widget, qreal left, qreal top, qreal width, qreal height);
98 void addWidget(QWidget* widget,
108 void addAxes(
QwtPlot* plot,
const QRectF& rect);
111 void addAxes(
QwtPlot* plot, qreal left, qreal top, qreal width, qreal height);
114 void addGridAxes(
QwtPlot* plot,
125 void setWidgetNormPos(QWidget* widget,
const QRectF& rect);
131 bool hasAxes()
const;
134 bool hasAxes(
QwtPlot* plot)
const;
137 void removeAxes(
QwtPlot* plot);
146 QSize getSizeInches()
const;
149 void setSizeInches(
float width,
float height);
150 void setSizeInches(
const QSizeF& size);
153 void setFaceColor(
const QColor& color);
154 QColor faceColor()
const;
157 void setFaceBrush(
const QBrush& brush);
158 QBrush faceBrush()
const;
161 void setEdgeColor(
const QColor& color);
162 QColor edgeColor()
const;
165 void setEdgeLineWidth(
int width);
166 int edgeLineWidth()
const;
176 QPixmap saveFig(
int dpi = -1)
const;
179 QPixmap saveFig(QSizeF& inchesSize)
const;
182 bool saveFig(
const QString& filename,
int dpi = -1)
const;
185 void setCurrentAxes(
QwtPlot* plot);
193 QRectF axesNormRect(
QwtPlot* plot)
const;
195 QRectF widgetNormRect(QWidget* w)
const;
197 QwtPlot* plotUnderPos(
const QPoint& pos)
const;
199 QRectF calcNormRect(
const QRect& geoRect)
const;
201 QRect calcActualRect(
const QRectF& normRect);
210 void clearAxisAlignment();
212 void applyAllAxisAlignments(
bool replot =
true);
214 void applyAlignmentsForAxis(
int axisId);
248 void paintEvent(QPaintEvent* event)
override;
249 void resizeEvent(QResizeEvent* event)
override;