LibreOffice Module chart2 (master) 1
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
chart::PlottingPositionHelper Class Reference

#include <PlottingPositionHelper.hxx>

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

Public Member Functions

 PlottingPositionHelper ()
 
 PlottingPositionHelper (const PlottingPositionHelper &rSource)
 
virtual ~PlottingPositionHelper ()
 
virtual std::unique_ptr< PlottingPositionHelperclone () const
 
std::unique_ptr< PlottingPositionHelpercreateSecondaryPosHelper (const ExplicitScaleData &rSecondaryScale)
 
virtual void setTransformationSceneToScreen (const css::drawing::HomogenMatrix &rMatrix)
 
virtual void setScales (std::vector< ExplicitScaleData > &&rScales, bool bSwapXAndYAxis)
 
const std::vector< ExplicitScaleData > & getScales () const
 
void setCoordinateSystemResolution (const css::uno::Sequence< sal_Int32 > &rCoordinateSystemResolution)
 
bool isSameForGivenResolution (double fX, double fY, double fZ, double fX2, double fY2, double fZ2)
 
bool isStrongLowerRequested (sal_Int32 nDimensionIndex) const
 
bool isLogicVisible (double fX, double fY, double fZ) const
 
void doLogicScaling (double *pX, double *pY, double *pZ) const
 
void doUnshiftedLogicScaling (double *pX, double *pY, double *pZ) const
 
void clipLogicValues (double *pX, double *pY, double *pZ) const
 
void clipScaledLogicValues (double *pX, double *pY, double *pZ) const
 
bool clipYRange (double &rMin, double &rMax) const
 
void doLogicScaling (css::drawing::Position3D &rPos) const
 
virtual ::chart::XTransformation2getTransformationScaledLogicToScene () const
 
virtual css::drawing::Position3D transformLogicToScene (double fX, double fY, double fZ, bool bClip) const
 
virtual css::drawing::Position3D transformScaledLogicToScene (double fX, double fY, double fZ, bool bClip) const
 
void transformScaledLogicToScene (css::drawing::PolyPolygonShape3D &rPoly) const
 
void transformScaledLogicToScene (std::vector< std::vector< css::drawing::Position3D > > &rPoly) const
 
double getLogicMinX () const
 
double getLogicMinY () const
 
double getLogicMinZ () const
 
double getLogicMaxX () const
 
double getLogicMaxY () const
 
double getLogicMaxZ () const
 
bool isMathematicalOrientationX () const
 
bool isMathematicalOrientationY () const
 
bool isMathematicalOrientationZ () const
 
::basegfx::B2DRectangle getScaledLogicClipDoubleRect () const
 
css::drawing::Direction3D getScaledLogicWidth () const
 
bool isSwapXAndY () const
 
bool isPercentY () const
 
double getBaseValueY () const
 
bool maySkipPointsInRegressionCalculation () const
 
void setTimeResolution (tools::Long nTimeResolution, const Date &rNullDate)
 
virtual void setScaledCategoryWidth (double fScaledCategoryWidth)
 
void AllowShiftXAxisPos (bool bAllowShift)
 
void AllowShiftZAxisPos (bool bAllowShift)
 

Static Public Member Functions

static css::awt::Point transformSceneToScreenPosition (const css::drawing::Position3D &rScenePosition3D, const rtl::Reference< SvxShapeGroupAnyD > &xSceneTarget, sal_Int32 nDimensionCount)
 

Protected Attributes

std::vector< ExplicitScaleDatam_aScales
 
::basegfx::B3DHomMatrix m_aMatrixScreenToScene
 
std::unique_ptr< ::chart::XTransformation2m_xTransformationLogicToScene
 
bool m_bSwapXAndY
 
sal_Int32 m_nXResolution
 
sal_Int32 m_nYResolution
 
sal_Int32 m_nZResolution
 
bool m_bMaySkipPointsInRegressionCalculation
 
bool m_bDateAxis
 
tools::Long m_nTimeResolution
 
Date m_aNullDate
 
double m_fScaledCategoryWidth
 
bool m_bAllowShiftXAxisPos
 
bool m_bAllowShiftZAxisPos
 

Detailed Description

Definition at line 85 of file PlottingPositionHelper.hxx.

Constructor & Destructor Documentation

◆ PlottingPositionHelper() [1/2]

chart::PlottingPositionHelper::PlottingPositionHelper ( )

Definition at line 41 of file PlottingPositionHelper.cxx.

References DAY.

◆ PlottingPositionHelper() [2/2]

chart::PlottingPositionHelper::PlottingPositionHelper ( const PlottingPositionHelper rSource)

Definition at line 55 of file PlottingPositionHelper.cxx.

