LibreOffice Module drawinglayer (master) 1
embedded3dprimitive2d.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
28
29
30// Embedded3DPrimitive2D class
31
33{
45 {
46 private:
49
52
55
65
68
71
76
78 bool impGetShadow3D() const;
79
81 virtual void create2DDecomposition(Primitive2DContainer& rContainer, const geometry::ViewInformation2D& rViewInformation) const override;
82
83 public:
87 basegfx::B2DHomMatrix aObjectTransformation,
88 geometry::ViewInformation3D aViewInformation3D,
89 const basegfx::B3DVector& rLightNormal,
90 double fShadowSlant,
91 const basegfx::B3DRange& rScene3DRange);
92
94 const primitive3d::Primitive3DContainer& getChildren3D() const { return mxChildren3D; }
95 const basegfx::B2DHomMatrix& getObjectTransformation() const { return maObjectTransformation; }
96 const geometry::ViewInformation3D& getViewInformation3D() const { return maViewInformation3D; }
97 const basegfx::B3DVector& getLightNormal() const { return maLightNormal; }
98 double getShadowSlant() const { return mfShadowSlant; }
99 const basegfx::B3DRange& getScene3DRange() const { return maScene3DRange; }
100
102 virtual bool operator==(const BasePrimitive2D& rPrimitive) const override;
103
105 virtual basegfx::B2DRange getB2DRange(const geometry::ViewInformation2D& rViewInformation) const override;
106
108 virtual sal_uInt32 getPrimitive2DID() const override;
109 };
110} // end of namespace drawinglayer::primitive2d
111
112
113/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
primitive3d::Primitive3DContainer mxChildren3D
the sequence of 3d primitives
basegfx::B2DHomMatrix maObjectTransformation
the 2D scene object transformation
geometry::ViewInformation3D maViewInformation3D
the 3D transformations
basegfx::B2DRange maB2DRange
#i96669# add simple range buffering for this primitive
bool mbShadow3DChecked
flag if given 3D geometry is already checked for shadow definitions and 2d shadows are created in maS...
const basegfx::B2DHomMatrix & getObjectTransformation() const
const geometry::ViewInformation3D & getViewInformation3D() const
Primitive2DContainer maShadowPrimitives
the primitiveSequence for on-demand created shadow primitives (see mbShadow3DChecked)
basegfx::B3DVector maLightNormal
if the embedded 3D primitives contain shadow, these parameters are needed to extract the shadow which...
const primitive3d::Primitive3DContainer & getChildren3D() const
data read access
#define DRAWINGLAYER_DLLPUBLIC
bool operator==(const XclFontData &rLeft, const XclFontData &rRight)