update credits
[LibreOffice.git] / include / drawinglayer / primitive3d / sdrdecompositiontools3d.hxx
blobffe0e2cea67617edb6b2131444e4f30d550f58a5
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #ifndef INCLUDED_DRAWINGLAYER_PRIMITIVE3D_SDRDECOMPOSITIONTOOLS3D_HXX
21 #define INCLUDED_DRAWINGLAYER_PRIMITIVE3D_SDRDECOMPOSITIONTOOLS3D_HXX
23 #include <drawinglayer/drawinglayerdllapi.h>
25 #include <drawinglayer/primitive3d/baseprimitive3d.hxx>
26 #include <com/sun/star/drawing/TextureProjectionMode.hpp>
27 #include <vector>
29 //////////////////////////////////////////////////////////////////////////////
30 // predefines
32 namespace basegfx {
33 class B3DPolygon;
34 class B3DPolyPolygon;
35 class B3DHomMatrix;
36 class B2DVector;
39 namespace drawinglayer { namespace attribute {
40 class SdrLineAttribute;
41 class SdrFillAttribute;
42 class Sdr3DObjectAttribute;
43 class FillGradientAttribute;
44 class SdrShadowAttribute;
47 //////////////////////////////////////////////////////////////////////////////
49 namespace drawinglayer
51 namespace primitive3d
53 // #i98295#
54 basegfx::B3DRange DRAWINGLAYER_DLLPUBLIC getRangeFrom3DGeometry(::std::vector< basegfx::B3DPolyPolygon >& rFill);
55 void DRAWINGLAYER_DLLPUBLIC applyNormalsKindSphereTo3DGeometry(::std::vector< basegfx::B3DPolyPolygon >& rFill, const basegfx::B3DRange& rRange);
56 void DRAWINGLAYER_DLLPUBLIC applyNormalsKindFlatTo3DGeometry(::std::vector< basegfx::B3DPolyPolygon >& rFill);
57 void DRAWINGLAYER_DLLPUBLIC applyNormalsInvertTo3DGeometry(::std::vector< basegfx::B3DPolyPolygon >& rFill);
59 // #i98314#
60 void DRAWINGLAYER_DLLPUBLIC applyTextureTo3DGeometry(
61 ::com::sun::star::drawing::TextureProjectionMode eModeX,
62 ::com::sun::star::drawing::TextureProjectionMode eModeY,
63 ::std::vector< basegfx::B3DPolyPolygon >& rFill,
64 const basegfx::B3DRange& rRange,
65 const basegfx::B2DVector& rTextureSize);
67 Primitive3DSequence DRAWINGLAYER_DLLPUBLIC create3DPolyPolygonLinePrimitives(
68 const basegfx::B3DPolyPolygon& rUnitPolyPolygon,
69 const basegfx::B3DHomMatrix& rObjectTransform,
70 const attribute::SdrLineAttribute& rLine);
72 Primitive3DSequence DRAWINGLAYER_DLLPUBLIC create3DPolyPolygonFillPrimitives(
73 const ::std::vector< basegfx::B3DPolyPolygon >& r3DPolyPolygonVector,
74 const basegfx::B3DHomMatrix& rObjectTransform,
75 const basegfx::B2DVector& rTextureSize,
76 const attribute::Sdr3DObjectAttribute& aSdr3DObjectAttribute,
77 const attribute::SdrFillAttribute& rFill,
78 const attribute::FillGradientAttribute& rFillGradient);
80 Primitive3DSequence DRAWINGLAYER_DLLPUBLIC createShadowPrimitive3D(
81 const Primitive3DSequence& rSource,
82 const attribute::SdrShadowAttribute& rShadow,
83 bool bShadow3D);
85 Primitive3DSequence DRAWINGLAYER_DLLPUBLIC createHiddenGeometryPrimitives3D(
86 const ::std::vector< basegfx::B3DPolyPolygon >& r3DPolyPolygonVector,
87 const basegfx::B3DHomMatrix& rObjectTransform,
88 const basegfx::B2DVector& rTextureSize,
89 const attribute::Sdr3DObjectAttribute& aSdr3DObjectAttribute);
91 } // end of namespace primitive3d
92 } // end of namespace drawinglayer
94 //////////////////////////////////////////////////////////////////////////////
96 #endif //_DRAWINGLAYER_PRIMITIVE3D_SDRDECOMPOSITIONTOOLS3D_HXX
98 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */