update dev300-m58
[ooovba.git] / chart2 / source / inc / BaseGFXHelper.hxx
blob4f44db911a89a7ae432feeff8e8818da7b18f4e5
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: BaseGFXHelper.hxx,v $
10 * $Revision: 1.4 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef CHART2_BASEGFXHELPER_HXX
31 #define CHART2_BASEGFXHELPER_HXX
33 #include <basegfx/matrix/b3dhommatrix.hxx>
34 #include <basegfx/polygon/b3dpolypolygon.hxx>
35 #include <basegfx/polygon/b3dpolygon.hxx>
36 #include <basegfx/point/b3dpoint.hxx>
37 #include <basegfx/range/b2irectangle.hxx>
38 #include <basegfx/tuple/b3dtuple.hxx>
39 #include <basegfx/vector/b3dvector.hxx>
40 #include <basegfx/range/b3drange.hxx>
41 #include <com/sun/star/awt/Point.hpp>
42 #include <com/sun/star/awt/Rectangle.hpp>
43 #include <com/sun/star/awt/Size.hpp>
44 #include <com/sun/star/drawing/HomogenMatrix.hpp>
45 #include <com/sun/star/drawing/Direction3D.hpp>
46 #include <com/sun/star/drawing/Position3D.hpp>
47 #include <com/sun/star/drawing/PolyPolygonShape3D.hpp>
48 #include "charttoolsdllapi.hxx"
50 namespace chart
52 namespace BaseGFXHelper
55 OOO_DLLPUBLIC_CHARTTOOLS ::basegfx::B3DRange getBoundVolume( const ::com::sun::star::drawing::PolyPolygonShape3D& rPolyPoly );
57 OOO_DLLPUBLIC_CHARTTOOLS ::basegfx::B2IRectangle makeRectangle(
58 const com::sun::star::awt::Point& rPosition,
59 const com::sun::star::awt::Size& rSize );
61 OOO_DLLPUBLIC_CHARTTOOLS com::sun::star::awt::Point B2IRectangleToAWTPoint(
62 const ::basegfx::B2IRectangle& rB2IRectangle );
64 OOO_DLLPUBLIC_CHARTTOOLS com::sun::star::awt::Size B2IRectangleToAWTSize(
65 const ::basegfx::B2IRectangle& rB2IRectangle );
67 OOO_DLLPUBLIC_CHARTTOOLS
68 com::sun::star::awt::Rectangle B2IRectangleToAWTRectangle(
69 const ::basegfx::B2IRectangle& rB2IRectangle );
71 ::basegfx::B3DVector Direction3DToB3DVector(
72 const com::sun::star::drawing::Direction3D& rDirection );
74 com::sun::star::drawing::Direction3D B3DVectorToDirection3D(
75 const ::basegfx::B3DVector& rB3DVector );
77 ::basegfx::B3DVector Position3DToB3DVector(
78 const com::sun::star::drawing::Position3D& rPosition );
80 com::sun::star::drawing::Position3D B3DVectorToPosition3D(
81 const ::basegfx::B3DVector& rB3DVector );
83 OOO_DLLPUBLIC_CHARTTOOLS ::basegfx::B3DHomMatrix HomogenMatrixToB3DHomMatrix(
84 const ::com::sun::star::drawing::HomogenMatrix & rHomogenMatrix );
86 OOO_DLLPUBLIC_CHARTTOOLS
87 ::com::sun::star::drawing::HomogenMatrix B3DHomMatrixToHomogenMatrix(
88 const ::basegfx::B3DHomMatrix & rB3DMatrix );
90 OOO_DLLPUBLIC_CHARTTOOLS ::basegfx::B3DTuple GetRotationFromMatrix(
91 const ::basegfx::B3DHomMatrix & rB3DMatrix );
93 OOO_DLLPUBLIC_CHARTTOOLS ::basegfx::B3DTuple GetScaleFromMatrix(
94 const ::basegfx::B3DHomMatrix & rB3DMatrix );
96 void ReduceToRotationMatrix( ::basegfx::B3DHomMatrix & rB3DMatrix );
98 OOO_DLLPUBLIC_CHARTTOOLS double Deg2Rad( double fDegrees );
99 OOO_DLLPUBLIC_CHARTTOOLS double Rad2Deg( double fRadians );
101 } // namespace BaseGFXHelper
102 } // namespace chart
104 // CHART2_BASEGFXHELPER_HXX
105 #endif