FunctionCurve::FunctionCurve(const FunctionType& t, const QString& name): PlotCurve(name), d_function_type(t), d_variable("x") { setType(Graph::Function); setPlotStyle(Graph::Line); }
void QwtHistogram::init() { d_matrix = 0; bar_gap = 0; setType(Graph::Histogram); setPlotStyle(Graph::Histogram); setStyle(QwtPlotCurve::UserCurve); }
QwtHistogram::QwtHistogram(Table *t, const QString& name, int startRow, int endRow): QwtBarCurve(QwtBarCurve::Vertical, t, "", name, startRow, endRow), d_autoBin(true) { d_matrix = 0; setType(Graph::Histogram); setPlotStyle(Graph::Histogram); setStyle(QwtPlotCurve::UserCurve); }
void TimeInstantLayer::setProperty(const PropertyName &name, int value) { if (name == "Plot Type") { setPlotStyle(PlotStyle(value)); } else { SingleColourLayer::setProperty(name, value); } }
FunctionCurve::FunctionCurve(const QString& name): PlotCurve(name), d_function_type(Normal), d_variable("x") { setType(Graph::Function); setPlotStyle(Graph::Line); d_formulas = QStringList(); }
void TimeInstantLayer::setProperties(const QXmlAttributes &attributes) { SingleColourLayer::setProperties(attributes); bool ok; PlotStyle style = (PlotStyle) attributes.value("plotStyle").toInt(&ok); if (ok) setPlotStyle(style); }
VectorCurve::VectorCurve(VectorStyle style, Table *t, const QString& xColName, const char *name, const QString& endCol1, const QString& endCol2, int startRow, int endRow): DataCurve(t, xColName, name, startRow, endRow), pen(QPen(Qt::black, 1, Qt::SolidLine)), filledArrow (true), d_style (style), d_headLength (4), d_headAngle (45), d_position (Tail), d_end_x_a (endCol1), d_end_y_m (endCol2) { if (style == XYXY){ setType(Graph::VectXYXY); setPlotStyle(Graph::VectXYXY); } else if (style == XYAM) { setType(Graph::VectXYAM); setPlotStyle(Graph::VectXYAM); } }
QwtHistogram::QwtHistogram(Matrix *m): QwtBarCurve(QwtBarCurve::Vertical, NULL, "matrix", m->objectName(), 0, 0) { if (m){ d_autoBin = true; d_matrix = m; setType(Graph::Histogram); setPlotStyle(Graph::Histogram); setStyle(QwtPlotCurve::UserCurve); } }
QwtBarCurve::QwtBarCurve(BarStyle style, Table *t, const QString& xColName, const QString& name, int startRow, int endRow): DataCurve(t, xColName, name, startRow, endRow), bar_offset(0), bar_gap(20), d_white_out(false) { bar_style = style; QPen pen = QPen(Qt::black, 1, Qt::SolidLine, Qt::SquareCap, Qt::MiterJoin); pen.setCosmetic(true); setPen(pen); setBrush(QBrush(Qt::red)); setStyle(QwtPlotCurve::UserCurve); if (bar_style == Vertical){ setType(Graph::VerticalBars); setPlotStyle(Graph::VerticalBars); } else { setType(Graph::HorizontalBars); setPlotStyle(Graph::HorizontalBars); } }
QwtErrorPlotCurve::QwtErrorPlotCurve(Table *t, const QString& name): DataCurve(t, QString(), name), d_master_curve(NULL) { cap=10; type = Vertical; plus = true; minus = true; through = false; setType(Graph::ErrorBars); setPlotStyle(Graph::ErrorBars); setStyle(QwtPlotCurve::UserCurve); }
QwtErrorPlotCurve::QwtErrorPlotCurve(int orientation, Table *t, const QString& name): DataCurve(t, QString(), name), d_master_curve(NULL) { d_cap_length = 10; type = orientation; plus = true; minus = true; through = false; setType(Graph::ErrorBars); setPlotStyle(Graph::ErrorBars); setStyle(QwtPlotCurve::UserCurve); }
void TimeInstantLayer::setModel(SparseOneDimensionalModel *model) { if (m_model == model) return; m_model = model; connectSignals(m_model); #ifdef DEBUG_TIME_INSTANT_LAYER std::cerr << "TimeInstantLayer::setModel(" << model << ")" << std::endl; #endif if (m_model && m_model->getRDFTypeURI().endsWith("Segment")) { setPlotStyle(PlotSegmentation); } emit modelReplaced(); }
Jenia::Jenia() : Qwt3D::SurfacePlot() { for (unsigned i=0; i!=coordinates()->axes.size(); ++i) { coordinates()->axes[i].setMajors(7); coordinates()->axes[i].setMinors(4); } coordinates()->axes[Qwt3D::X1].setLabelString("x"); coordinates()->axes[Qwt3D::Y1].setLabelString("y"); coordinates()->axes[Qwt3D::Z1].setLabelString("z"); setCoordinateStyle(Qwt3D::BOX); setPlotStyle(Qwt3D::WIREFRAME); Qwt3D::RGBA color(1, 0, 0, 1); setMeshColor(color); setRotation(30,0,15); setScale(1,1,1); setShift(0.15,0,0); setZoom(0.9); resize(800, 600); }