1*4f506f19SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*4f506f19SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*4f506f19SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*4f506f19SAndrew Rist  * distributed with this work for additional information
6*4f506f19SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*4f506f19SAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*4f506f19SAndrew Rist  * "License"); you may not use this file except in compliance
9*4f506f19SAndrew Rist  * with the License.  You may obtain a copy of the License at
10*4f506f19SAndrew Rist  *
11*4f506f19SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*4f506f19SAndrew Rist  *
13*4f506f19SAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*4f506f19SAndrew Rist  * software distributed under the License is distributed on an
15*4f506f19SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*4f506f19SAndrew Rist  * KIND, either express or implied.  See the License for the
17*4f506f19SAndrew Rist  * specific language governing permissions and limitations
18*4f506f19SAndrew Rist  * under the License.
19*4f506f19SAndrew Rist  *
20*4f506f19SAndrew Rist  *************************************************************/
21*4f506f19SAndrew Rist 
22*4f506f19SAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir #ifndef INCLUDED_DRAWINGLAYER_PRIMITIVE3D_SDRDECOMPOSITIONTOOLS3D_HXX
25cdf0e10cSrcweir #define INCLUDED_DRAWINGLAYER_PRIMITIVE3D_SDRDECOMPOSITIONTOOLS3D_HXX
26cdf0e10cSrcweir 
27090f0eb8SEike Rathke #include <drawinglayer/drawinglayerdllapi.h>
28cdf0e10cSrcweir #include <drawinglayer/primitive3d/baseprimitive3d.hxx>
29cdf0e10cSrcweir #include <com/sun/star/drawing/TextureProjectionMode.hpp>
30cdf0e10cSrcweir #include <vector>
31cdf0e10cSrcweir 
32cdf0e10cSrcweir //////////////////////////////////////////////////////////////////////////////
33cdf0e10cSrcweir // predefines
34cdf0e10cSrcweir 
35cdf0e10cSrcweir namespace basegfx {
36cdf0e10cSrcweir 	class B3DPolygon;
37cdf0e10cSrcweir 	class B3DPolyPolygon;
38cdf0e10cSrcweir 	class B3DHomMatrix;
39cdf0e10cSrcweir 	class B2DVector;
40cdf0e10cSrcweir }
41cdf0e10cSrcweir 
42cdf0e10cSrcweir namespace drawinglayer { namespace attribute {
43cdf0e10cSrcweir 	class SdrLineAttribute;
44cdf0e10cSrcweir 	class SdrFillAttribute;
45cdf0e10cSrcweir 	class Sdr3DObjectAttribute;
46cdf0e10cSrcweir 	class FillGradientAttribute;
47cdf0e10cSrcweir 	class SdrShadowAttribute;
48cdf0e10cSrcweir }}
49cdf0e10cSrcweir 
50cdf0e10cSrcweir //////////////////////////////////////////////////////////////////////////////
51cdf0e10cSrcweir 
52cdf0e10cSrcweir namespace drawinglayer
53cdf0e10cSrcweir {
54cdf0e10cSrcweir 	namespace primitive3d
55cdf0e10cSrcweir 	{
56cdf0e10cSrcweir 		// #i98295#
57cdf0e10cSrcweir 		basegfx::B3DRange getRangeFrom3DGeometry(::std::vector< basegfx::B3DPolyPolygon >& rFill);
58cdf0e10cSrcweir 		void applyNormalsKindSphereTo3DGeometry(::std::vector< basegfx::B3DPolyPolygon >& rFill, const basegfx::B3DRange& rRange);
59cdf0e10cSrcweir 		void applyNormalsKindFlatTo3DGeometry(::std::vector< basegfx::B3DPolyPolygon >& rFill);
60cdf0e10cSrcweir 		void applyNormalsInvertTo3DGeometry(::std::vector< basegfx::B3DPolyPolygon >& rFill);
61cdf0e10cSrcweir 
62cdf0e10cSrcweir 		// #i98314#
63cdf0e10cSrcweir 		void applyTextureTo3DGeometry(
64cdf0e10cSrcweir 			::com::sun::star::drawing::TextureProjectionMode eModeX,
65cdf0e10cSrcweir 			::com::sun::star::drawing::TextureProjectionMode eModeY,
66cdf0e10cSrcweir 			::std::vector< basegfx::B3DPolyPolygon >& rFill,
67cdf0e10cSrcweir 			const basegfx::B3DRange& rRange,
68cdf0e10cSrcweir 			const basegfx::B2DVector& rTextureSize);
69cdf0e10cSrcweir 
70cdf0e10cSrcweir 		Primitive3DSequence create3DPolyPolygonLinePrimitives(
71cdf0e10cSrcweir 			const basegfx::B3DPolyPolygon& rUnitPolyPolygon,
72cdf0e10cSrcweir 			const basegfx::B3DHomMatrix& rObjectTransform,
73cdf0e10cSrcweir 			const attribute::SdrLineAttribute& rLine);
74cdf0e10cSrcweir 
75cdf0e10cSrcweir 		Primitive3DSequence create3DPolyPolygonFillPrimitives(
76cdf0e10cSrcweir 			const ::std::vector< basegfx::B3DPolyPolygon >& r3DPolyPolygonVector,
77cdf0e10cSrcweir 			const basegfx::B3DHomMatrix& rObjectTransform,
78cdf0e10cSrcweir 			const basegfx::B2DVector& rTextureSize,
79cdf0e10cSrcweir 			const attribute::Sdr3DObjectAttribute& aSdr3DObjectAttribute,
80cdf0e10cSrcweir 			const attribute::SdrFillAttribute& rFill,
81cdf0e10cSrcweir 			const attribute::FillGradientAttribute& rFillGradient);
82cdf0e10cSrcweir 
83cdf0e10cSrcweir 		Primitive3DSequence createShadowPrimitive3D(
84cdf0e10cSrcweir 			const Primitive3DSequence& rSource,
85cdf0e10cSrcweir 			const attribute::SdrShadowAttribute& rShadow,
86cdf0e10cSrcweir 			bool bShadow3D);
87cdf0e10cSrcweir 
88cdf0e10cSrcweir         Primitive3DSequence createHiddenGeometryPrimitives3D(
89cdf0e10cSrcweir 			const ::std::vector< basegfx::B3DPolyPolygon >& r3DPolyPolygonVector,
90cdf0e10cSrcweir 			const basegfx::B3DHomMatrix& rObjectTransform,
91cdf0e10cSrcweir 			const basegfx::B2DVector& rTextureSize,
92cdf0e10cSrcweir 			const attribute::Sdr3DObjectAttribute& aSdr3DObjectAttribute);
93cdf0e10cSrcweir 
94cdf0e10cSrcweir 	} // end of namespace primitive3d
95cdf0e10cSrcweir } // end of namespace drawinglayer
96cdf0e10cSrcweir 
97cdf0e10cSrcweir //////////////////////////////////////////////////////////////////////////////
98cdf0e10cSrcweir 
99cdf0e10cSrcweir #endif //_DRAWINGLAYER_PRIMITIVE3D_SDRDECOMPOSITIONTOOLS3D_HXX
100cdf0e10cSrcweir 
101cdf0e10cSrcweir // eof
102