return info;
}
-/*!
- * Create markers and tooltips associated with curve points
- */
-void Plot2d_ViewFrame::createCurveTooltips( Plot2d_Curve *curve,
- Plot2d_QwtPlotPicker *picker)
-{
- // Dans Plot2d.h : pointList == QList<Plot2d_Point>
- double x, y;
- QString tooltip;
-
- pointList points = curve->getPointList();
- QColor color = curve->getColor();
-
- // Point marker
- QwtSymbol symbol;
- symbol.setStyle(QwtSymbol::Ellipse);
- symbol.setSize(1,1);
- symbol.setPen( QPen(color));
- symbol.setBrush( QBrush(color));
-
- for (int ip=0; ip < points.count(); ip++)
- {
- x = points[ip].x;
- y = points[ip].y;
- tooltip = points[ip].text;
-
- QwtPlotMarker *marker = myPlot->createMarkerAndTooltip( symbol,
- x,
- y,
- tooltip,
- picker);
- // To deallocate in EraseAll()
- myMarkerList.append( marker);
- }
-}
-
-
/*!
* Display curves of the list of lists by systems and components
* - the first level list contains NbSytems lists of second level
* \return the list of underlying plot curve that defines the complex cuve at once. In case of success the vector is at least of size 1. The first one is the curve used by the legend.
*/
QVector< QVector<QwtPlotCurve *> > Plot2d_ViewFrame::displayPlot2dCurveList( const QList< QList<Plot2d_Curve*> >& sysCoCurveList,
- Plot2d_QwtPlotPicker* picker,
bool displayLegend,
const QList< QList<bool> >& sides)
{
}
// 2)- Display list curves by a component's curves group
// Draw connection segments (intermittent line) between the curves
- QVector< QVector<QwtPlotCurve *> > ret=displayPlot2dCurveList( plot2dCurveCoSysList, nbSystem, picker, displayLegend, sidesList);
+ QVector< QVector<QwtPlotCurve *> > ret=displayPlot2dCurveList( plot2dCurveCoSysList, nbSystem, displayLegend, sidesList);
// 3)- Size of graduations labels and texts under X axis
QwtScaleWidget *wid = myPlot->axisWidget( QwtPlot::xBottom);
wid->setTitle(" "); // to make the names readable under X axis.
*/
QVector< QVector<QwtPlotCurve *> > Plot2d_ViewFrame::displayPlot2dCurveList( const QList<Plot2d_Curve*>& curveList,
int groupSize,
- Plot2d_QwtPlotPicker* picker,
bool displayLegend, const QList< bool >& sides)
{
// Consider the new legend's entries
// (Qwtplot)
displayCurve(plot2dCurve);
- // Draw the points' markers and create the associated tooltips
- //createCurveTooltips( plot2dCurve, picker);
-
// Get the graphic curve
QwtPlotCurve* plotCurve = dynamic_cast<QwtPlotCurve *>(getPlotObject(plot2dCurve));
vectCurve[ig].push_back(plotCurve);
}
displayCurve( plot2dCurve);
- // plot points marker create associated tooltips
- //createCurveTooltips( plot2dCurve, picker);
-
// Get the graphical curve
QwtPlotCurve* plotCurve = dynamic_cast<QwtPlotCurve *>( getPlotObject( plot2dCurve));
void setTitle( const QString& );
QString getTitle() const;
- /* addition MultiX */
- void createCurveTooltips( Plot2d_Curve *curve,
- Plot2d_QwtPlotPicker *picker);
-
QVector< QVector<QwtPlotCurve *> > displayPlot2dCurveList( const QList< QList<Plot2d_Curve*> >& sysCoCurveList,
- Plot2d_QwtPlotPicker* picker,
bool displayLegend,
const QList< QList<bool> >& sides);
QVector< QVector<QwtPlotCurve *> > displayPlot2dCurveList( const QList<Plot2d_Curve*>& curveList,
int groupsize,
- Plot2d_QwtPlotPicker* picker,
bool displayLegend,
const QList< bool >& sides);