Version 7.6.3.2-android, tag libreoffice-7.6.3.2-android
[LibreOffice.git] / drawinglayer / inc / primitive3d / sdrdecompositiontools3d.hxx
blob6e549289b24cf65422af65af21078d1e34d414ac
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 #pragma once
22 #include <drawinglayer/primitive3d/baseprimitive3d.hxx>
23 #include <com/sun/star/drawing/TextureProjectionMode.hpp>
24 #include <vector>
27 // predefines
29 namespace basegfx {
30 class B3DPolyPolygon;
31 class B3DHomMatrix;
32 class B2DVector;
35 namespace drawinglayer::attribute {
36 class SdrLineAttribute;
37 class SdrFillAttribute;
38 class Sdr3DObjectAttribute;
39 class FillGradientAttribute;
40 class SdrShadowAttribute;
44 namespace drawinglayer::primitive3d
46 // #i98295#
47 basegfx::B3DRange getRangeFrom3DGeometry(::std::vector< basegfx::B3DPolyPolygon >& rFill);
48 void applyNormalsKindSphereTo3DGeometry(::std::vector< basegfx::B3DPolyPolygon >& rFill, const basegfx::B3DRange& rRange);
49 void applyNormalsKindFlatTo3DGeometry(::std::vector< basegfx::B3DPolyPolygon >& rFill);
50 void applyNormalsInvertTo3DGeometry(::std::vector< basegfx::B3DPolyPolygon >& rFill);
52 // #i98314#
53 void applyTextureTo3DGeometry(
54 css::drawing::TextureProjectionMode eModeX,
55 css::drawing::TextureProjectionMode eModeY,
56 ::std::vector< basegfx::B3DPolyPolygon >& rFill,
57 const basegfx::B3DRange& rRange,
58 const basegfx::B2DVector& rTextureSize);
60 Primitive3DContainer create3DPolyPolygonLinePrimitives(
61 const basegfx::B3DPolyPolygon& rUnitPolyPolygon,
62 const basegfx::B3DHomMatrix& rObjectTransform,
63 const attribute::SdrLineAttribute& rLine);
65 Primitive3DContainer create3DPolyPolygonFillPrimitives(
66 const ::std::vector< basegfx::B3DPolyPolygon >& r3DPolyPolygonVector,
67 const basegfx::B3DHomMatrix& rObjectTransform,
68 const basegfx::B2DVector& rTextureSize,
69 const attribute::Sdr3DObjectAttribute& aSdr3DObjectAttribute,
70 const attribute::SdrFillAttribute& rFill,
71 const attribute::FillGradientAttribute& rFillGradient);
73 Primitive3DContainer createShadowPrimitive3D(
74 const Primitive3DContainer& rSource,
75 const attribute::SdrShadowAttribute& rShadow,
76 bool bShadow3D);
78 Primitive3DContainer createHiddenGeometryPrimitives3D(
79 const ::std::vector< basegfx::B3DPolyPolygon >& r3DPolyPolygonVector,
80 const basegfx::B3DHomMatrix& rObjectTransform,
81 const basegfx::B2DVector& rTextureSize,
82 const attribute::Sdr3DObjectAttribute& aSdr3DObjectAttribute);
84 } // end of namespace drawinglayer::primitive3d
87 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */