51 QwtFigure(QWidget* parent =
nullptr, Qt::WindowFlags f = Qt::WindowFlags());
55 void addWidget(QWidget* widget, qreal left, qreal top, qreal width, qreal height);
56 void addWidget(QWidget* widget,
67 void addAxes(
QwtPlot* plot,
const QRectF& rect);
70 void addAxes(
QwtPlot* plot, qreal left, qreal top, qreal width, qreal height);
84 void setWidgetNormPos(QWidget* widget,
const QRectF& rect);
93 bool hasAxes(
QwtPlot* plot)
const;
105 QSize getSizeInches()
const;
108 void setSizeInches(
float width,
float height);
109 void setSizeInches(
const QSizeF& size);
112 void setFaceColor(
const QColor& color);
113 QColor faceColor()
const;
116 void setFaceBrush(
const QBrush& brush);
117 QBrush faceBrush()
const;
120 void setEdgeColor(
const QColor& color);
121 QColor edgeColor()
const;
124 void setEdgeLineWidth(
int width);
125 int edgeLineWidth()
const;
134 QPixmap saveFig(
int dpi = -1)
const;
137 QPixmap saveFig(QSizeF& inchesSize)
const;
140 bool saveFig(
const QString& filename,
int dpi = -1)
const;
143 void setCurrentAxes(
QwtPlot* plot);
151 QRectF axesNormRect(
QwtPlot* plot)
const;
154 QRectF widgetNormRect(QWidget* w)
const;
157 QwtPlot* plotUnderPos(
const QPoint& pos)
const;
160 QRectF calcNormRect(
const QRect& geoRect)
const;
163 QRect calcActualRect(
const QRectF& normRect);
175 void clearAxisAlignment();
178 void applyAllAxisAlignments(
bool replot =
true);
181 void applyAlignmentsForAxis(
int axisId);
184 int axisAligmentCount()
const;
187 QPair< QList< QwtPlot* >,
int > axisAligmentInfo(
int index)
const;
220 void paintEvent(QPaintEvent* event)
override;
221 void resizeEvent(QResizeEvent* event)
override;