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_LINEAR3DTRANSFORMATION_HXX
24 #define _CHART_LINEAR3DTRANSFORMATION_HXX
25 
26 #include <cppuhelper/implbase1.hxx>
27 #include <com/sun/star/chart2/XTransformation.hpp>
28 #include <com/sun/star/drawing/HomogenMatrix.hpp>
29 
30 namespace chart
31 {
32 
33 class Linear3DTransformation : public ::cppu::WeakImplHelper1<
34     ::com::sun::star::chart2::XTransformation
35     >
36 {
37 public:
38     Linear3DTransformation( const ::com::sun::star::drawing::HomogenMatrix& rHomMatrix, bool bSwapXAndY  );
39 	virtual ~Linear3DTransformation();
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         throw (::com::sun::star::lang::IllegalArgumentException,
46                ::com::sun::star::uno::RuntimeException);
47     /// @see ::com::sun::star::chart2::XTransformation
48     virtual sal_Int32 SAL_CALL getSourceDimension()
49         throw (::com::sun::star::uno::RuntimeException);
50     /// @see ::com::sun::star::chart2::XTransformation
51     virtual sal_Int32 SAL_CALL getTargetDimension()
52         throw (::com::sun::star::uno::RuntimeException);
53 
54 private:
55     ::com::sun::star::drawing::HomogenMatrix    m_Matrix;
56     bool                                        m_bSwapXAndY;
57 };
58 
59 }  // namespace chart
60 
61 // _CHART_LINEAR3DTRANSFORMATION_HXX
62 #endif
63 
64