LibreOffice Module drawinglayer (master) 1
sdrdecompositiontools3d.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19
20#pragma once
21
23#include <com/sun/star/drawing/TextureProjectionMode.hpp>
24#include <vector>
25
26
27// predefines
28
29namespace basegfx {
30 class B3DPolyPolygon;
31 class B3DHomMatrix;
32 class B2DVector;
33}
34
36 class SdrLineAttribute;
37 class SdrFillAttribute;
38 class Sdr3DObjectAttribute;
39 class FillGradientAttribute;
40 class SdrShadowAttribute;
41}
42
43
45 {
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);
51
52 // #i98314#
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);
59
61 const basegfx::B3DPolyPolygon& rUnitPolyPolygon,
62 const basegfx::B3DHomMatrix& rObjectTransform,
63 const attribute::SdrLineAttribute& rLine);
64
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);
72
74 const Primitive3DContainer& rSource,
75 const attribute::SdrShadowAttribute& rShadow,
76 bool bShadow3D);
77
79 const ::std::vector< basegfx::B3DPolyPolygon >& r3DPolyPolygonVector,
80 const basegfx::B3DHomMatrix& rObjectTransform,
81 const basegfx::B2DVector& rTextureSize,
82 const attribute::Sdr3DObjectAttribute& aSdr3DObjectAttribute);
83
84} // end of namespace drawinglayer::primitive3d
85
86
87/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
SdrPrimitive3D class.
void applyNormalsInvertTo3DGeometry(std::vector< basegfx::B3DPolyPolygon > &rFill)
Primitive3DContainer create3DPolyPolygonFillPrimitives(const std::vector< basegfx::B3DPolyPolygon > &r3DPolyPolygonVector, const basegfx::B3DHomMatrix &rObjectTransform, const basegfx::B2DVector &rTextureSize, const attribute::Sdr3DObjectAttribute &aSdr3DObjectAttribute, const attribute::SdrFillAttribute &rFill, const attribute::FillGradientAttribute &rFillGradient)
Primitive3DContainer createHiddenGeometryPrimitives3D(const std::vector< basegfx::B3DPolyPolygon > &r3DPolyPolygonVector, const basegfx::B3DHomMatrix &rObjectTransform, const basegfx::B2DVector &rTextureSize, const attribute::Sdr3DObjectAttribute &aSdr3DObjectAttribute)
void applyNormalsKindSphereTo3DGeometry(std::vector< basegfx::B3DPolyPolygon > &rFill, const basegfx::B3DRange &rRange)
basegfx::B3DRange getRangeFrom3DGeometry(std::vector< basegfx::B3DPolyPolygon > &rFill)
void applyTextureTo3DGeometry(css::drawing::TextureProjectionMode eModeX, css::drawing::TextureProjectionMode eModeY, std::vector< basegfx::B3DPolyPolygon > &rFill, const basegfx::B3DRange &rRange, const basegfx::B2DVector &rTextureSize)
void applyNormalsKindFlatTo3DGeometry(std::vector< basegfx::B3DPolyPolygon > &rFill)
Primitive3DContainer createShadowPrimitive3D(const Primitive3DContainer &rSource, const attribute::SdrShadowAttribute &rShadow, bool bShadow3D)
Primitive3DContainer create3DPolyPolygonLinePrimitives(const basegfx::B3DPolyPolygon &rUnitPolyPolygon, const basegfx::B3DHomMatrix &rObjectTransform, const attribute::SdrLineAttribute &rLine)