xref: /trunk/main/chart2/source/view/inc/VPolarTransformation.hxx (revision 9c15e1abd703a7953928d7a80655ae1a76a41f6d)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 #ifndef _CHART_VPOLARTRANSFORMATION_HXX
24 #define _CHART_VPOLARTRANSFORMATION_HXX
25 
26 #include "PlottingPositionHelper.hxx"
27 #include <cppuhelper/implbase1.hxx>
28 #include <com/sun/star/chart2/XTransformation.hpp>
29 
30 namespace chart
31 {
32 
33 class VPolarTransformation : public ::cppu::WeakImplHelper1<
34     ::com::sun::star::chart2::XTransformation
35     >
36 {
37 public:
38     VPolarTransformation( const PolarPlottingPositionHelper& rPositionHelper );
39     virtual ~VPolarTransformation();
40 
41     // ____ XTransformation ____
42     /// @see ::com::sun::star::chart2::XTransformation
43     virtual ::com::sun::star::uno::Sequence< double > SAL_CALL transform(
44         const ::com::sun::star::uno::Sequence< double >& rSourceValues );
45     /// @see ::com::sun::star::chart2::XTransformation
46     virtual sal_Int32 SAL_CALL getSourceDimension();
47     /// @see ::com::sun::star::chart2::XTransformation
48     virtual sal_Int32 SAL_CALL getTargetDimension();
49 
50 private:
51     PolarPlottingPositionHelper     m_aPositionHelper;
52     ::basegfx::B3DHomMatrix         m_aUnitCartesianToScene;
53 };
54 
55 }  // namespace chart
56 
57 // _CHART_VPOLARTRANSFORMATION_HXX
58 #endif
59