改进代码
This commit is contained in:
@@ -117,19 +117,19 @@ void QwtPlotSpectroCurve::setSamples( const QVector<QwtPoint3D> &samples )
|
||||
|
||||
/*!
|
||||
Assign a series of samples
|
||||
|
||||
|
||||
setSamples() is just a wrapper for setData() without any additional
|
||||
value - beside that it is easier to find for the developer.
|
||||
|
||||
|
||||
\param data Data
|
||||
\warning The item takes ownership of the data object, deleting
|
||||
it when its not used anymore.
|
||||
it when its not used anymore.
|
||||
*/
|
||||
void QwtPlotSpectroCurve::setSamples(
|
||||
QwtSeriesData<QwtPoint3D> *data )
|
||||
{
|
||||
setData( data );
|
||||
}
|
||||
}
|
||||
|
||||
/*!
|
||||
Change the color map
|
||||
@@ -310,7 +310,7 @@ void QwtPlotSpectroCurve::drawDots( QPainter *painter,
|
||||
const unsigned char index = d_data->colorMap->colorIndex(
|
||||
d_data->colorRange, sample.z() );
|
||||
|
||||
painter->setPen( QPen( QColor::fromRgba( d_data->colorTable[index] ),
|
||||
painter->setPen( QPen( QColor::fromRgba( d_data->colorTable[index] ),
|
||||
d_data->penWidth ) );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user