23#include <osl/diagnose.h>
31 : m_nDimension(nDimensionCount)
32 , m_pPosHelper(nullptr)
38 ,
const OUString& rCID )
40 OSL_PRECOND(xLogicTarget.is()&&xFinalTarget.is(),
"no proper initialization parameters");
56 OSL_PRECOND(
m_nDimension<=
static_cast<sal_Int32
>(rScales.size()),
"Dimension of Plotter does not fit two dimension of given scale sequence");
65 OSL_PRECOND(
m_nDimension==2,
"Set this transformation only in case of 2D");
73 ,
const OUString& rName )
89 if( std::isnan(rPos.PositionX) )
91 if( std::isnan(rPos.PositionY) )
93 if( std::isnan(rPos.PositionZ) )
95 if( std::isinf(rPos.PositionX) )
97 if( std::isinf(rPos.PositionY) )
99 if( std::isinf(rPos.PositionZ) )
virtual void setTransformationSceneToScreen(const css::drawing::HomogenMatrix &rMatrix)
rtl::Reference< SvxShapeGroupAnyD > m_xLogicTarget
PlotterBase(sal_Int32 nDimension)
static bool isValidPosition(const css::drawing::Position3D &rPos)
PlottingPositionHelper * m_pPosHelper
rtl::Reference< SvxShapeGroupAnyD > m_xFinalTarget
const sal_Int32 m_nDimension
virtual void setScales(std::vector< ExplicitScaleData > &&rScales, bool bSwapXAndYAxis)
virtual void initPlotter(const rtl::Reference< SvxShapeGroupAnyD > &xLogicTarget, const rtl::Reference< SvxShapeGroupAnyD > &xFinalTarget, const OUString &rCID)
rtl::Reference< SvxShapeGroupAnyD > createGroupShape(const rtl::Reference< SvxShapeGroupAnyD > &xTarget, const OUString &rName=OUString())
virtual void setScales(std::vector< ExplicitScaleData > &&rScales, bool bSwapXAndYAxis)
virtual void setTransformationSceneToScreen(const css::drawing::HomogenMatrix &rMatrix)
static rtl::Reference< Svx3DSceneObject > createGroup3D(const rtl::Reference< SvxShapeGroupAnyD > &xTarget, const OUString &aName=OUString())
static rtl::Reference< SvxShapeGroup > createGroup2D(const rtl::Reference< SvxShapeGroupAnyD > &xTarget, const OUString &aName=OUString())
Reference< XInterface > xTarget