| /************************************************************** |
| * |
| * Licensed to the Apache Software Foundation (ASF) under one |
| * or more contributor license agreements. See the NOTICE file |
| * distributed with this work for additional information |
| * regarding copyright ownership. The ASF licenses this file |
| * to you under the Apache License, Version 2.0 (the |
| * "License"); you may not use this file except in compliance |
| * with the License. You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, |
| * software distributed under the License is distributed on an |
| * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| * KIND, either express or implied. See the License for the |
| * specific language governing permissions and limitations |
| * under the License. |
| * |
| *************************************************************/ |
| |
| |
| #ifndef CHART2_BASEGFXHELPER_HXX |
| #define CHART2_BASEGFXHELPER_HXX |
| |
| #include <basegfx/matrix/b3dhommatrix.hxx> |
| #include <basegfx/polygon/b3dpolypolygon.hxx> |
| #include <basegfx/polygon/b3dpolygon.hxx> |
| #include <basegfx/point/b3dpoint.hxx> |
| #include <basegfx/range/b2irectangle.hxx> |
| #include <basegfx/tuple/b3dtuple.hxx> |
| #include <basegfx/vector/b3dvector.hxx> |
| #include <basegfx/range/b3drange.hxx> |
| #include <com/sun/star/awt/Point.hpp> |
| #include <com/sun/star/awt/Rectangle.hpp> |
| #include <com/sun/star/awt/Size.hpp> |
| #include <com/sun/star/drawing/HomogenMatrix.hpp> |
| #include <com/sun/star/drawing/Direction3D.hpp> |
| #include <com/sun/star/drawing/Position3D.hpp> |
| #include <com/sun/star/drawing/PolyPolygonShape3D.hpp> |
| #include "charttoolsdllapi.hxx" |
| |
| namespace chart |
| { |
| namespace BaseGFXHelper |
| { |
| |
| OOO_DLLPUBLIC_CHARTTOOLS ::basegfx::B3DRange getBoundVolume( const ::com::sun::star::drawing::PolyPolygonShape3D& rPolyPoly ); |
| |
| OOO_DLLPUBLIC_CHARTTOOLS ::basegfx::B2IRectangle makeRectangle( |
| const com::sun::star::awt::Point& rPosition, |
| const com::sun::star::awt::Size& rSize ); |
| |
| OOO_DLLPUBLIC_CHARTTOOLS com::sun::star::awt::Point B2IRectangleToAWTPoint( |
| const ::basegfx::B2IRectangle& rB2IRectangle ); |
| |
| OOO_DLLPUBLIC_CHARTTOOLS com::sun::star::awt::Size B2IRectangleToAWTSize( |
| const ::basegfx::B2IRectangle& rB2IRectangle ); |
| |
| OOO_DLLPUBLIC_CHARTTOOLS |
| com::sun::star::awt::Rectangle B2IRectangleToAWTRectangle( |
| const ::basegfx::B2IRectangle& rB2IRectangle ); |
| |
| ::basegfx::B3DVector Direction3DToB3DVector( |
| const com::sun::star::drawing::Direction3D& rDirection ); |
| |
| com::sun::star::drawing::Direction3D B3DVectorToDirection3D( |
| const ::basegfx::B3DVector& rB3DVector ); |
| |
| ::basegfx::B3DVector Position3DToB3DVector( |
| const com::sun::star::drawing::Position3D& rPosition ); |
| |
| com::sun::star::drawing::Position3D B3DVectorToPosition3D( |
| const ::basegfx::B3DVector& rB3DVector ); |
| |
| OOO_DLLPUBLIC_CHARTTOOLS ::basegfx::B3DHomMatrix HomogenMatrixToB3DHomMatrix( |
| const ::com::sun::star::drawing::HomogenMatrix & rHomogenMatrix ); |
| |
| OOO_DLLPUBLIC_CHARTTOOLS |
| ::com::sun::star::drawing::HomogenMatrix B3DHomMatrixToHomogenMatrix( |
| const ::basegfx::B3DHomMatrix & rB3DMatrix ); |
| |
| OOO_DLLPUBLIC_CHARTTOOLS ::basegfx::B3DTuple GetRotationFromMatrix( |
| const ::basegfx::B3DHomMatrix & rB3DMatrix ); |
| |
| OOO_DLLPUBLIC_CHARTTOOLS ::basegfx::B3DTuple GetScaleFromMatrix( |
| const ::basegfx::B3DHomMatrix & rB3DMatrix ); |
| |
| void ReduceToRotationMatrix( ::basegfx::B3DHomMatrix & rB3DMatrix ); |
| |
| OOO_DLLPUBLIC_CHARTTOOLS double Deg2Rad( double fDegrees ); |
| OOO_DLLPUBLIC_CHARTTOOLS double Rad2Deg( double fRadians ); |
| |
| } // namespace BaseGFXHelper |
| } // namespace chart |
| |
| // CHART2_BASEGFXHELPER_HXX |
| #endif |