LibreOffice Module chart2 (master) 1
|
A list of series that have the same CoordinateSystem. More...
#include <VSeriesPlotter.hxx>
Classes | |
struct | CachedYValues |
Public Member Functions | |
VDataSeriesGroup ()=delete | |
VDataSeriesGroup (std::unique_ptr< VDataSeries > pSeries) | |
VDataSeriesGroup (VDataSeriesGroup &&) noexcept | |
~VDataSeriesGroup () | |
void | addSeries (std::unique_ptr< VDataSeries > pSeries) |
sal_Int32 | getSeriesCount () const |
void | deleteSeries () |
sal_Int32 | getPointCount () const |
sal_Int32 | getAttachedAxisIndexForFirstSeries () const |
void | getMinimumAndMaximumX (double &rfMinimum, double &rfMaximum) const |
void | getMinimumAndMaximumYInContinuousXRange (double &rfMinY, double &rfMaxY, double fMinX, double fMaxX, sal_Int32 nAxisIndex) const |
void | calculateYMinAndMaxForCategory (sal_Int32 nCategoryIndex, bool bSeparateStackingForDifferentSigns, double &rfMinimumY, double &rfMaximumY, sal_Int32 nAxisIndex) const |
void | calculateYMinAndMaxForCategoryRange (sal_Int32 nStartCategoryIndex, sal_Int32 nEndCategoryIndex, bool bSeparateStackingForDifferentSigns, double &rfMinimumY, double &rfMaximumY, sal_Int32 nAxisIndex) |
Public Attributes | |
std::vector< std::unique_ptr< VDataSeries > > | m_aSeriesVector |
Private Types | |
typedef std::map< sal_Int32, CachedYValues > | tCachedYValuesPerAxisIndexMap |
Private Attributes | |
bool | m_bMaxPointCountDirty |
sal_Int32 | m_nMaxPointCount |
std::vector< tCachedYValuesPerAxisIndexMap > | m_aListOfCachedYValues |
A list of series that have the same CoordinateSystem.
They are used to be plotted maybe in a stacked manner by a plotter.
Definition at line 74 of file VSeriesPlotter.hxx.
|
private |
Definition at line 114 of file VSeriesPlotter.hxx.
|
delete |
chart::VDataSeriesGroup::VDataSeriesGroup | ( | std::unique_ptr< VDataSeries > | pSeries | ) |
Definition at line 110 of file VSeriesPlotter.cxx.
References m_aSeriesVector.
|
noexcept |
Definition at line 118 of file VSeriesPlotter.cxx.
chart::VDataSeriesGroup::~VDataSeriesGroup | ( | ) |
Definition at line 126 of file VSeriesPlotter.cxx.
void chart::VDataSeriesGroup::addSeries | ( | std::unique_ptr< VDataSeries > | pSeries | ) |
Definition at line 136 of file VSeriesPlotter.cxx.
References m_aSeriesVector, and m_bMaxPointCountDirty.
Referenced by chart::VSeriesPlotter::addSeries().
void chart::VDataSeriesGroup::calculateYMinAndMaxForCategory | ( | sal_Int32 | nCategoryIndex, |
bool | bSeparateStackingForDifferentSigns, | ||
double & | rfMinimumY, | ||
double & | rfMaximumY, | ||
sal_Int32 | nAxisIndex | ||
) | const |
Definition at line 2111 of file VSeriesPlotter.cxx.
References getPointCount(), m_aListOfCachedYValues, m_aSeriesVector, chart::VDataSeriesGroup::CachedYValues::m_bValuesDirty, chart::VDataSeriesGroup::CachedYValues::m_fMaximumY, and chart::VDataSeriesGroup::CachedYValues::m_fMinimumY.
Referenced by calculateYMinAndMaxForCategoryRange().
void chart::VDataSeriesGroup::calculateYMinAndMaxForCategoryRange | ( | sal_Int32 | nStartCategoryIndex, |
sal_Int32 | nEndCategoryIndex, | ||
bool | bSeparateStackingForDifferentSigns, | ||
double & | rfMinimumY, | ||
double & | rfMaximumY, | ||
sal_Int32 | nAxisIndex | ||
) |
Definition at line 2199 of file VSeriesPlotter.cxx.
References calculateYMinAndMaxForCategory(), and getPointCount().
void chart::VDataSeriesGroup::deleteSeries | ( | ) |
Definition at line 130 of file VSeriesPlotter.cxx.
References m_aSeriesVector.
sal_Int32 chart::VDataSeriesGroup::getAttachedAxisIndexForFirstSeries | ( | ) | const |
Definition at line 1900 of file VSeriesPlotter.cxx.
References m_aSeriesVector.
void chart::VDataSeriesGroup::getMinimumAndMaximumX | ( | double & | rfMinimum, |
double & | rfMaximum | ||
) | const |
Definition at line 1910 of file VSeriesPlotter.cxx.
References m_aSeriesVector.
void chart::VDataSeriesGroup::getMinimumAndMaximumYInContinuousXRange | ( | double & | rfMinY, |
double & | rfMaxY, | ||
double | fMinX, | ||
double | fMaxX, | ||
sal_Int32 | nAxisIndex | ||
) | const |
Definition at line 2070 of file VSeriesPlotter.cxx.
References i, m_aSeriesVector, and n.
sal_Int32 chart::VDataSeriesGroup::getPointCount | ( | ) | const |
Definition at line 1880 of file VSeriesPlotter.cxx.
References m_aListOfCachedYValues, m_aSeriesVector, m_bMaxPointCountDirty, and m_nMaxPointCount.
Referenced by calculateYMinAndMaxForCategory(), and calculateYMinAndMaxForCategoryRange().
sal_Int32 chart::VDataSeriesGroup::getSeriesCount | ( | ) | const |
Definition at line 142 of file VSeriesPlotter.cxx.
References m_aSeriesVector.
Referenced by chart::VSeriesPlotter::addSeries().
|
mutableprivate |
Definition at line 115 of file VSeriesPlotter.hxx.
Referenced by calculateYMinAndMaxForCategory(), and getPointCount().
std::vector< std::unique_ptr<VDataSeries> > chart::VDataSeriesGroup::m_aSeriesVector |
Definition at line 99 of file VSeriesPlotter.hxx.
Referenced by addSeries(), calculateYMinAndMaxForCategory(), deleteSeries(), chart::BarChart::doXSlot(), getAttachedAxisIndexForFirstSeries(), getMinimumAndMaximumX(), getMinimumAndMaximumYInContinuousXRange(), getPointCount(), getSeriesCount(), chart::VSeriesPlotter::getSeriesNames(), and VDataSeriesGroup().
|
mutableprivate |
Definition at line 112 of file VSeriesPlotter.hxx.
Referenced by addSeries(), and getPointCount().
|
mutableprivate |
Definition at line 113 of file VSeriesPlotter.hxx.
Referenced by getPointCount().