LibreOffice Module chart2 (master) 1
|
#include <VPolarTransformation.hxx>
Public Member Functions | |
VPolarTransformation (const PolarPlottingPositionHelper &rPositionHelper) | |
virtual | ~VPolarTransformation () override |
virtual css::drawing::Position3D | transform (const css::uno::Sequence< double > &rSourceValues) const override |
virtual css::drawing::Position3D | transform (const css::drawing::Position3D &rSourceValues) const override |
transforms the given input data tuple, given in the source coordinate system, according to the internal transformation rules, into a tuple of transformed coordinates in the destination coordinate system. More... | |
Public Member Functions inherited from chart::XTransformation2 | |
virtual | ~XTransformation2 () |
virtual css::drawing::Position3D | transform (const css::drawing::Position3D &rSourceValues) const =0 |
transforms the given input data tuple, given in the source coordinate system, according to the internal transformation rules, into a tuple of transformed coordinates in the destination coordinate system. More... | |
virtual css::drawing::Position3D | transform (const css::uno::Sequence< double > &rSourceValues) const =0 |
Private Attributes | |
PolarPlottingPositionHelper | m_aPositionHelper |
::basegfx::B3DHomMatrix | m_aUnitCartesianToScene |
Definition at line 26 of file VPolarTransformation.hxx.
chart::VPolarTransformation::VPolarTransformation | ( | const PolarPlottingPositionHelper & | rPositionHelper | ) |
Definition at line 29 of file VPolarTransformation.cxx.
|
overridevirtual |
Definition at line 35 of file VPolarTransformation.cxx.
|
overridevirtual |
transforms the given input data tuple, given in the source coordinate system, according to the internal transformation rules, into a tuple of transformed coordinates in the destination coordinate system.
Note that both coordinate systems may have different dimensions, e.g., if a transformation does simply a projection into a lower-dimensional space.
aValues | a source tuple of data that is to be transformed. The length of this sequence must be equivalent to the dimension of the source coordinate system. |
::com::sun::star::lang::IllegalArgumentException | if the dimension of the input vector is not equal to the dimension given in getSourceDimension(). |
! applying matrix to vector does ignore translation, so it is important to use a B3DPoint here instead of B3DVector
Implements chart::XTransformation2.
Definition at line 63 of file VPolarTransformation.cxx.
References basegfx::deg2rad(), basegfx::Tuple3D< typename TYPE >::getX(), basegfx::Tuple3D< typename TYPE >::getY(), basegfx::Tuple3D< typename TYPE >::getZ(), chart::PlottingPositionHelper::isSwapXAndY(), m_aPositionHelper, m_aUnitCartesianToScene, chart::PolarPlottingPositionHelper::transformToAngleDegree(), and chart::PolarPlottingPositionHelper::transformToRadius().
|
overridevirtual |
Implements chart::XTransformation2.
|
private |
Definition at line 39 of file VPolarTransformation.hxx.
Referenced by transform().
|
private |
Definition at line 40 of file VPolarTransformation.hxx.
Referenced by transform().