##// END OF EJS Templates
Fixes for docs , adds xyseries docs
Fixes for docs , adds xyseries docs

File last commit:

r481:676000b99479
r481:676000b99479
Show More
qscatterseries.cpp
108 lines | 2.3 KiB | text/x-c | CppLexer
Tero Ahola
Integrated scatter type series...
r42 #include "qscatterseries.h"
#include "qchart.h"
Tero Ahola
Scatter series documentation; now uses snippets
r300 /*!
\class QScatterSeries
Michal Klocek
Fixes for docs , adds xyseries docs
r481 \brief The QScatterSeries class is used for making scatter charts.
Tero Ahola
Integrated scatter type series...
r42
Tero Ahola
Scatter series documentation; now uses snippets
r300 \mainclass
Michal Klocek
Fixes for docs , adds xyseries docs
r481 The scatter data is displayed as a collection of points on the chart. Each point determines the position on the horizontal axis
and the vertical axis.
Tero Ahola
Scatter series documentation; now uses snippets
r300
Michal Klocek
Fixes for docs , adds xyseries docs
r481 \image scatterchart.png
Tero Ahola
Scatter series documentation; now uses snippets
r300
Michal Klocek
Fixes for docs , adds xyseries docs
r481 Creating basic scatter chart is simple:
\code
QScatterSeries* series = new QScatterSeries();
series->add(0, 6);
series->add(2, 4);
...
chartView->addSeries(series);
\endcode
Tero Ahola
Scatter series documentation; now uses snippets
r300 */
Tero Ahola
Integrated scatter type series...
r42
Tero Ahola
Documenting QScatterSeries
r261 /*!
\enum QScatterSeries::MarkerShape
This enum describes the shape used when rendering marker items.
\value MarkerShapeDefault
\value MarkerShapeX
\value MarkerShapeRectangle
Tero Ahola
Scatter API review: changed signal now private etc.
r459 \value MarkerShapeRoundedRectangle
Tero Ahola
Documenting QScatterSeries
r261 \value MarkerShapeTiltedRectangle
\value MarkerShapeTriangle
\value MarkerShapeCircle
*/
Tero Ahola
QDoc to use style sheets...
r260 /*!
Tero Ahola
Scatter series documentation; now uses snippets
r300 \fn QChartSeriesType QScatterSeries::type() const
\brief Returns QChartSeries::SeriesTypeScatter.
Michal Klocek
Fixes for docs , adds xyseries docs
r481 \sa QSeries, QSeriesType
Tero Ahola
Scatter series documentation; now uses snippets
r300 */
Tero Ahola
QDoc to use style sheets...
r260
Tero Ahola
Scatter series documentation; now uses snippets
r300 /*!
Michal Klocek
Fixes for docs , adds xyseries docs
r481 \fn void QScatterSeries::clicked(const QPointF& point)
\brief Signal is emitted when user clicks the \a point on scatter chart.
Tero Ahola
Scatter series documentation; now uses snippets
r300 */
Tero Ahola
QDoc to use style sheets...
r260
Tero Ahola
Scatter series documentation; now uses snippets
r300 QTCOMMERCIALCHART_BEGIN_NAMESPACE
Tero Ahola
Documenting QScatterSeries
r261 /*!
Constructs a series object which is a child of \a parent.
*/
Tero Ahola
Integrated scatter again. Missing functionality....
r158 QScatterSeries::QScatterSeries(QObject *parent) :
Michal Klocek
Refactor scatter chart to fit the other classes...
r470 QXYSeries(parent),
m_shape(QScatterSeries::MarkerShapeDefault),
m_size(9.0)
Tero Ahola
Integrated scatter type series...
r42 {
}
Tero Ahola
QDoc to use style sheets...
r260 /*!
Tero Ahola
Documenting QScatterSeries
r261 Destroys the object. Note that adding series to QChart transfers the ownership to the chart.
Tero Ahola
QDoc to use style sheets...
r260 */
Tero Ahola
Integrated scatter again. Missing functionality....
r158 QScatterSeries::~QScatterSeries()
Tero Ahola
Integrated scatter type series...
r42 {
Tero Ahola
Resizing of QGraphicItems now possible by resize signal from QChart
r48 }
Tero Ahola
Documenting QScatterSeries
r261 /*!
Tero Ahola
Scatter API review: changed signal now private etc.
r459 Returns the shape used for drawing markers.
Tero Ahola
Documenting QScatterSeries
r261 */
Tero Ahola
Scatter API review: changed signal now private etc.
r459 QScatterSeries::MarkerShape QScatterSeries::shape() const
Tero Ahola
Scatter series marker visuals
r195 {
Michal Klocek
Refactor scatter chart to fit the other classes...
r470 return (QScatterSeries::MarkerShape) m_shape;
Tero Ahola
Scatter series marker visuals
r195 }
Tero Ahola
Documenting QScatterSeries
r261 /*!
Tero Ahola
Scatter series documentation; now uses snippets
r300 Overrides the default shape of the marker items with a user defined \a shape. The default shape
is defined by chart theme setting.
Tero Ahola
Documenting QScatterSeries
r261 */
Tero Ahola
Fixing review findings in QScatterSeries
r358 void QScatterSeries::setShape(MarkerShape shape)
Tero Ahola
Scatter series marker visuals
r195 {
Michal Klocek
Refactor scatter chart to fit the other classes...
r470 m_shape = shape;
emit updated();
Tero Ahola
Scatter series marker visuals
r195 }
Tero Ahola
Added size customization to QScatterSeries
r397 /*!
Returns the size of the marker items.
*/
Tero Ahola
Scatter API review: changed signal now private etc.
r459 qreal QScatterSeries::size() const
Tero Ahola
Added size customization to QScatterSeries
r397 {
Michal Klocek
Refactor scatter chart to fit the other classes...
r470 return m_size;
Tero Ahola
Added size customization to QScatterSeries
r397 }
/*!
Set the \a size of the marker items. The default size is 9.0.
*/
void QScatterSeries::setSize(qreal size)
{
Michal Klocek
Refactor scatter chart to fit the other classes...
r470 m_size = size;
emit updated();
Tero Ahola
Added size customization to QScatterSeries
r397 }
Michal Klocek
Refactor scatter chart to fit the other classes...
r470
Tero Ahola
Integrated scatter type series...
r42 #include "moc_qscatterseries.cpp"
QTCOMMERCIALCHART_END_NAMESPACE