LibreOffice Module drawinglayer (master) 1
shadow3dextractor.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
28
29namespace basegfx { class B3DPolyPolygon; }
30namespace basegfx { class B3DPolygon; }
31
32
34 {
43 {
44 private:
48
51
59
62
64 bool mbConvert : 1;
65
68
72
73 /* as tooling, the process() implementation takes over API handling and calls this
74 virtual render method when the primitive implementation is BasePrimitive3D-based.
75 */
76 virtual void processBasePrimitive3D(const primitive3d::BasePrimitive3D& rCandidate) override;
77
78 public:
80 const geometry::ViewInformation3D& rViewInformation,
81 basegfx::B2DHomMatrix aObjectTransformation,
82 const basegfx::B3DVector& rLightNormal,
83 double fShadowSlant,
84 const basegfx::B3DRange& rContained3DRange);
85 virtual ~Shadow3DExtractingProcessor() override;
86
91 };
92
93} // end of namespace drawinglayer::processor3d
94
95/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
const primitive2d::Primitive2DContainer & getPrimitive2DSequence() const
data read access
basegfx::B2DPolygon impDoShadowProjection(const basegfx::B3DPolygon &rSource)
local helpers
basegfx::B3DHomMatrix maWorldToEye
prepared data (transformations) for 2D/3D shadow calculations
virtual void processBasePrimitive3D(const primitive3d::BasePrimitive3D &rCandidate) override
const basegfx::B3DHomMatrix & getWorldToEye() const
Shadow3DExtractingProcessor(const geometry::ViewInformation3D &rViewInformation, basegfx::B2DHomMatrix aObjectTransformation, const basegfx::B3DVector &rLightNormal, double fShadowSlant, const basegfx::B3DRange &rContained3DRange)
bool mbShadowProjectionIsValid
flag if shadow plane projection preparation led to valid results
primitive2d::Primitive2DContainer maPrimitive2DSequence
result holding vector (2D) and target vector for stacking (inited to &maPrimitive2DSequence)
basegfx::B2DHomMatrix maObjectTransformation
object transformation for scene for 2d definition
primitive2d::Primitive2DContainer * mpPrimitive2DSequence
bool mbUseProjection
flag if conversion shall use projection
const basegfx::B2DHomMatrix & getObjectTransformation() const