◆ ~PlottingPositionHelper()

chart::PlottingPositionHelper::~PlottingPositionHelper ( )
virtual

Definition at line 73 of file PlottingPositionHelper.cxx.

Member Function Documentation

◆ AllowShiftXAxisPos()

void chart::PlottingPositionHelper::AllowShiftXAxisPos ( bool  bAllowShift)

◆ AllowShiftZAxisPos()

void chart::PlottingPositionHelper::AllowShiftZAxisPos ( bool  bAllowShift)

◆ clipLogicValues()

void chart::PlottingPositionHelper::clipLogicValues ( double *  pX,
double *  pY,
double *  pZ 
) const
inline

◆ clipScaledLogicValues()

void chart::PlottingPositionHelper::clipScaledLogicValues ( double *  pX,
double *  pY,
double *  pZ 
) const

◆ clipYRange()

bool chart::PlottingPositionHelper::clipYRange ( double &  rMin,
double &  rMax 
) const
inline

Definition at line 399 of file PlottingPositionHelper.hxx.

References getLogicMaxY(), and getLogicMinY().

Referenced by chart::BarChart::doXSlot().

◆ clone()

std::unique_ptr< PlottingPositionHelper > chart::PlottingPositionHelper::clone ( ) const
virtual

◆ createSecondaryPosHelper()

std::unique_ptr< PlottingPositionHelper > chart::PlottingPositionHelper::createSecondaryPosHelper ( const ExplicitScaleData rSecondaryScale)

Definition at line 83 of file PlottingPositionHelper.cxx.

References clone().

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

◆ doLogicScaling() [1/2]

void chart::PlottingPositionHelper::doLogicScaling ( css::drawing::Position3D &  rPos) const
inline

Definition at line 369 of file PlottingPositionHelper.hxx.

References doLogicScaling().

◆ doLogicScaling() [2/2]

void chart::PlottingPositionHelper::doLogicScaling ( double *  pX,
double *  pY,
double *  pZ 
) const
inline

◆ doUnshiftedLogicScaling()

void chart::PlottingPositionHelper::doUnshiftedLogicScaling ( double *  pX,
double *  pY,
double *  pZ 
) const
inline

Definition at line 359 of file PlottingPositionHelper.hxx.

References m_aScales.

Referenced by clipScaledLogicValues(), and getScaledLogicClipDoubleRect().

◆ getBaseValueY()

double chart::PlottingPositionHelper::getBaseValueY ( ) const

◆ getLogicMaxX()

double chart::PlottingPositionHelper::getLogicMaxX ( ) const
inline

◆ getLogicMaxY()

double chart::PlottingPositionHelper::getLogicMaxY ( ) const
inline

◆ getLogicMaxZ()

double chart::PlottingPositionHelper::getLogicMaxZ ( ) const
inline

◆ getLogicMinX()

double chart::PlottingPositionHelper::getLogicMinX ( ) const
inline

◆ getLogicMinY()

double chart::PlottingPositionHelper::getLogicMinY ( ) const
inline

◆ getLogicMinZ()

double chart::PlottingPositionHelper::getLogicMinZ ( ) const
inline

◆ getScaledLogicClipDoubleRect()

basegfx::B2DRectangle chart::PlottingPositionHelper::getScaledLogicClipDoubleRect ( ) const

◆ getScaledLogicWidth()

drawing::Direction3D chart::PlottingPositionHelper::getScaledLogicWidth ( ) const

◆ getScales()

const std::vector< ExplicitScaleData > & chart::PlottingPositionHelper::getScales ( ) const
inline

Definition at line 98 of file PlottingPositionHelper.hxx.

References m_aScales.

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

◆ getTransformationScaledLogicToScene()

chart::XTransformation2 * chart::PlottingPositionHelper::getTransformationScaledLogicToScene ( ) const

◆ isLogicVisible()

bool chart::PlottingPositionHelper::isLogicVisible ( double  fX,
double  fY,
double  fZ 
) const
inline

◆ isMathematicalOrientationX()

bool chart::PlottingPositionHelper::isMathematicalOrientationX ( ) const
inline

Definition at line 440 of file PlottingPositionHelper.hxx.

References m_aScales.

◆ isMathematicalOrientationY()

bool chart::PlottingPositionHelper::isMathematicalOrientationY ( ) const
inline

◆ isMathematicalOrientationZ()

bool chart::PlottingPositionHelper::isMathematicalOrientationZ ( ) const
inline

Definition at line 448 of file PlottingPositionHelper.hxx.

References m_aScales.

◆ isPercentY()

bool chart::PlottingPositionHelper::isPercentY ( ) const

◆ isSameForGivenResolution()

