21#include <com/sun/star/awt/Point.hpp>
22#include <com/sun/star/awt/Size.hpp>
23#include <com/sun/star/drawing/Direction3D.hpp>
24#include <com/sun/star/drawing/HomogenMatrix.hpp>
25#include <com/sun/star/drawing/HomogenMatrix3.hpp>
26#include <com/sun/star/drawing/PointSequenceSequence.hpp>
27#include <com/sun/star/drawing/Position3D.hpp>
28#include <com/sun/star/drawing/PolyPolygonShape3D.hpp>
58OOO_DLLPUBLIC_CHARTTOOLS
59::basegfx::B2DHomMatrix
IgnoreZ( const ::basegfx::B3DHomMatrix& rM );
68OOO_DLLPUBLIC_CHARTTOOLS ::basegfx::B3DPoint
Position3DToB3DPoint(
const css::drawing::Position3D& rPosition );
86 ,
const css::drawing::Position3D& rPos
87 , sal_Int32 nSequenceIndex=0 );
89void AddPointToPoly( std::vector<std::vector<css::drawing::Position3D>>& rPoly
90 ,
const css::drawing::Position3D& rPos
91 , sal_Int32 nSequenceIndex=0 );
96 const std::vector<std::vector<css::drawing::Position3D>>& rPolygon
97 , sal_Int32 nPointIndex, sal_Int32 nPolyIndex );
99 const css::drawing::PolyPolygonShape3D& rPolygon
100 , sal_Int32 nPointIndex, sal_Int32 nPolyIndex );
103void addPolygon( std::vector<std::vector<css::drawing::Position3D>>& rRet
104 ,
const std::vector<std::vector<css::drawing::Position3D>>& rAdd );
108void appendPoly( std::vector<std::vector<css::drawing::Position3D>>& rRet
109 ,
const std::vector<std::vector<css::drawing::Position3D>>& rAdd );
115 const css::drawing::PolyPolygonBezierCoords& rBezier );
121 const css::drawing::PolyPolygonShape3D& rPolyPolygon );
124 const std::vector<std::vector<css::drawing::Position3D>>& rPolyPolygon );
130 const std::vector<std::vector<css::drawing::Position3D>>& rPolyPolygon );
136 ,
const css::drawing::PointSequenceSequence& rAdd );
142 ,
const css::drawing::Direction3D& rDirection);
148 ,
const css::drawing::Position3D& rPos2);
176 const css::uno::Reference< css::chart2::data::XDataSequence > & xDataSequence );
180 const css::uno::Reference< css::chart2::data::XDataSequence > & xDataSequence );
184template<
typename T >
188 sal_Int32 nOuter, nInner,
nCount = 0,
190 const sal_Int32 nOuterSize = aSeqSeq.size();
191 for( nOuter=0; nOuter<nOuterSize; ++nOuter )
192 nResultSize += aSeqSeq[nOuter].
size();
193 std::vector< T > aResult( nResultSize );
195 for( nOuter=0; nOuter<nOuterSize; ++nOuter )
197 const sal_Int32 nInnerSize = aSeqSeq[nOuter].size();
198 for( nInner=0; nInner<nInnerSize; ++nInner, ++
nCount )
199 aResult[
nCount] = aSeqSeq[nOuter][nInner];
214 std::u16string_view rParamToReplace,
215 std::u16string_view rReplaceWith );
OOO_DLLPUBLIC_CHARTTOOLS::basegfx::B3DVector Direction3DToB3DVector(const css::drawing::Direction3D &rDirection)
Direction3D -> B3DVector.
OOO_DLLPUBLIC_CHARTTOOLS css::drawing::Position3D getPointFromPoly(const std::vector< std::vector< css::drawing::Position3D > > &rPolygon, sal_Int32 nPointIndex, sal_Int32 nPolyIndex)
get a single Point from a Polygon
OOO_DLLPUBLIC_CHARTTOOLS css::drawing::Position3D B3DPointToPosition3D(const ::basegfx::B3DPoint &rPoint)
B3DPoint -> Position3D.
OOO_DLLPUBLIC_CHARTTOOLS css::awt::Point Position3DToAWTPoint(const css::drawing::Position3D &rPos)
Position3D --> awt::Point (2D)
OOO_DLLPUBLIC_CHARTTOOLS bool hasLongOrShortValue(const css::uno::Any &rAny)
OOO_DLLPUBLIC_CHARTTOOLS css::drawing::HomogenMatrix3 B2DHomMatrixToHomogenMatrix3(const ::basegfx::B2DHomMatrix &rM)
B2DHomMatrix <-> HomogenMatrix3.
OOO_DLLPUBLIC_CHARTTOOLS css::drawing::Direction3D operator-(const css::drawing::Position3D &rPos1, const css::drawing::Position3D &rPos2)
Position3D - Position3D == Direction3D.
OOO_DLLPUBLIC_CHARTTOOLS bool replaceParamterInString(OUString &rInOutResourceString, std::u16string_view rParamToReplace, std::u16string_view rReplaceWith)
OOO_DLLPUBLIC_CHARTTOOLS void AddPointToPoly(css::drawing::PolyPolygonShape3D &rPoly, const css::drawing::Position3D &rPos, sal_Int32 nSequenceIndex=0)
PolyPolygonShape3D + drawing::Position3D -> PolyPolygonShape3D.
OOO_DLLPUBLIC_CHARTTOOLS css::awt::Size ToSize(const css::awt::Rectangle &rRectangle)
awt::Rect --> awt::Size (2D)
OOO_DLLPUBLIC_CHARTTOOLS basegfx::B2DPolyPolygon PolyToB2DPolyPolygon(const std::vector< std::vector< css::drawing::Position3D > > &rPolyPolygon)
PolyPolygonShape3D -> basegfx::B2DPolyPolygon (2D)
OOO_DLLPUBLIC_CHARTTOOLS void addPolygon(std::vector< std::vector< css::drawing::Position3D > > &rRet, const std::vector< std::vector< css::drawing::Position3D > > &rAdd)
OOO_DLLPUBLIC_CHARTTOOLS css::drawing::PolyPolygonShape3D BezierToPoly(const css::drawing::PolyPolygonBezierCoords &rBezier)
PolyPolygonBezierCoords -> PolyPolygonShape3D.
OOO_DLLPUBLIC_CHARTTOOLS void appendPointSequence(css::drawing::PointSequenceSequence &rTarget, const css::drawing::PointSequenceSequence &rAdd)
drawing::PointSequenceSequence + drawing::PointSequenceSequence
OOO_DLLPUBLIC_CHARTTOOLS void appendPoly(std::vector< std::vector< css::drawing::Position3D > > &rRet, const std::vector< std::vector< css::drawing::Position3D > > &rAdd)
PolyPolygonShape3D + PolyPolygonShape3D -> PolyPolygonShape3D.
OOO_DLLPUBLIC_CHARTTOOLS::basegfx::B3DPoint Position3DToB3DPoint(const css::drawing::Position3D &rPosition)
Position3D -> B3DPoint.
OOO_DLLPUBLIC_CHARTTOOLS sal_Int16 getShortForLongAlso(const css::uno::Any &rAny)
OOO_DLLPUBLIC_CHARTTOOLS css::drawing::Direction3D B3DVectorToDirection3D(const ::basegfx::B3DVector &rVector)
B3DVector -> Direction3D.
OOO_DLLPUBLIC_CHARTTOOLS css::awt::Point ToPoint(const css::awt::Rectangle &rRectangle)
awt::Rect --> awt::Point (2D)
OOO_DLLPUBLIC_CHARTTOOLS css::drawing::HomogenMatrix B3DHomMatrixToHomogenMatrix(const ::basegfx::B3DHomMatrix &rM)
diverse methods for class conversions; e.g.
OOO_DLLPUBLIC_CHARTTOOLS css::uno::Sequence< double > DataSequenceToDoubleSequence(const css::uno::Reference< css::chart2::data::XDataSequence > &xDataSequence)
chart2::XDataSequence -> uno::Sequence< double >
std::vector< T > FlattenSequence(const std::vector< std::vector< T > > &aSeqSeq)
std::vector< std::vector< T > > -> std::vector< T >
OOO_DLLPUBLIC_CHARTTOOLS css::awt::Size Direction3DToAWTSize(const css::drawing::Direction3D &rDirection)
Direction3D --> awt::Size (2D)
OOO_DLLPUBLIC_CHARTTOOLS::basegfx::B2DHomMatrix IgnoreZ(const ::basegfx::B3DHomMatrix &rM)
basegfx::B3DHomMatrix -> B2DHomMatrix
OOO_DLLPUBLIC_CHARTTOOLS css::drawing::PointSequenceSequence PolyToPointSequence(const css::drawing::PolyPolygonShape3D &rPolyPolygon)
PolyPolygonShape3D -> drawing::PointSequenceSequence (2D)
OOO_DLLPUBLIC_CHARTTOOLS css::uno::Sequence< OUString > DataSequenceToStringSequence(const css::uno::Reference< css::chart2::data::XDataSequence > &xDataSequence)
OOO_DLLPUBLIC_CHARTTOOLS css::drawing::Position3D operator+(const css::drawing::Position3D &rPos, const css::drawing::Direction3D &rDirection)
Position3D + Direction3D == Position3D.
OOO_DLLPUBLIC_CHARTTOOLS css::drawing::Position3D SequenceToPosition3D(const css::uno::Sequence< double > &rSeq)
Sequence<double> -> drawing::Position3D.
OOO_DLLPUBLIC_CHARTTOOLS::basegfx::B3DHomMatrix HomogenMatrixToB3DHomMatrix(const css::drawing::HomogenMatrix &rHM)
HomogenMatrix -> basegfx::B3DHomMatrix.
OOO_DLLPUBLIC_CHARTTOOLS bool hasDoubleValue(const css::uno::Any &rAny)