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

#include <VPolarTransformation.hxx>

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

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
 

Detailed Description

Definition at line 26 of file VPolarTransformation.hxx.

Constructor & Destructor Documentation

◆ VPolarTransformation()

chart::VPolarTransformation::VPolarTransformation ( const PolarPlottingPositionHelper rPositionHelper)

Definition at line 29 of file VPolarTransformation.cxx.

◆ ~VPolarTransformation()

chart::VPolarTransformation::~VPolarTransformation ( )
overridevirtual

Definition at line 35 of file VPolarTransformation.cxx.

Member Function Documentation

◆ transform() [1/2]

css::drawing::Position3D chart::VPolarTransformation::transform ( const css::drawing::Position3D &  rSourceValues) const
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.

Parameters
aValuesa 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.
Returns
the transformed data tuple. The length of this sequence is equal to the dimension of the output coordinate system.
Exceptions
::com::sun::star::lang::IllegalArgumentExceptionif 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().

◆ transform() [2/2]

virtual css::drawing::Position3D chart::VPolarTransformation::transform ( const css::uno::Sequence< double > &  rSourceValues) const
overridevirtual

Member Data Documentation

◆ m_aPositionHelper

PolarPlottingPositionHelper chart::VPolarTransformation::m_aPositionHelper
private

Definition at line 39 of file VPolarTransformation.hxx.

Referenced by transform().

◆ m_aUnitCartesianToScene

::basegfx::B3DHomMatrix chart::VPolarTransformation::m_aUnitCartesianToScene
private

Definition at line 40 of file VPolarTransformation.hxx.

Referenced by transform().


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