/*! Set the size of the legend icon The default setting is 8x8 pixels \param size Size \sa legendIconSize(), legendIcon() */ void QwtPlotItem::setLegendIconSize( const QSize &size ) { if ( d_data->legendIconSize != size ) { d_data->legendIconSize = size; legendChanged(); } }
/*! Set the levels of the contour lines \param levels Values of the contour levels \sa contourLevels(), renderContourLines(), QwtRasterData::contourLines() \note contourLevels returns the same levels but sorted. */ void QwtPlotSpectrogram::setContourLevels( const QList<double> &levels ) { d_data->contourLevels = levels; qSort( d_data->contourLevels ); legendChanged(); itemChanged(); }
/*! Set the mode that decides what to display on the legend In case of LegendBarTitles barTitle() needs to be overloaded to return individual titles for each bar. \param mode New mode \sa legendMode(), legendData(), barTitle(), QwtPlotItem::ItemAttribute */ void QwtPlotBarChart::setLegendMode( LegendMode mode ) { if ( mode != d_data->legendMode ) { d_data->legendMode = mode; legendChanged(); } }
/*! Set the mode how to represent the item on the legend \param mode Mode \sa legendMode() */ void QwtPlotShapeItem::setLegendMode( LegendMode mode ) { if ( mode != d_data->legendMode ) { d_data->legendMode = mode; legendChanged(); } }
/*! \brief Set the symbol pen The symbol pen is used for rendering the lines of the bar or candlestick symbols \sa symbolPen(), setSymbolBrush() */ void QwtPlotTradingCurve::setSymbolPen( const QPen &pen ) { if ( pen != d_data->symbolPen ) { d_data->symbolPen = pen; legendChanged(); itemChanged(); } }
/*! Set the symbol style \param style Symbol style \sa symbolStyle(), setSymbolExtent(), setSymbolPen(), setSymbolBrush() */ void QwtPlotTradingCurve::setSymbolStyle( SymbolStyle style ) { if ( style != d_data->symbolStyle ) { d_data->symbolStyle = style; legendChanged(); itemChanged(); } }
/*! \brief Assign a brush. In case of brush.style() != QBrush::NoBrush and style() != QwtPlotCurve::Sticks the area between the curve and the baseline will be filled. In case !brush.color().isValid() the area will be filled by pen.color(). The fill algorithm simply connects the first and the last curve point to the baseline. So the curve data has to be sorted (ascending or descending). \param brush New brush \sa brush(), setBaseline(), baseline() */ void QwtPlotCurve::setBrush( const QBrush &brush ) { if ( brush != d_data->brush ) { d_data->brush = brush; legendChanged(); itemChanged(); } }
/*! Specify a pen for the line. \param pen New pen \sa linePen() */ void QwtPlotMarker::setLinePen( const QPen &pen ) { if ( pen != d_data->pen ) { d_data->pen = pen; legendChanged(); itemChanged(); } }
/*! \brief Set the default pen for the contour lines If the spectrogram has a valid default contour pen a contour line is painted using the default contour pen. Otherwise (pen.style() == Qt::NoPen) the pen is calculated for each contour level using contourPen(). \sa defaultContourPen(), contourPen() */ void QwtPlotSpectrogram::setDefaultContourPen( const QPen &pen ) { if ( pen != d_data->defaultContourPen ) { d_data->defaultContourPen = pen; legendChanged(); itemChanged(); } }
/*! \brief Set the line style \param style Line style. \sa lineStyle() */ void QwtPlotMarker::setLineStyle( LineStyle style ) { if ( style != d_data->style ) { d_data->style = style; legendChanged(); itemChanged(); } }
/*! Set a maximum for the symbol width A value <= 0.0 means an unlimited width \param width Width in paint device coordinates \sa maxSymbolWidth(), setMinSymbolWidth(), setSymbolExtent() */ void QwtPlotTradingCurve::setMaxSymbolWidth( double width ) { if ( width != d_data->maxSymbolWidth ) { d_data->maxSymbolWidth = width; legendChanged(); itemChanged(); } }
/*! Set the palette \sa QwtAbstractScaleDraw::draw(), palette() */ void QwtPlotScaleItem::setPalette( const QPalette &palette ) { if ( palette != d_data->palette ) { d_data->palette = palette; legendChanged(); itemChanged(); } }
/*! Set the curve's drawing style \param style Curve style \sa style() */ void QwtPlotCurve::setStyle( CurveStyle style ) { if ( style != d_data->style ) { d_data->style = style; legendChanged(); itemChanged(); } }
void AllPlotSlopeCurve::setStyle( CurveStyle style ) { if ( style != d_data->style ) { d_data->style = style; legendChanged(); itemChanged(); } }
/*! Assign a pen \param pen New pen \sa pen(), brush() */ void QwtPlotCurve::setPen( const QPen &pen ) { if ( pen != d_data->pen ) { d_data->pen = pen; legendChanged(); itemChanged(); } }
/*! Set the value interval, that corresponds to the color map \param interval interval.minValue() corresponds to 0.0, interval.maxValue() to 1.0 on the color map. \sa colorRange(), setColorMap(), QwtColorMap::color() */ void QwtPlotSpectroCurve::setColorRange( const QwtInterval &interval ) { if ( interval != d_data->colorRange ) { d_data->colorRange = interval; legendChanged(); itemChanged(); } }
/*! Set the orientation of the item. The orientation() might be used in specific way by a plot item. F.e. a QwtPlotCurve uses it to identify how to display the curve int QwtPlotCurve::Steps or QwtPlotCurve::Sticks style. \sa orientation() */ void QwtPlotSeriesItem::setOrientation( Qt::Orientation orientation ) { if ( d_data->orientation != orientation ) { d_data->orientation = orientation; legendChanged(); itemChanged(); } }
/*! Set the style of the chart \param style Chart style \sa style() */ void QwtPlotMultiBarChart::setStyle( ChartStyle style ) { if ( style != d_data->style ) { d_data->style = style; legendChanged(); itemChanged(); } }
/*! Specify the attributes how to draw the legend icon \param attributes Attributes /sa setLegendAttribute(). legendIcon() */ void QwtPlotCurve::setLegendAttributes( LegendAttributes attributes ) { if ( attributes != d_data->legendAttributes ) { d_data->legendAttributes = attributes; qwtUpdateLegendIconSize( this ); legendChanged(); } }
/*! Load SVG data \param rect Bounding rectangle \param data in SVG format \return true, if the SVG data could be loaded */ bool QwtPlotSvgItem::loadData( const QRectF &rect, const QByteArray &data ) { d_data->boundingRect = rect; const bool ok = d_data->renderer.load( data ); legendChanged(); itemChanged(); return ok; }
/*! \brief Set the extent of the symbol The width of the symbol is given in scale coordinates. When painting a symbol the width is scaled into paint device coordinates by scaledSymbolWidth(). The scaled width is bounded by minSymbolWidth(), maxSymbolWidth() \param extent Symbol width in scale coordinates \sa symbolExtent(), scaledSymbolWidth(), setMinSymbolWidth(), setMaxSymbolWidth() */ void QwtPlotTradingCurve::setSymbolExtent( double extent ) { extent = qwtMaxF( 0.0, extent ); if ( extent != d_data->symbolExtent ) { d_data->symbolExtent = extent; legendChanged(); itemChanged(); } }
/*! \brief Assign a symbol The bar chart will take the ownership of the symbol, hence the previously set symbol will be delete by setting a new one. If \p symbol is \c NULL no symbol will be drawn. \param symbol Symbol \sa symbol() */ void QwtPlotBarChart::setSymbol( QwtColumnSymbol *symbol ) { if ( symbol != d_data->symbol ) { delete d_data->symbol; d_data->symbol = symbol; legendChanged(); itemChanged(); } }
/*! Change the color map Often it is useful to display the mapping between intensities and colors as an additional plot axis, showing a color bar. \param colorMap Color Map \sa colorMap(), setColorRange(), QwtColorMap::color(), QwtScaleWidget::setColorBarEnabled(), QwtScaleWidget::setColorMap() */ void QwtPlotSpectroCurve::setColorMap( QwtColorMap *colorMap ) { if ( colorMap != d_data->colorMap ) { delete d_data->colorMap; d_data->colorMap = colorMap; } legendChanged(); itemChanged(); }
/*! Assign a symbol. \param symbol Symbol \sa symbol() */ void QwtPlotIntervalCurve::setSymbol( const QwtIntervalSymbol *symbol ) { if ( symbol != d_data->symbol ) { delete d_data->symbol; d_data->symbol = symbol; legendChanged(); itemChanged(); } }
/*! Load a SVG file \param rect Bounding rectangle \param fileName SVG file name \return true, if the SVG file could be loaded */ bool QwtPlotSvgItem::loadFile( const QRectF &rect, const QString &fileName ) { d_data->boundingRect = rect; const bool ok = d_data->renderer.load( fileName ); legendChanged(); itemChanged(); return ok; }
/*! Set a minimum for the symbol width \param width Width in paint device coordinates \sa minSymbolWidth(), setMaxSymbolWidth(), setSymbolExtent() */ void QwtPlotTradingCurve::setMinSymbolWidth( double width ) { width = qwtMaxF( width, 0.0 ); if ( width != d_data->minSymbolWidth ) { d_data->minSymbolWidth = width; legendChanged(); itemChanged(); } }
/*! Set the levels of the contour lines \param levels Values of the contour levels \sa contourLevels(), renderContourLines(), QwtRasterData::contourLines() \note contourLevels returns the same levels but sorted. */ void QwtPlotSpectrogram::setContourLevels( const QList<double> &levels ) { d_data->contourLevels = levels; #ifdef WORKBENCH_REPLACE_QT_DEPRECATED std::sort(d_data->contourLevels.begin(), d_data->contourLevels.end()); #else qSort( d_data->contourLevels ); #endif legendChanged(); itemChanged(); }
/*! Set a new title \param title Title \sa title() */ void QwtPlotItem::setTitle( const QwtText &title ) { if ( d_data->title != title ) { d_data->title = title; legendChanged(); #if 0 itemChanged(); #endif } }
/*! \brief Assign a symbol The curve will take the ownership of the symbol, hence the previously set symbol will be delete by setting a new one. If \p symbol is \c NULL no symbol will be drawn. \param symbol Symbol \sa symbol() */ void QwtPlotCurve::setSymbol( QwtSymbol *symbol ) { if ( symbol != d_data->symbol ) { delete d_data->symbol; d_data->symbol = symbol; qwtUpdateLegendIconSize( this ); legendChanged(); itemChanged(); } }
/*! Specify an attribute how to draw the legend icon \param attribute Attribute \param on On/Off /sa testLegendAttribute(). legendIcon() */ void QwtPlotCurve::setLegendAttribute( LegendAttribute attribute, bool on ) { if ( on != testLegendAttribute( attribute ) ) { if ( on ) d_data->legendAttributes |= attribute; else d_data->legendAttributes &= ~attribute; qwtUpdateLegendIconSize( this ); legendChanged(); } }