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

#include <Tickmarks.hxx>

Inheritance diagram for chart::TickFactory2D:
[legend]
Collaboration diagram for chart::TickFactory2D:
[legend]

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::B2DVectorgetXaxisStartPos () const
 
const ::basegfx::B2DVectorgetXaxisEndPos () 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
 

Private Attributes

::basegfx::B2DVector m_aAxisStartScreenPosition2D
 
::basegfx::B2DVector m_aAxisEndScreenPosition2D
 
::basegfx::B2DVector m_aAxisLineToLabelLineShift
 
double m_fStretch_LogicToScreen
 
double m_fOffset_LogicToScreen
 

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
 

Detailed Description

Definition at line 106 of file Tickmarks.hxx.

Constructor & Destructor Documentation

◆ TickFactory2D()

chart::TickFactory2D::TickFactory2D ( const ExplicitScaleData rScale,
const ExplicitIncrementData rIncrement,
const ::basegfx::B2DVector rStartScreenPos,
const ::basegfx::B2DVector rEndScreenPos,
const ::basegfx::B2DVector rAxisLineToLabelLineShift 
)

◆ ~TickFactory2D()

chart::TickFactory2D::~TickFactory2D ( )
overridevirtual

Definition at line 165 of file Tickmarks.cxx.

Member Function Documentation

◆ addPointSequenceForTickLine()

void chart::TickFactory2D::addPointSequenceForTickLine ( css::drawing::PointSequenceSequence &  rPoints,
sal_Int32  nSequenceIndex,
double  fScaledLogicTickValue,
double  fInnerDirectionSign,
const TickmarkProperties rTickmarkProperties,
bool  bPlaceAtLabels 
) const

◆ createPointSequenceForAxisMainLine()

void chart::TickFactory2D::createPointSequenceForAxisMainLine ( css::drawing::PointSequenceSequence &  rPoints) const

◆ getDistanceAxisTickToText()

B2DVector chart::TickFactory2D::getDistanceAxisTickToText ( const AxisProperties rAxisProperties,
bool  bIncludeFarAwayDistanceIfSo = false,
bool  bIncludeSpaceBetweenTickAndText = true 
) const

◆ getTickScreenDistance()

sal_Int32 chart::TickFactory2D::getTickScreenDistance ( TickIter rIter)
static

◆ getTickScreenPosition2D()

B2DVector chart::TickFactory2D::getTickScreenPosition2D ( double  fScaledLogicTickValue) const
private

◆ getXaxisEndPos()

const ::basegfx::B2DVector & chart::TickFactory2D::getXaxisEndPos ( ) const
inline

Definition at line 141 of file Tickmarks.hxx.

References m_aAxisEndScreenPosition2D.

Referenced by chart::VCartesianAxis::createTextShapes().

◆ getXaxisStartPos()

const ::basegfx::B2DVector & chart::TickFactory2D::getXaxisStartPos ( ) const
inline

Definition at line 136 of file Tickmarks.hxx.

References m_aAxisStartScreenPosition2D.

Referenced by chart::VCartesianAxis::createTextShapes().

◆ isHorizontalAxis()

bool chart::TickFactory2D::isHorizontalAxis ( ) const

◆ isVerticalAxis()

bool chart::TickFactory2D::isVerticalAxis ( ) const

◆ updateScreenValues()

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

Member Data Documentation

◆ m_aAxisEndScreenPosition2D

::basegfx::B2DVector chart::TickFactory2D::m_aAxisEndScreenPosition2D
private

◆ m_aAxisLineToLabelLineShift

::basegfx::B2DVector chart::TickFactory2D::m_aAxisLineToLabelLineShift
private

Definition at line 154 of file Tickmarks.hxx.

Referenced by addPointSequenceForTickLine(), and getDistanceAxisTickToText().

◆ m_aAxisStartScreenPosition2D

::basegfx::B2DVector chart::TickFactory2D::m_aAxisStartScreenPosition2D
private

◆ m_fOffset_LogicToScreen

double chart::TickFactory2D::m_fOffset_LogicToScreen
private

Definition at line 157 of file Tickmarks.hxx.

Referenced by getTickScreenPosition2D(), and TickFactory2D().

◆ m_fStretch_LogicToScreen

double chart::TickFactory2D::m_fStretch_LogicToScreen
private

Definition at line 156 of file Tickmarks.hxx.

Referenced by getTickScreenPosition2D(), and TickFactory2D().


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