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

#include <Linear3DTransformation.hxx>

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

Public Member Functions

 Linear3DTransformation (const css::drawing::HomogenMatrix &rHomMatrix, bool bSwapXAndY)
 
virtual ~Linear3DTransformation () 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...
 
virtual css::drawing::Position3D transform (const css::uno::Sequence< double > &rSourceValues) const override
 
- 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

css::drawing::HomogenMatrix m_Matrix
 
bool m_bSwapXAndY
 

Detailed Description

Definition at line 27 of file Linear3DTransformation.hxx.

Constructor & Destructor Documentation

◆ Linear3DTransformation()

chart::Linear3DTransformation::Linear3DTransformation ( const css::drawing::HomogenMatrix &  rHomMatrix,
bool  bSwapXAndY 
)

Definition at line 29 of file Linear3DTransformation.cxx.

◆ ~Linear3DTransformation()

chart::Linear3DTransformation::~Linear3DTransformation ( )
overridevirtual

Definition at line 34 of file Linear3DTransformation.cxx.

Member Function Documentation

◆ transform() [1/2]

css::drawing::Position3D chart::Linear3DTransformation::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().

Implements chart::XTransformation2.

Definition at line 80 of file Linear3DTransformation.cxx.

References m_bSwapXAndY, and m_Matrix.

◆ transform() [2/2]

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

Member Data Documentation

◆ m_bSwapXAndY

bool chart::Linear3DTransformation::m_bSwapXAndY
private

Definition at line 41 of file Linear3DTransformation.hxx.

Referenced by transform().

◆ m_Matrix

css::drawing::HomogenMatrix chart::Linear3DTransformation::m_Matrix
private

Definition at line 40 of file Linear3DTransformation.hxx.

Referenced by transform().


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