LibreOffice Module chart2 (master) 1
BaseGFXHelper.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19#pragma once
20
26#include <com/sun/star/awt/Point.hpp>
27#include <com/sun/star/awt/Size.hpp>
28#include <com/sun/star/drawing/HomogenMatrix.hpp>
29#include <com/sun/star/drawing/Direction3D.hpp>
30#include <com/sun/star/drawing/Position3D.hpp>
31#include "charttoolsdllapi.hxx"
32
33namespace com::sun::star::awt { struct Rectangle; }
34namespace com::sun::star::drawing { struct PolyPolygonShape3D; }
35
37{
38
39OOO_DLLPUBLIC_CHARTTOOLS ::basegfx::B3DRange getBoundVolume( const css::drawing::PolyPolygonShape3D& rPolyPoly );
40
41OOO_DLLPUBLIC_CHARTTOOLS ::basegfx::B3DRange getBoundVolume( const std::vector<std::vector<css::drawing::Position3D>>& rPolyPoly );
42
43OOO_DLLPUBLIC_CHARTTOOLS ::basegfx::B2IRectangle makeRectangle(
44 const css::awt::Point& rPosition,
45 const css::awt::Size& rSize );
46
47OOO_DLLPUBLIC_CHARTTOOLS ::basegfx::B2IRectangle makeRectangle( const css::awt::Rectangle& rRect );
48
50 const ::basegfx::B2IRectangle& rB2IRectangle );
51
53 const ::basegfx::B2IRectangle& rB2IRectangle );
54
55OOO_DLLPUBLIC_CHARTTOOLS css::awt::Rectangle toAwtRectangle(const basegfx::B2IRectangle& rB2IRectangle);
56
58 const css::drawing::Direction3D& rDirection );
59
60css::drawing::Direction3D B3DVectorToDirection3D(
61 const ::basegfx::B3DVector& rB3DVector );
62
64 const css::drawing::Position3D& rPosition );
65
66css::drawing::Position3D B3DVectorToPosition3D(
67 const ::basegfx::B3DVector& rB3DVector );
68
69OOO_DLLPUBLIC_CHARTTOOLS ::basegfx::B3DHomMatrix HomogenMatrixToB3DHomMatrix(
70 const css::drawing::HomogenMatrix & rHomogenMatrix );
71
73css::drawing::HomogenMatrix B3DHomMatrixToHomogenMatrix(
74 const ::basegfx::B3DHomMatrix & rB3DMatrix );
75
76OOO_DLLPUBLIC_CHARTTOOLS ::basegfx::B3DTuple GetRotationFromMatrix(
77 const ::basegfx::B3DHomMatrix & rB3DMatrix );
78
79OOO_DLLPUBLIC_CHARTTOOLS ::basegfx::B3DTuple GetScaleFromMatrix(
80 const ::basegfx::B3DHomMatrix & rB3DMatrix );
81
83
84} // namespace chart::BaseGFXHelper
85
86/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
#define OOO_DLLPUBLIC_CHARTTOOLS
void ReduceToRotationMatrix(::basegfx::B3DHomMatrix &rB3DMatrix)
OOO_DLLPUBLIC_CHARTTOOLS css::awt::Point B2IRectangleToAWTPoint(const ::basegfx::B2IRectangle &rB2IRectangle)
OOO_DLLPUBLIC_CHARTTOOLS::basegfx::B3DTuple GetRotationFromMatrix(const ::basegfx::B3DHomMatrix &rB3DMatrix)
OOO_DLLPUBLIC_CHARTTOOLS css::drawing::HomogenMatrix B3DHomMatrixToHomogenMatrix(const ::basegfx::B3DHomMatrix &rB3DMatrix)
::basegfx::B3DVector Position3DToB3DVector(const css::drawing::Position3D &rPosition)
::basegfx::B3DVector Direction3DToB3DVector(const css::drawing::Direction3D &rDirection)
css::drawing::Direction3D B3DVectorToDirection3D(const ::basegfx::B3DVector &rB3DVector)
OOO_DLLPUBLIC_CHARTTOOLS::basegfx::B3DHomMatrix HomogenMatrixToB3DHomMatrix(const css::drawing::HomogenMatrix &rHomogenMatrix)
css::drawing::Position3D B3DVectorToPosition3D(const ::basegfx::B3DVector &rB3DVector)
OOO_DLLPUBLIC_CHARTTOOLS::basegfx::B2IRectangle makeRectangle(const css::awt::Point &rPosition, const css::awt::Size &rSize)
OOO_DLLPUBLIC_CHARTTOOLS css::awt::Rectangle toAwtRectangle(const basegfx::B2IRectangle &rB2IRectangle)
OOO_DLLPUBLIC_CHARTTOOLS::basegfx::B3DTuple GetScaleFromMatrix(const ::basegfx::B3DHomMatrix &rB3DMatrix)
OOO_DLLPUBLIC_CHARTTOOLS::basegfx::B3DRange getBoundVolume(const css::drawing::PolyPolygonShape3D &rPolyPoly)
OOO_DLLPUBLIC_CHARTTOOLS css::awt::Size B2IRectangleToAWTSize(const ::basegfx::B2IRectangle &rB2IRectangle)