diff options
Diffstat (limited to 'chart2/source/view/inc/Linear3DTransformation.hxx')
-rw-r--r-- | chart2/source/view/inc/Linear3DTransformation.hxx | 26 |
1 files changed, 8 insertions, 18 deletions
diff --git a/chart2/source/view/inc/Linear3DTransformation.hxx b/chart2/source/view/inc/Linear3DTransformation.hxx index 3572caab7a7c..456f6e4c4b26 100644 --- a/chart2/source/view/inc/Linear3DTransformation.hxx +++ b/chart2/source/view/inc/Linear3DTransformation.hxx @@ -16,32 +16,25 @@ * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_CHART2_SOURCE_VIEW_INC_LINEAR3DTRANSFORMATION_HXX -#define INCLUDED_CHART2_SOURCE_VIEW_INC_LINEAR3DTRANSFORMATION_HXX +#pragma once -#include <cppuhelper/implbase.hxx> -#include <com/sun/star/chart2/XTransformation.hpp> +#include "PlottingPositionHelper.hxx" #include <com/sun/star/drawing/HomogenMatrix.hpp> namespace chart { -class Linear3DTransformation : public ::cppu::WeakImplHelper< - css::chart2::XTransformation - > +class Linear3DTransformation final : public XTransformation2 { public: Linear3DTransformation( const css::drawing::HomogenMatrix& rHomMatrix, bool bSwapXAndY ); virtual ~Linear3DTransformation() override; - // ____ XTransformation ____ - /// @see css::chart2::XTransformation - virtual css::uno::Sequence< double > SAL_CALL transform( - const css::uno::Sequence< double >& rSourceValues ) override; - /// @see css::chart2::XTransformation - virtual sal_Int32 SAL_CALL getSourceDimension() override; - /// @see css::chart2::XTransformation - virtual sal_Int32 SAL_CALL getTargetDimension() override; + // ____ XTransformation2 ____ + virtual css::drawing::Position3D transform( + const css::drawing::Position3D& rSourceValues ) const override; + virtual css::drawing::Position3D transform( + const css::uno::Sequence< double >& rSourceValues ) const override; private: css::drawing::HomogenMatrix m_Matrix; @@ -50,7 +43,4 @@ private: } // namespace chart -// INCLUDED_CHART2_SOURCE_VIEW_INC_LINEAR3DTRANSFORMATION_HXX -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |