LibreOffice Module chart2 (master) 1
|
#include <PlottingPositionHelper.hxx>
Public Member Functions | |
PlottingPositionHelper () | |
PlottingPositionHelper (const PlottingPositionHelper &rSource) | |
virtual | ~PlottingPositionHelper () |
virtual std::unique_ptr< PlottingPositionHelper > | clone () const |
std::unique_ptr< PlottingPositionHelper > | createSecondaryPosHelper (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::XTransformation2 * | getTransformationScaledLogicToScene () 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< ExplicitScaleData > | m_aScales |
::basegfx::B3DHomMatrix | m_aMatrixScreenToScene |
std::unique_ptr< ::chart::XTransformation2 > | m_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 |
Definition at line 85 of file PlottingPositionHelper.hxx.
chart::PlottingPositionHelper::PlottingPositionHelper | ( | ) |
Definition at line 41 of file PlottingPositionHelper.cxx.
References DAY.
chart::PlottingPositionHelper::PlottingPositionHelper | ( | const PlottingPositionHelper & | rSource | ) |
Definition at line 55 of file PlottingPositionHelper.cxx.
|
virtual |
Definition at line 73 of file PlottingPositionHelper.cxx.
void chart::PlottingPositionHelper::AllowShiftXAxisPos | ( | bool | bAllowShift | ) |
Definition at line 693 of file PlottingPositionHelper.cxx.
References m_bAllowShiftXAxisPos.
Referenced by chart::BarPositionHelper::BarPositionHelper().
void chart::PlottingPositionHelper::AllowShiftZAxisPos | ( | bool | bAllowShift | ) |
Definition at line 697 of file PlottingPositionHelper.cxx.
References m_bAllowShiftZAxisPos.
Referenced by chart::BarPositionHelper::BarPositionHelper().
|
inline |
Definition at line 374 of file PlottingPositionHelper.hxx.
References m_aScales, and Minimum.
Referenced by chart::CandleStickChart::createShapes(), chart::NetChart::impl_createArea(), chart::AreaChart::impl_createArea(), chart::PolarPlottingPositionHelper::transformLogicToScene(), and chart::PolarPlottingPositionHelper::transformToAngleDegree().
void chart::PlottingPositionHelper::clipScaledLogicValues | ( | double * | pX, |
double * | pY, | ||
double * | pZ | ||
) | const |
Definition at line 258 of file PlottingPositionHelper.cxx.
References doUnshiftedLogicScaling(), getLogicMaxX(), getLogicMaxY(), getLogicMaxZ(), getLogicMinX(), getLogicMinY(), and getLogicMinZ().
Referenced by transformLogicToScene(), transformScaledLogicToScene(), and chart::PolarPlottingPositionHelper::transformScaledLogicToScene().
|
inline |
Definition at line 399 of file PlottingPositionHelper.hxx.
References getLogicMaxY(), and getLogicMinY().
Referenced by chart::BarChart::doXSlot().
|
virtual |
Reimplemented in chart::BarPositionHelper, and chart::PolarPlottingPositionHelper.
Definition at line 78 of file PlottingPositionHelper.cxx.
Referenced by 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().
|
inline |
Definition at line 369 of file PlottingPositionHelper.hxx.
References doLogicScaling().
|
inline |
Definition at line 339 of file PlottingPositionHelper.hxx.
References m_aScales, m_bAllowShiftXAxisPos, m_bAllowShiftZAxisPos, and m_fScaledCategoryWidth.
Referenced by chart::VSeriesPlotter::createErrorBar(), chart::VSeriesPlotter::createErrorRectangle(), chart::VSeriesPlotter::createRegressionCurvesShapes(), chart::AreaChart::createShapes(), chart::BubbleChart::createShapes(), chart::CandleStickChart::createShapes(), doLogicScaling(), chart::BarChart::doXSlot(), getScaledLogicWidth(), chart::BarPositionHelper::getScaledSlotPos(), chart::VSeriesPlotter::getTransformedDepth(), chart::PolarPlottingPositionHelper::impl_calculateMatrixUnitCartesianToScene(), chart::NetChart::impl_createArea(), chart::AreaChart::impl_createArea(), isSameForGivenResolution(), transformLogicToScene(), chart::PolarPlottingPositionHelper::transformToAngleDegree(), and chart::PolarPlottingPositionHelper::transformToRadius().
|
inline |
Definition at line 359 of file PlottingPositionHelper.hxx.
References m_aScales.
Referenced by clipScaledLogicValues(), and getScaledLogicClipDoubleRect().
double chart::PlottingPositionHelper::getBaseValueY | ( | ) | const |
Definition at line 662 of file PlottingPositionHelper.cxx.
References m_aScales.
Referenced by chart::BarChart::doXSlot(), chart::NetChart::impl_createArea(), and chart::AreaChart::impl_createArea().
|
inline |
Definition at line 428 of file PlottingPositionHelper.hxx.
References m_aScales.
Referenced by clipScaledLogicValues(), chart::VSeriesPlotter::createRegressionCurvesShapes(), chart::CandleStickChart::createShapes(), chart::BarChart::doXSlot(), chart::PiePositionHelper::getInnerAndOuterRadius(), getScaledLogicClipDoubleRect(), getScaledLogicWidth(), getTransformationScaledLogicToScene(), chart::NetChart::impl_createArea(), chart::AreaChart::impl_createArea(), isSameForGivenResolution(), chart::PolarPlottingPositionHelper::transformToAngleDegree(), and chart::PolarPlottingPositionHelper::transformToRadius().
|
inline |
Definition at line 432 of file PlottingPositionHelper.hxx.
References m_aScales.
Referenced by clipScaledLogicValues(), clipYRange(), getScaledLogicClipDoubleRect(), getScaledLogicWidth(), getTransformationScaledLogicToScene(), isSameForGivenResolution(), chart::PolarPlottingPositionHelper::transformToAngleDegree(), and chart::PolarPlottingPositionHelper::transformToRadius().
|
inline |
Definition at line 436 of file PlottingPositionHelper.hxx.
References m_aScales.
Referenced by clipScaledLogicValues(), getScaledLogicClipDoubleRect(), getScaledLogicWidth(), getTransformationScaledLogicToScene(), chart::VSeriesPlotter::getTransformedDepth(), chart::PolarPlottingPositionHelper::impl_calculateMatrixUnitCartesianToScene(), isSameForGivenResolution(), and chart::PolarPlottingPositionHelper::transformToAngleDegree().
|
inline |
Definition at line 415 of file PlottingPositionHelper.hxx.
References m_aScales.
Referenced by clipScaledLogicValues(), chart::VSeriesPlotter::createRegressionCurvesShapes(), chart::PiePositionHelper::getInnerAndOuterRadius(), getScaledLogicClipDoubleRect(), getScaledLogicWidth(), getTransformationScaledLogicToScene(), isSameForGivenResolution(), chart::PolarPlottingPositionHelper::transformToAngleDegree(), and chart::PolarPlottingPositionHelper::transformToRadius().
|
inline |
Definition at line 419 of file PlottingPositionHelper.hxx.
References m_aScales.
Referenced by clipScaledLogicValues(), clipYRange(), chart::AreaChart::createShapes(), getScaledLogicClipDoubleRect(), getScaledLogicWidth(), getTransformationScaledLogicToScene(), chart::AreaChart::impl_createArea(), isSameForGivenResolution(), chart::PolarPlottingPositionHelper::transformToAngleDegree(), and chart::PolarPlottingPositionHelper::transformToRadius().
|
inline |
Definition at line 423 of file PlottingPositionHelper.hxx.
References m_aScales.
Referenced by clipScaledLogicValues(), getScaledLogicClipDoubleRect(), getScaledLogicWidth(), getTransformationScaledLogicToScene(), chart::VSeriesPlotter::getTransformedDepth(), chart::PolarPlottingPositionHelper::impl_calculateMatrixUnitCartesianToScene(), isSameForGivenResolution(), and chart::PolarPlottingPositionHelper::transformToAngleDegree().
basegfx::B2DRectangle chart::PlottingPositionHelper::getScaledLogicClipDoubleRect | ( | ) | const |
Definition at line 295 of file PlottingPositionHelper.cxx.
References doUnshiftedLogicScaling(), getLogicMaxX(), getLogicMaxY(), getLogicMaxZ(), getLogicMinX(), getLogicMinY(), and getLogicMinZ().
Referenced by chart::AreaChart::create_stepped_line(), chart::VSeriesPlotter::createRegressionCurvesShapes(), chart::BarChart::createShapes(), chart::NetChart::impl_createArea(), chart::AreaChart::impl_createArea(), chart::NetChart::impl_createLine(), and chart::AreaChart::impl_createLine().
drawing::Direction3D chart::PlottingPositionHelper::getScaledLogicWidth | ( | ) | const |
Definition at line 313 of file PlottingPositionHelper.cxx.
References doLogicScaling(), getLogicMaxX(), getLogicMaxY(), getLogicMaxZ(), getLogicMinX(), getLogicMinY(), and getLogicMinZ().
Referenced by chart::VSeriesPlotter::getPreferredDiagramAspectRatio(), and chart::BarChart::getPreferredDiagramAspectRatio().
|
inline |
Definition at line 98 of file PlottingPositionHelper.hxx.
References m_aScales.
Referenced by chart::VSeriesPlotter::createRegressionCurvesShapes().
chart::XTransformation2 * chart::PlottingPositionHelper::getTransformationScaledLogicToScene | ( | ) | const |
Definition at line 103 of file PlottingPositionHelper.cxx.
References getLogicMaxX(), getLogicMaxY(), getLogicMaxZ(), getLogicMinX(), getLogicMinY(), getLogicMinZ(), m_aScales, and m_xTransformationLogicToScene.
Referenced by chart::VCartesianGrid::createShapes(), chart::BarChart::doXSlot(), and transformScaledLogicToScene().
|
inline |
Definition at line 331 of file PlottingPositionHelper.hxx.
References isStrongLowerRequested(), m_aScales, and Minimum.
Referenced by chart::VSeriesPlotter::createErrorBar(), chart::AreaChart::createShapes(), chart::BubbleChart::createShapes(), and chart::CandleStickChart::createShapes().
|
inline |
Definition at line 440 of file PlottingPositionHelper.hxx.
References m_aScales.
|
inline |
Definition at line 444 of file PlottingPositionHelper.hxx.
References m_aScales.
Referenced by chart::BarChart::getLabelScreenPositionAndAlignment().
|
inline |
Definition at line 448 of file PlottingPositionHelper.hxx.
References m_aScales.
bool chart::PlottingPositionHelper::isPercentY | ( | ) | const |
Definition at line 657 of file PlottingPositionHelper.cxx.
References m_aScales.
Referenced by chart::AreaChart::createShapes(), chart::BarChart::doXSlot(), and chart::BarChart::doZSlot().
|
inline |
Definition at line 291 of file PlottingPositionHelper.hxx.
References doLogicScaling(), getLogicMaxX(), getLogicMaxY(), getLogicMaxZ(), getLogicMinX(), getLogicMinY(), getLogicMinZ(), m_nXResolution, m_nYResolution, and m_nZResolution.
Referenced by chart::AreaChart::createShapes(), chart::BubbleChart::createShapes(), chart::BarChart::doXSlot(), and chart::lcl_removeDuplicatePoints().
|
inline |
Definition at line 320 of file PlottingPositionHelper.hxx.
References m_aScales, m_bAllowShiftXAxisPos, and m_bAllowShiftZAxisPos.
Referenced by chart::BarChart::doXSlot(), and isLogicVisible().
|
inline |
Definition at line 452 of file PlottingPositionHelper.hxx.
References m_bSwapXAndY.
Referenced by chart::AreaChart::createShapes(), chart::BubbleChart::createShapes(), chart::BarChart::doXSlot(), chart::BarChart::getLabelScreenPositionAndAlignment(), and chart::VPolarTransformation::transform().
|
inline |
Definition at line 456 of file PlottingPositionHelper.hxx.
References m_bMaySkipPointsInRegressionCalculation.
|
inline |
Definition at line 278 of file PlottingPositionHelper.hxx.
References m_nXResolution, m_nYResolution, and m_nZResolution.
Referenced by chart::AreaChart::createShapes(), chart::BubbleChart::createShapes(), and chart::BarChart::doXSlot().
|
virtual |
Reimplemented in chart::BarPositionHelper.
Definition at line 689 of file PlottingPositionHelper.cxx.
References m_fScaledCategoryWidth.
Referenced by setTimeResolution().
|
virtual |
Reimplemented in chart::PolarPlottingPositionHelper.
Definition at line 96 of file PlottingPositionHelper.cxx.
References m_aScales, m_bSwapXAndY, and m_xTransformationLogicToScene.
Referenced by chart::PlotterBase::setScales(), and chart::PolarPlottingPositionHelper::setScales().
void chart::PlottingPositionHelper::setTimeResolution | ( | tools::Long | nTimeResolution, |
const Date & | rNullDate | ||
) |
Definition at line 667 of file PlottingPositionHelper.cxx.
References m_aNullDate, m_aScales, m_bDateAxis, m_nTimeResolution, and setScaledCategoryWidth().
Referenced by chart::VSeriesPlotter::getPlottingPositionHelper().
|
virtual |
Reimplemented in chart::PolarPlottingPositionHelper.
Definition at line 90 of file PlottingPositionHelper.cxx.
References chart::HomogenMatrixToB3DHomMatrix(), m_aMatrixScreenToScene, and m_xTransformationLogicToScene.
Referenced by chart::PlotterBase::setTransformationSceneToScreen(), and chart::PolarPlottingPositionHelper::setTransformationSceneToScreen().
|
virtual |
Reimplemented in chart::PolarPlottingPositionHelper.
Definition at line 170 of file PlottingPositionHelper.cxx.
References clipScaledLogicValues(), doLogicScaling(), and transformScaledLogicToScene().
Referenced by chart::VSeriesPlotter::createErrorBar(), chart::AreaChart::createShapes(), and chart::BubbleChart::createShapes().
void chart::PlottingPositionHelper::transformScaledLogicToScene | ( | css::drawing::PolyPolygonShape3D & | rPoly | ) | const |
|
virtual |
Reimplemented in chart::PolarPlottingPositionHelper, and chart::PolarPlottingPositionHelper.
Definition at line 180 of file PlottingPositionHelper.cxx.
References clipScaledLogicValues(), getTransformationScaledLogicToScene(), and chart::XTransformation2::transform().
Referenced by chart::VSeriesPlotter::createRegressionCurvesShapes(), chart::BarChart::createShapes(), chart::CandleStickChart::createShapes(), chart::BarChart::doXSlot(), chart::NetChart::impl_createArea(), chart::AreaChart::impl_createArea(), chart::NetChart::impl_createLine(), chart::AreaChart::impl_createLine(), transformLogicToScene(), and transformScaledLogicToScene().
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().
|
static |
Definition at line 193 of file PlottingPositionHelper.cxx.
References chart::ShapeFactory::createCube().
Referenced by chart::PieChart::createShapes(), chart::PieChart::createTextLabelShape(), chart::PieChart::performLabelBestFitInnerPlacement(), and chart::LabelPositionHelper::transformSceneToScreenPosition().
|
protected |
Definition at line 161 of file PlottingPositionHelper.hxx.
Referenced by chart::PolarPlottingPositionHelper::setScales(), setTransformationSceneToScreen(), and chart::PolarPlottingPositionHelper::setTransformationSceneToScreen().
|
protected |
Definition at line 176 of file PlottingPositionHelper.hxx.
Referenced by chart::BarPositionHelper::getScaledSlotPos(), and setTimeResolution().
|
protected |
Definition at line 160 of file PlottingPositionHelper.hxx.
Referenced by clipLogicValues(), doLogicScaling(), doUnshiftedLogicScaling(), getBaseValueY(), getLogicMaxX(), getLogicMaxY(), getLogicMaxZ(), getLogicMinX(), getLogicMinY(), getLogicMinZ(), chart::PolarPlottingPositionHelper::getOuterLogicRadius(), getScales(), getTransformationScaledLogicToScene(), chart::PolarPlottingPositionHelper::getWidthAngleDegree(), chart::PolarPlottingPositionHelper::impl_calculateMatrixUnitCartesianToScene(), isLogicVisible(), chart::PolarPlottingPositionHelper::isMathematicalOrientationAngle(), chart::PolarPlottingPositionHelper::isMathematicalOrientationRadius(), isMathematicalOrientationX(), isMathematicalOrientationY(), isMathematicalOrientationZ(), isPercentY(), isStrongLowerRequested(), setScales(), setTimeResolution(), chart::PolarPlottingPositionHelper::transformToAngleDegree(), and chart::PolarPlottingPositionHelper::transformToRadius().
|
protected |
Definition at line 179 of file PlottingPositionHelper.hxx.
Referenced by AllowShiftXAxisPos(), doLogicScaling(), and isStrongLowerRequested().
|
protected |
Definition at line 180 of file PlottingPositionHelper.hxx.
Referenced by AllowShiftZAxisPos(), doLogicScaling(), and isStrongLowerRequested().
|
protected |
Definition at line 174 of file PlottingPositionHelper.hxx.
Referenced by chart::BarPositionHelper::getScaledSlotPos(), and setTimeResolution().
|
protected |
Definition at line 172 of file PlottingPositionHelper.hxx.
Referenced by maySkipPointsInRegressionCalculation(), and chart::PolarPlottingPositionHelper::PolarPlottingPositionHelper().
|
protected |
Definition at line 166 of file PlottingPositionHelper.hxx.
Referenced by chart::PolarPlottingPositionHelper::getOuterLogicRadius(), chart::PolarPlottingPositionHelper::getWidthAngleDegree(), chart::PolarPlottingPositionHelper::isMathematicalOrientationAngle(), chart::PolarPlottingPositionHelper::isMathematicalOrientationRadius(), isSwapXAndY(), setScales(), chart::PolarPlottingPositionHelper::transformLogicToScene(), chart::PolarPlottingPositionHelper::transformScaledLogicToScene(), chart::PolarPlottingPositionHelper::transformToAngleDegree(), and chart::PolarPlottingPositionHelper::transformToRadius().
|
protected |
Definition at line 178 of file PlottingPositionHelper.hxx.
Referenced by doLogicScaling(), setScaledCategoryWidth(), and chart::BarPositionHelper::setScaledCategoryWidth().
|
protected |
Definition at line 175 of file PlottingPositionHelper.hxx.
Referenced by chart::BarPositionHelper::getScaledSlotPos(), and setTimeResolution().
|
protected |
Definition at line 168 of file PlottingPositionHelper.hxx.
Referenced by isSameForGivenResolution(), and setCoordinateSystemResolution().
|
protected |
Definition at line 169 of file PlottingPositionHelper.hxx.
Referenced by isSameForGivenResolution(), and setCoordinateSystemResolution().
|
protected |
Definition at line 170 of file PlottingPositionHelper.hxx.
Referenced by isSameForGivenResolution(), and setCoordinateSystemResolution().
|
mutableprotected |
Definition at line 164 of file PlottingPositionHelper.hxx.
Referenced by getTransformationScaledLogicToScene(), chart::PolarPlottingPositionHelper::getTransformationScaledLogicToScene(), setScales(), and setTransformationSceneToScreen().