LibreOffice Module chart2 (master) 1
|
#include <Tickmarks_Equidistant.hxx>
Public Member Functions | |
EquidistantTickFactory (ExplicitScaleData aScale, ExplicitIncrementData aIncrement) | |
~EquidistantTickFactory () | |
void | getAllTicks (TickInfoArraysType &rAllTickInfos) const |
void | getAllTicksShifted (TickInfoArraysType &rAllTickInfos) const |
Static Public Member Functions | |
static double | getMinimumAtIncrement (double fMin, const ExplicitIncrementData &rIncrement) |
static double | getMaximumAtIncrement (double fMax, const ExplicitIncrementData &rIncrement) |
Private Member Functions | |
void | addSubTicks (sal_Int32 nDepth, css::uno::Sequence< css::uno::Sequence< double > > &rParentTicks) const |
double * | getMajorTick (sal_Int32 nTick) const |
double * | getMinorTick (sal_Int32 nTick, sal_Int32 nDepth, double fStartParentTick, double fNextParentTick) const |
sal_Int32 | getMaxTickCount (sal_Int32 nDepth) const |
sal_Int32 | getTickDepth () const |
bool | isVisible (double fValue) const |
bool | isWithinOuterBorder (double fScaledValue) const |
Private Attributes | |
ExplicitScaleData | m_rScale |
ExplicitIncrementData | m_rIncrement |
css::uno::Reference< css::chart2::XScaling > | m_xInverseScaling |
double | m_fScaledVisibleMin |
double | m_fScaledVisibleMax |
std::unique_ptr< double[]> | m_pfCurrentValues |
double | m_fOuterMajorTickBorderMin |
double | m_fOuterMajorTickBorderMax |
double | m_fOuterMajorTickBorderMin_Scaled |
double | m_fOuterMajorTickBorderMax_Scaled |
Definition at line 100 of file Tickmarks_Equidistant.hxx.
chart::EquidistantTickFactory::EquidistantTickFactory | ( | ExplicitScaleData | aScale, |
ExplicitIncrementData | aIncrement | ||
) |
Definition at line 73 of file Tickmarks_Equidistant.cxx.
References chart::ExplicitIncrementData::Distance, getMaximumAtIncrement(), getMinimumAtIncrement(), getTickDepth(), m_fOuterMajorTickBorderMax, m_fOuterMajorTickBorderMax_Scaled, m_fOuterMajorTickBorderMin, m_fOuterMajorTickBorderMin_Scaled, m_fScaledVisibleMax, m_fScaledVisibleMin, m_pfCurrentValues, m_rIncrement, m_rScale, m_xInverseScaling, chart::ExplicitScaleData::Maximum, chart::ExplicitScaleData::Minimum, chart::ExplicitIncrementData::PostEquidistant, and chart::ExplicitScaleData::Scaling.
Referenced by getAllTicksShifted().
chart::EquidistantTickFactory::~EquidistantTickFactory | ( | ) |
Definition at line 129 of file Tickmarks_Equidistant.cxx.
|
private |
Definition at line 138 of file Tickmarks_Equidistant.cxx.
References addSubTicks(), chart::EquidistantTickIter::firstValue(), getMaxTickCount(), getMinorTick(), m_rIncrement, chart::EquidistantTickIter::nextValue(), and chart::ExplicitIncrementData::SubIncrements.
Referenced by addSubTicks(), and getAllTicks().
void chart::EquidistantTickFactory::getAllTicks | ( | TickInfoArraysType & | rAllTickInfos | ) | const |
Definition at line 312 of file Tickmarks_Equidistant.cxx.
References addSubTicks(), chart::TickInfo::fScaledTickValue, getMajorTick(), getMaxTickCount(), getTickDepth(), isVisible(), m_rIncrement, m_xInverseScaling, nCount, and chart::ExplicitIncrementData::SubIncrements.
Referenced by chart::TickFactory::getAllTicks().
void chart::EquidistantTickFactory::getAllTicksShifted | ( | TickInfoArraysType & | rAllTickInfos | ) | const |
Definition at line 408 of file Tickmarks_Equidistant.cxx.
References chart::ExplicitIncrementData::BaseValue, chart::ExplicitIncrementData::Distance, EquidistantTickFactory(), m_rIncrement, and m_rScale.
Referenced by chart::TickFactory::getAllTicksShifted().
|
private |
Definition at line 222 of file Tickmarks_Equidistant.cxx.
References chart::ExplicitIncrementData::Distance, m_fOuterMajorTickBorderMax, m_fOuterMajorTickBorderMin, m_pfCurrentValues, m_rIncrement, m_rScale, m_xInverseScaling, chart::ExplicitIncrementData::PostEquidistant, and chart::ExplicitScaleData::Scaling.
Referenced by getAllTicks().
|
static |
Definition at line 54 of file Tickmarks_Equidistant.cxx.
References chart::ExplicitIncrementData::BaseValue, and chart::ExplicitIncrementData::Distance.
Referenced by chart::ScaleAutomatism::calculateExplicitIncrementAndScaleForCategory(), chart::ScaleAutomatism::calculateExplicitIncrementAndScaleForLinear(), chart::ScaleAutomatism::calculateExplicitIncrementAndScaleForLogarithmic(), and EquidistantTickFactory().
|
private |
Definition at line 179 of file Tickmarks_Equidistant.cxx.
References chart::ExplicitIncrementData::Distance, getTickDepth(), m_fOuterMajorTickBorderMax, m_fOuterMajorTickBorderMin, m_fScaledVisibleMax, m_fScaledVisibleMin, m_rIncrement, m_rScale, chart::ExplicitScaleData::Maximum, chart::ExplicitScaleData::Minimum, chart::ExplicitIncrementData::PostEquidistant, and chart::ExplicitIncrementData::SubIncrements.
Referenced by addSubTicks(), and getAllTicks().
|
static |
Definition at line 35 of file Tickmarks_Equidistant.cxx.
References chart::ExplicitIncrementData::BaseValue, and chart::ExplicitIncrementData::Distance.
Referenced by chart::ScaleAutomatism::calculateExplicitIncrementAndScaleForCategory(), chart::ScaleAutomatism::calculateExplicitIncrementAndScaleForLinear(), chart::ScaleAutomatism::calculateExplicitIncrementAndScaleForLogarithmic(), and EquidistantTickFactory().
|
private |
Definition at line 244 of file Tickmarks_Equidistant.cxx.
References isWithinOuterBorder(), m_pfCurrentValues, m_rIncrement, m_rScale, m_xInverseScaling, chart::ExplicitScaleData::Scaling, and chart::ExplicitIncrementData::SubIncrements.
Referenced by addSubTicks().
|
private |
Definition at line 133 of file Tickmarks_Equidistant.cxx.
References m_rIncrement, and chart::ExplicitIncrementData::SubIncrements.
Referenced by EquidistantTickFactory(), getAllTicks(), and getMaxTickCount().
|
private |
Definition at line 297 of file Tickmarks_Equidistant.cxx.
References m_fScaledVisibleMax, and m_fScaledVisibleMin.
Referenced by getAllTicks().
|
private |
Definition at line 287 of file Tickmarks_Equidistant.cxx.
References m_fOuterMajorTickBorderMax_Scaled, and m_fOuterMajorTickBorderMin_Scaled.
Referenced by getMinorTick().
|
private |
Definition at line 139 of file Tickmarks_Equidistant.hxx.
Referenced by EquidistantTickFactory(), getMajorTick(), and getMaxTickCount().
|
private |
Definition at line 141 of file Tickmarks_Equidistant.hxx.
Referenced by EquidistantTickFactory(), and isWithinOuterBorder().
|
private |
Definition at line 138 of file Tickmarks_Equidistant.hxx.
Referenced by EquidistantTickFactory(), getMajorTick(), and getMaxTickCount().
|
private |
Definition at line 140 of file Tickmarks_Equidistant.hxx.
Referenced by EquidistantTickFactory(), and isWithinOuterBorder().
|
private |
Definition at line 133 of file Tickmarks_Equidistant.hxx.
Referenced by EquidistantTickFactory(), getMaxTickCount(), and isVisible().
|
private |
Definition at line 132 of file Tickmarks_Equidistant.hxx.
Referenced by EquidistantTickFactory(), getMaxTickCount(), and isVisible().
|
private |
Definition at line 136 of file Tickmarks_Equidistant.hxx.
Referenced by EquidistantTickFactory(), getMajorTick(), and getMinorTick().
|
private |
Definition at line 128 of file Tickmarks_Equidistant.hxx.
Referenced by addSubTicks(), EquidistantTickFactory(), getAllTicks(), getAllTicksShifted(), getMajorTick(), getMaxTickCount(), getMinorTick(), and getTickDepth().
|
private |
Definition at line 127 of file Tickmarks_Equidistant.hxx.
Referenced by EquidistantTickFactory(), getAllTicksShifted(), getMajorTick(), getMaxTickCount(), and getMinorTick().
|
private |
Definition at line 129 of file Tickmarks_Equidistant.hxx.
Referenced by EquidistantTickFactory(), getAllTicks(), getMajorTick(), and getMinorTick().