bool chart::PlottingPositionHelper::isSameForGivenResolution ( double  fX,
double  fY,
double  fZ,
double  fX2,
double  fY2,
double  fZ2 
)
inline

◆ isStrongLowerRequested()

bool chart::PlottingPositionHelper::isStrongLowerRequested ( sal_Int32  nDimensionIndex) const
inline

◆ isSwapXAndY()

bool chart::PlottingPositionHelper::isSwapXAndY ( ) const
inline

◆ maySkipPointsInRegressionCalculation()

bool chart::PlottingPositionHelper::maySkipPointsInRegressionCalculation ( ) const
inline

◆ setCoordinateSystemResolution()

void chart::PlottingPositionHelper::setCoordinateSystemResolution ( const css::uno::Sequence< sal_Int32 > &  rCoordinateSystemResolution)
inline

◆ setScaledCategoryWidth()

void chart::PlottingPositionHelper::setScaledCategoryWidth ( double  fScaledCategoryWidth)
virtual

Reimplemented in chart::BarPositionHelper.

Definition at line 689 of file PlottingPositionHelper.cxx.

References m_fScaledCategoryWidth.

Referenced by setTimeResolution().

◆ setScales()

void chart::PlottingPositionHelper::setScales ( std::vector< ExplicitScaleData > &&  rScales,
bool  bSwapXAndYAxis 
)
virtual

◆ setTimeResolution()

void chart::PlottingPositionHelper::setTimeResolution ( tools::Long  nTimeResolution,
const Date rNullDate 
)

◆ setTransformationSceneToScreen()

void chart::PlottingPositionHelper::setTransformationSceneToScreen ( const css::drawing::HomogenMatrix &  rMatrix)
virtual

◆ transformLogicToScene()

drawing::Position3D chart::PlottingPositionHelper::transformLogicToScene ( double  fX,
double  fY,
double  fZ,
bool  bClip 
) const
virtual

◆ transformScaledLogicToScene() [1/3]

void chart::PlottingPositionHelper::transformScaledLogicToScene ( css::drawing::PolyPolygonShape3D &  rPoly) const

◆ transformScaledLogicToScene() [2/3]

drawing::Position3D chart::PlottingPositionHelper::transformScaledLogicToScene ( double  fX,
double  fY,
double  fZ,
bool  bClip 
) const
virtual

◆ transformScaledLogicToScene() [3/3]

void chart::PlottingPositionHelper::transformScaledLogicToScene ( std::vector< std::vector< css::drawing::Position3D > > &  rPoly) const

Definition at line 239 of file PlottingPositionHelper.cxx.

References size, and transformScaledLogicToScene().

◆ transformSceneToScreenPosition()

awt::Point chart::PlottingPositionHelper::transformSceneToScreenPosition ( const css::drawing::Position3D &  rScenePosition3D,
const rtl::Reference< SvxShapeGroupAnyD > &  xSceneTarget,
sal_Int32  nDimensionCount 
)
static

Member Data Documentation

◆ m_aMatrixScreenToScene

::basegfx::B3DHomMatrix chart::PlottingPositionHelper::m_aMatrixScreenToScene
protected

◆ m_aNullDate

Date chart::PlottingPositionHelper::m_aNullDate
protected

◆ m_aScales

std::vector< ExplicitScaleData > chart::PlottingPositionHelper::m_aScales
protected

◆ m_bAllowShiftXAxisPos

bool chart::PlottingPositionHelper::m_bAllowShiftXAxisPos
protected

◆ m_bAllowShiftZAxisPos

bool chart::PlottingPositionHelper::m_bAllowShiftZAxisPos
protected

◆ m_bDateAxis

bool chart::PlottingPositionHelper::m_bDateAxis
protected

◆ m_bMaySkipPointsInRegressionCalculation

bool chart::PlottingPositionHelper::m_bMaySkipPointsInRegressionCalculation
protected

◆ m_bSwapXAndY

bool chart::PlottingPositionHelper::m_bSwapXAndY
protected

◆ m_fScaledCategoryWidth

double chart::PlottingPositionHelper::m_fScaledCategoryWidth
protected

◆ m_nTimeResolution

tools::Long chart::PlottingPositionHelper::m_nTimeResolution
protected

◆ m_nXResolution

sal_Int32 chart::PlottingPositionHelper::m_nXResolution
protected

◆ m_nYResolution

sal_Int32 chart::PlottingPositionHelper::m_nYResolution
protected

◆ m_nZResolution

sal_Int32 chart::PlottingPositionHelper::m_nZResolution
protected

◆ m_xTransformationLogicToScene

std::unique_ptr< ::chart::XTransformation2 > chart::PlottingPositionHelper::m_xTransformationLogicToScene
mutableprotected

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