40 #include <qwt_plot_marker.h>
41 #include <qwt_plot_curve.h>
119 Graph (QWidget* parent=0,
const char* name=0, Qt::WFlags f=0);
155 void plotPie(
Table* w,
const QString& name,
int startRow = 0,
int endRow = -1);
157 void plotPie(
Table* w,
const QString& name,
const QPen& pen,
int brush,
int size,
int firstColor,
int startRow = 0,
int endRow = -1,
bool visible =
true);
163 bool insertCurvesList(
Table* w,
const QStringList& names,
int style,
int lWidth,
int sSize,
int startRow = 0,
int endRow = -1);
164 bool insertCurve(
Table* w,
const QString& name,
int style,
int startRow = 0,
int endRow = -1);
166 bool insertCurve(
Table* w,
const QString& xColName,
const QString& yColName,
int style,
int startRow = 0,
int endRow = -1);
170 void showCurve(
int index,
bool visible =
true);
198 QwtPlotCurve*
curve(
int index)
const;
213 void updateCurveNames(
const QString& oldName,
const QString& newName,
bool updateTableName =
true);
237 void exportVector(
const QString& fileName,
int res = 0,
bool color =
true,
238 bool keepAspect =
true, QPrinter::PageSize pageSize = QPrinter::Custom,
239 QPrinter::Orientation orientation = QPrinter::Portrait);
240 void exportImage(
const QString& fileName,
int quality = 100,
bool transparent =
false);
248 bool addErrorBars(
const QString& xColName,
const QString& yColName,
Table *errTable,
249 const QString& errColName,
int type = 1,
int width = 1,
int cap = 8,
const QColor& color = QColor(Qt::black),
250 bool through =
true,
bool minus =
true,
bool plus =
true);
252 bool addErrorBars(
const QString& yColName,
Table *errTable,
const QString& errColName,
253 int type = 1,
int width = 1,
int cap = 8,
const QColor& color = QColor(Qt::black),
254 bool through =
true,
bool minus =
true,
bool plus =
true);
272 void setScale(
int axis,
double start,
double end,
double step = 0.0,
273 int majorTicks = 5,
int minorTicks = 5,
int type = 0,
bool inverted =
false);
288 void zoomed (
const QwtDoubleRect &);
329 void updateTextMarker(
const QString& text,
int angle,
int bkg,
const QFont& fnt,
330 const QColor& textColor,
const QColor& backgroundColor);
336 void setTextMarkerDefaults(
int f,
const QFont &font,
const QColor& textCol,
const QColor& backgroundCol);
341 const QColor& color,
const QColor& bkgColor);
343 bool start,
bool end,
int headLength,
int headAngle,
bool filledHead);
354 void insertLegend(
const QStringList& lst,
int fileVersion);
370 void addArrow(QStringList list,
int fileVersion);
386 int headLength,
int headAngle,
bool fillHead);
447 void initFonts(
const QFont &scaleTitleFnt,
const QFont &numbersFnt);
471 void showAxis(
int axis,
int type,
const QString& formatInfo,
Table *table,
bool axisOn,
472 int majTicksType,
int minTicksType,
bool labelsOn,
const QColor& c,
int format,
473 int prec,
int rotation,
int baselineDist,
const QString& formula,
const QColor& labelsColor);
508 int minLength,
int majLength);
552 void initTitle(
bool on,
const QFont& fnt);
578 void setFrame(
int width = 1,
const QColor& color = QColor(Qt::black));
590 int range(
int index,
double *start,
double *end);
604 QList<double> &ranges,
int points,
const QString& title = QString::null);
618 void plotVectorCurve(
Table* w,
const QStringList& colList,
int style,
int startRow = 0,
int endRow = -1);
619 void updateVectorsLayout(
int curve,
const QColor& color,
int width,
int arrowLength,
int arrowAngle,
bool filled,
int position,
620 const QString& xEndColName = QString(),
const QString& yEndColName = QString());
626 void plotBoxDiagram(
Table *w,
const QStringList& names,
int startRow = 0,
int endRow = -1);
658 static QPrinter::PageSize
minPageSize(
const QPrinter& printer,
const QRect& r);
690 void print(QPainter *,
const QRect &rect,
const QwtPlotPrintFilter & = QwtPlotPrintFilter());
691 void printCanvas(QPainter *painter,
const QRect &canvasRect,
692 const QwtScaleMap map[QwtPlot::axisCnt],
const QwtPlotPrintFilter &pfilter)
const;
701 void createTable(
const QString&,
const QString&,QList<Column*>);