LibreOffice Module chart2 (master) 1
Classes | Public Member Functions | Public Attributes | Private Types | Private Attributes | List of all members
chart::VDataSeriesGroup Class Referencefinal

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, CachedYValuestCachedYValuesPerAxisIndexMap
 

Private Attributes

bool m_bMaxPointCountDirty
 
sal_Int32 m_nMaxPointCount
 
std::vector< tCachedYValuesPerAxisIndexMapm_aListOfCachedYValues
 

Detailed Description

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.

Member Typedef Documentation

◆ tCachedYValuesPerAxisIndexMap

Definition at line 114 of file VSeriesPlotter.hxx.

Constructor & Destructor Documentation

◆ VDataSeriesGroup() [1/3]

chart::VDataSeriesGroup::VDataSeriesGroup ( )
delete

◆ VDataSeriesGroup() [2/3]

chart::VDataSeriesGroup::VDataSeriesGroup ( std::unique_ptr< VDataSeries pSeries)

Definition at line 110 of file VSeriesPlotter.cxx.

References m_aSeriesVector.

◆ VDataSeriesGroup() [3/3]

chart::VDataSeriesGroup::VDataSeriesGroup ( VDataSeriesGroup &&  other)
noexcept

Definition at line 118 of file VSeriesPlotter.cxx.

◆ ~VDataSeriesGroup()

chart::VDataSeriesGroup::~VDataSeriesGroup ( )

Definition at line 126 of file VSeriesPlotter.cxx.

Member Function Documentation

◆ addSeries()

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().

◆ calculateYMinAndMaxForCategory()

void chart::VDataSeriesGroup::calculateYMinAndMaxForCategory ( sal_Int32  nCategoryIndex,
bool  bSeparateStackingForDifferentSigns,
double &  rfMinimumY,
double &  rfMaximumY,
sal_Int32  nAxisIndex 
) const

◆ 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().

◆ deleteSeries()

void chart::VDataSeriesGroup::deleteSeries ( )

Definition at line 130 of file VSeriesPlotter.cxx.

References m_aSeriesVector.

◆ getAttachedAxisIndexForFirstSeries()

sal_Int32 chart::VDataSeriesGroup::getAttachedAxisIndexForFirstSeries ( ) const

Definition at line 1900 of file VSeriesPlotter.cxx.

References m_aSeriesVector.

◆ getMinimumAndMaximumX()

void chart::VDataSeriesGroup::getMinimumAndMaximumX ( double &  rfMinimum,
double &  rfMaximum 
) const

Definition at line 1910 of file VSeriesPlotter.cxx.

References m_aSeriesVector.

◆ getMinimumAndMaximumYInContinuousXRange()

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.

◆ getPointCount()

sal_Int32 chart::VDataSeriesGroup::getPointCount ( ) const

◆ getSeriesCount()

sal_Int32 chart::VDataSeriesGroup::getSeriesCount ( ) const

Definition at line 142 of file VSeriesPlotter.cxx.

References m_aSeriesVector.

Referenced by chart::VSeriesPlotter::addSeries().

Member Data Documentation

◆ m_aListOfCachedYValues

std::vector< tCachedYValuesPerAxisIndexMap > chart::VDataSeriesGroup::m_aListOfCachedYValues
mutableprivate

Definition at line 115 of file VSeriesPlotter.hxx.

Referenced by calculateYMinAndMaxForCategory(), and getPointCount().

◆ m_aSeriesVector

std::vector< std::unique_ptr<VDataSeries> > chart::VDataSeriesGroup::m_aSeriesVector

◆ m_bMaxPointCountDirty

bool chart::VDataSeriesGroup::m_bMaxPointCountDirty
mutableprivate

Definition at line 112 of file VSeriesPlotter.hxx.

Referenced by addSeries(), and getPointCount().

◆ m_nMaxPointCount

sal_Int32 chart::VDataSeriesGroup::m_nMaxPointCount
mutableprivate

Definition at line 113 of file VSeriesPlotter.hxx.

Referenced by getPointCount().


The documentation for this class was generated from the following files: