LibreOffice Module chart2 (master) 1
|
#include <Tickmarks.hxx>
Public Member Functions | |
TickFactory2D (const ExplicitScaleData &rScale, const ExplicitIncrementData &rIncrement, const ::basegfx::B2DVector &rStartScreenPos, const ::basegfx::B2DVector &rEndScreenPos, const ::basegfx::B2DVector &rAxisLineToLabelLineShift) | |
virtual | ~TickFactory2D () override |
void | createPointSequenceForAxisMainLine (css::drawing::PointSequenceSequence &rPoints) const |
void | addPointSequenceForTickLine (css::drawing::PointSequenceSequence &rPoints, sal_Int32 nSequenceIndex, double fScaledLogicTickValue, double fInnerDirectionSign, const TickmarkProperties &rTickmarkProperties, bool bPlaceAtLabels) const |
::basegfx::B2DVector | getDistanceAxisTickToText (const AxisProperties &rAxisProperties, bool bIncludeFarAwayDistanceIfSo=false, bool bIncludeSpaceBetweenTickAndText=true) const |
void | updateScreenValues (TickInfoArraysType &rAllTickInfos) const |
Determine the screen positions of all ticks based on their numeric values. More... | |
bool | isHorizontalAxis () const |
bool | isVerticalAxis () const |
const ::basegfx::B2DVector & | getXaxisStartPos () const |
const ::basegfx::B2DVector & | getXaxisEndPos () const |
Public Member Functions inherited from chart::TickFactory | |
TickFactory (ExplicitScaleData aScale, ExplicitIncrementData aIncrement) | |
virtual | ~TickFactory () |
void | getAllTicks (TickInfoArraysType &rAllTickInfos) const |
void | getAllTicksShifted (TickInfoArraysType &rAllTickInfos) const |
Static Public Member Functions | |
static sal_Int32 | getTickScreenDistance (TickIter &rIter) |
Private Member Functions | |
::basegfx::B2DVector | getTickScreenPosition2D (double fScaledLogicTickValue) const |
Additional Inherited Members | |
Protected Attributes inherited from chart::TickFactory | |
ExplicitScaleData | m_rScale |
ExplicitIncrementData | m_rIncrement |
css::uno::Reference< css::chart2::XScaling > | m_xInverseScaling |
double | m_fScaledVisibleMin |
double | m_fScaledVisibleMax |
Definition at line 106 of file Tickmarks.hxx.
chart::TickFactory2D::TickFactory2D | ( | const ExplicitScaleData & | rScale, |
const ExplicitIncrementData & | rIncrement, | ||
const ::basegfx::B2DVector & | rStartScreenPos, | ||
const ::basegfx::B2DVector & | rEndScreenPos, | ||
const ::basegfx::B2DVector & | rAxisLineToLabelLineShift | ||
) |
Definition at line 136 of file Tickmarks.cxx.
References m_aAxisEndScreenPosition2D, m_aAxisStartScreenPosition2D, m_fOffset_LogicToScreen, chart::TickFactory::m_fScaledVisibleMax, chart::TickFactory::m_fScaledVisibleMin, m_fStretch_LogicToScreen, chart::TickFactory::m_rScale, and chart::ExplicitScaleData::Orientation.
|
overridevirtual |
Definition at line 165 of file Tickmarks.cxx.
void chart::TickFactory2D::addPointSequenceForTickLine | ( | css::drawing::PointSequenceSequence & | rPoints, |
sal_Int32 | nSequenceIndex, | ||
double | fScaledLogicTickValue, | ||
double | fInnerDirectionSign, | ||
const TickmarkProperties & | rTickmarkProperties, | ||
bool | bPlaceAtLabels | ||
) | const |
Definition at line 215 of file Tickmarks.cxx.
References getTickScreenPosition2D(), chart::TickmarkProperties::Length, m_aAxisEndScreenPosition2D, m_aAxisLineToLabelLineShift, m_aAxisStartScreenPosition2D, basegfx::B2DVector::normalize(), and chart::TickmarkProperties::RelativePos.
Referenced by chart::VCartesianAxis::createTickMarkLineShapes().
void chart::TickFactory2D::createPointSequenceForAxisMainLine | ( | css::drawing::PointSequenceSequence & | rPoints | ) | const |
Definition at line 295 of file Tickmarks.cxx.
References basegfx::Tuple2D< typename TYPE >::getX(), basegfx::Tuple2D< typename TYPE >::getY(), m_aAxisEndScreenPosition2D, and m_aAxisStartScreenPosition2D.
B2DVector chart::TickFactory2D::getDistanceAxisTickToText | ( | const AxisProperties & | rAxisProperties, |
bool | bIncludeFarAwayDistanceIfSo = false , |
||
bool | bIncludeSpaceBetweenTickAndText = true |
||
) | const |
Definition at line 242 of file Tickmarks.cxx.
References chart::AXIS2D_TICKLABELSPACING, chart::AxisProperties::getBiggestTickmarkProperties(), chart::TickmarkProperties::Length, m_aAxisEndScreenPosition2D, m_aAxisLineToLabelLineShift, m_aAxisStartScreenPosition2D, chart::AxisProperties::m_aTickmarkPropertiesList, chart::AxisProperties::m_eLabelPos, chart::AxisProperties::maLabelAlignment, chart::AxisLabelAlignment::mfInnerTickDirection, chart::AxisLabelAlignment::mfLabelDirection, basegfx::B2DVector::normalize(), and chart::TickmarkProperties::RelativePos.
Referenced by chart::VCartesianAxis::createShapes(), chart::VCartesianAxis::createTextShapes(), chart::VCartesianAxis::createTextShapesSimple(), chart::VCartesianAxis::doStaggeringOfLabels(), and chart::VCartesianAxis::updatePositions().
|
static |
Definition at line 194 of file Tickmarks.cxx.
References chart::TickIter::firstInfo(), chart::TickInfo::getScreenDistanceBetweenTicks(), and chart::TickIter::nextInfo().
|
private |
Definition at line 207 of file Tickmarks.cxx.
References m_aAxisEndScreenPosition2D, m_aAxisStartScreenPosition2D, m_fOffset_LogicToScreen, and m_fStretch_LogicToScreen.
Referenced by addPointSequenceForTickLine(), and updateScreenValues().
|
inline |
Definition at line 141 of file Tickmarks.hxx.
References m_aAxisEndScreenPosition2D.
Referenced by chart::VCartesianAxis::createTextShapes().
|
inline |
Definition at line 136 of file Tickmarks.hxx.
References m_aAxisStartScreenPosition2D.
Referenced by chart::VCartesianAxis::createTextShapes().
bool chart::TickFactory2D::isHorizontalAxis | ( | ) | const |
Definition at line 169 of file Tickmarks.cxx.
References basegfx::Tuple2D< typename TYPE >::getX(), basegfx::Tuple2D< typename TYPE >::getY(), m_aAxisEndScreenPosition2D, and m_aAxisStartScreenPosition2D.
Referenced by chart::VCartesianAxis::createMaximumLabels(), chart::VCartesianAxis::createTextShapes(), chart::VCartesianAxis::createTextShapesSimple(), and chart::VCartesianAxis::updatePositions().
bool chart::TickFactory2D::isVerticalAxis | ( | ) | const |
Definition at line 181 of file Tickmarks.cxx.
References basegfx::Tuple2D< typename TYPE >::getX(), basegfx::Tuple2D< typename TYPE >::getY(), m_aAxisEndScreenPosition2D, and m_aAxisStartScreenPosition2D.
Referenced by chart::VCartesianAxis::createMaximumLabels(), chart::VCartesianAxis::createTextShapes(), and chart::VCartesianAxis::createTextShapesSimple().
void chart::TickFactory2D::updateScreenValues | ( | TickInfoArraysType & | rAllTickInfos | ) | const |
Determine the screen positions of all ticks based on their numeric values.
Definition at line 303 of file Tickmarks.cxx.
References getTickScreenPosition2D().
Referenced by chart::VCartesianAxis::createLabels(), chart::VCartesianAxis::createMaximumLabels(), chart::VCartesianAxis::createShapes(), and chart::VCartesianAxis::updatePositions().
|
private |
Definition at line 150 of file Tickmarks.hxx.
Referenced by addPointSequenceForTickLine(), createPointSequenceForAxisMainLine(), getDistanceAxisTickToText(), getTickScreenPosition2D(), getXaxisEndPos(), isHorizontalAxis(), isVerticalAxis(), and TickFactory2D().
|
private |
Definition at line 154 of file Tickmarks.hxx.
Referenced by addPointSequenceForTickLine(), and getDistanceAxisTickToText().
|
private |
Definition at line 149 of file Tickmarks.hxx.
Referenced by addPointSequenceForTickLine(), createPointSequenceForAxisMainLine(), getDistanceAxisTickToText(), getTickScreenPosition2D(), getXaxisStartPos(), isHorizontalAxis(), isVerticalAxis(), and TickFactory2D().
|
private |
Definition at line 157 of file Tickmarks.hxx.
Referenced by getTickScreenPosition2D(), and TickFactory2D().
|
private |
Definition at line 156 of file Tickmarks.hxx.
Referenced by getTickScreenPosition2D(), and TickFactory2D().