21#include <com/sun/star/drawing/PolyPolygonShape3D.hpp>
22#include <com/sun/star/awt/Rectangle.hpp>
36 sal_Int32 nPolyCount = rPolyPoly.SequenceX.getLength();
37 for(sal_Int32 nPoly = 0; nPoly < nPolyCount; nPoly++)
39 sal_Int32 nPointCount = rPolyPoly.SequenceX[nPoly].getLength();
40 for( sal_Int32 nPoint = 0; nPoint < nPointCount; nPoint++)
45 rPolyPoly.SequenceX[nPoly][nPoint]
46 , rPolyPoly.SequenceY[nPoly][nPoint]
47 , rPolyPoly.SequenceZ[nPoly][nPoint]));
53 rPolyPoly.SequenceX[nPoly][nPoint]
54 , rPolyPoly.SequenceY[nPoly][nPoint]
55 , rPolyPoly.SequenceZ[nPoly][nPoint]));
68 sal_Int32 nPolyCount = rPolyPoly.size();
69 for(sal_Int32 nPoly = 0; nPoly < nPolyCount; nPoly++)
71 sal_Int32 nPointCount = rPolyPoly[nPoly].size();
72 for( sal_Int32 nPoint = 0; nPoint < nPointCount; nPoint++)
77 rPolyPoly[nPoly][nPoint].PositionX
78 , rPolyPoly[nPoly][nPoint].PositionY
79 , rPolyPoly[nPoly][nPoint].PositionZ));
85 rPolyPoly[nPoly][nPoint].PositionX
86 , rPolyPoly[nPoly][nPoint].PositionY
87 , rPolyPoly[nPoly][nPoint].PositionZ));
97 return B2IRectangle(rPos.X,rPos.Y,rPos.X+rSize.Width,rPos.Y+rSize.Height);
102 return B2IRectangle(rRect.X, rRect.Y, rRect.X+rRect.Width, rRect.Y+rRect.Height);
107 return awt::Point( rB2IRectangle.getMinX(), rB2IRectangle.getMinY() );
112 return awt::Size(
static_cast< sal_Int32
>( rB2IRectangle.getWidth()),
113 static_cast< sal_Int32
>( rB2IRectangle.getHeight()));
125 rDirection.DirectionX
126 , rDirection.DirectionY
127 , rDirection.DirectionZ
144 , rPosition.PositionY
145 , rPosition.PositionZ
160 B3DHomMatrix aResult;
162 aResult.set( 0, 0, rHomogenMatrix.Line1.Column1 );
163 aResult.set( 0, 1, rHomogenMatrix.Line1.Column2 );
164 aResult.set( 0, 2, rHomogenMatrix.Line1.Column3 );
165 aResult.set( 0, 3, rHomogenMatrix.Line1.Column4 );
167 aResult.set( 1, 0, rHomogenMatrix.Line2.Column1 );
168 aResult.set( 1, 1, rHomogenMatrix.Line2.Column2 );
169 aResult.set( 1, 2, rHomogenMatrix.Line2.Column3 );
170 aResult.set( 1, 3, rHomogenMatrix.Line2.Column4 );
172 aResult.set( 2, 0, rHomogenMatrix.Line3.Column1 );
173 aResult.set( 2, 1, rHomogenMatrix.Line3.Column2 );
174 aResult.set( 2, 2, rHomogenMatrix.Line3.Column3 );
175 aResult.set( 2, 3, rHomogenMatrix.Line3.Column4 );
177 aResult.set( 3, 0, rHomogenMatrix.Line4.Column1 );
178 aResult.set( 3, 1, rHomogenMatrix.Line4.Column2 );
179 aResult.set( 3, 2, rHomogenMatrix.Line4.Column3 );
180 aResult.set( 3, 3, rHomogenMatrix.Line4.Column4 );
187 HomogenMatrix aResult;
189 aResult.Line1.Column1 = rB3DMatrix.get( 0, 0 );
190 aResult.Line1.Column2 = rB3DMatrix.get( 0, 1 );
191 aResult.Line1.Column3 = rB3DMatrix.get( 0, 2 );
192 aResult.Line1.Column4 = rB3DMatrix.get( 0, 3 );
194 aResult.Line2.Column1 = rB3DMatrix.get( 1, 0 );
195 aResult.Line2.Column2 = rB3DMatrix.get( 1, 1 );
196 aResult.Line2.Column3 = rB3DMatrix.get( 1, 2 );
197 aResult.Line2.Column4 = rB3DMatrix.get( 1, 3 );
199 aResult.Line3.Column1 = rB3DMatrix.get( 2, 0 );
200 aResult.Line3.Column2 = rB3DMatrix.get( 2, 1 );
201 aResult.Line3.Column3 = rB3DMatrix.get( 2, 2 );
202 aResult.Line3.Column4 = rB3DMatrix.get( 2, 3 );
204 aResult.Line4.Column1 = rB3DMatrix.get( 3, 0 );
205 aResult.Line4.Column2 = rB3DMatrix.get( 3, 1 );
206 aResult.Line4.Column3 = rB3DMatrix.get( 3, 2 );
207 aResult.Line4.Column4 = rB3DMatrix.get( 3, 3 );
214 B3DTuple aScale, aTranslation, aRotation, aShearing;
215 rB3DMatrix.decompose( aScale, aTranslation, aRotation, aShearing );
221 B3DTuple aScale, aTranslation, aRotation, aShearing;
222 rB3DMatrix.decompose( aScale, aTranslation, aRotation, aShearing );
230 aRotationMatrix.
rotate(aR.getX(),aR.getY(),aR.getZ());
231 rB3DMatrix = aRotationMatrix;
void rotate(double fAngleX, double fAngleY, double fAngleZ)
void expand(const B3DTuple &rTuple)
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)