LibreOffice Module drawinglayer (master)
1
drawinglayer
inc
processor3d
geometry2dextractor.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
22
#include <
drawinglayer/processor3d/baseprocessor3d.hxx
>
23
#include <
drawinglayer/primitive2d/Primitive2DContainer.hxx
>
24
#include <
basegfx/matrix/b2dhommatrix.hxx
>
25
#include <
basegfx/color/bcolormodifier.hxx
>
26
27
28
namespace
drawinglayer::processor3d
29
{
36
class
Geometry2DExtractingProcessor
final :
public
BaseProcessor3D
37
{
38
private
:
40
primitive2d::Primitive2DContainer
maPrimitive2DSequence
;
41
43
basegfx::B2DHomMatrix
maObjectTransformation
;
44
46
basegfx::BColorModifierStack
maBColorModifierStack
;
47
48
/* as tooling, the process() implementation takes over API handling and calls this
49
virtual render method when the primitive implementation is BasePrimitive3D-based.
50
*/
51
virtual
void
processBasePrimitive3D
(
const
primitive3d::BasePrimitive3D
& rCandidate)
override
;
52
53
public
:
54
Geometry2DExtractingProcessor
(
55
const
geometry::ViewInformation3D
& rViewInformation,
56
basegfx::B2DHomMatrix
aObjectTransformation);
57
58
// data read access
59
const
primitive2d::Primitive2DContainer
&
getPrimitive2DSequence
()
const
{
return
maPrimitive2DSequence
; }
60
const
basegfx::B2DHomMatrix
&
getObjectTransformation
()
const
{
return
maObjectTransformation
; }
61
};
62
63
}
// end of namespace drawinglayer::processor3d
64
65
66
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Primitive2DContainer.hxx
b2dhommatrix.hxx
baseprocessor3d.hxx
bcolormodifier.hxx
basegfx::B2DHomMatrix
basegfx::BColorModifierStack
drawinglayer::geometry::ViewInformation3D
ViewInformation3D class.
Definition:
viewinformation3d.hxx:53
drawinglayer::primitive2d::Primitive2DContainer
Definition:
Primitive2DContainer.hxx:41
drawinglayer::primitive3d::BasePrimitive3D
BasePrimitive3D class.
Definition:
baseprimitive3d.hxx:97
drawinglayer::processor3d::BaseProcessor3D
BaseProcessor3D class.
Definition:
baseprocessor3d.hxx:39
drawinglayer::processor3d::Geometry2DExtractingProcessor
Geometry2DExtractingProcessor class.
Definition:
geometry2dextractor.hxx:37
drawinglayer::processor3d::Geometry2DExtractingProcessor::maObjectTransformation
basegfx::B2DHomMatrix maObjectTransformation
object transformation for scene for 2d definition
Definition:
geometry2dextractor.hxx:43
drawinglayer::processor3d::Geometry2DExtractingProcessor::maPrimitive2DSequence
primitive2d::Primitive2DContainer maPrimitive2DSequence
result holding vector (2D)
Definition:
geometry2dextractor.hxx:40
drawinglayer::processor3d::Geometry2DExtractingProcessor::maBColorModifierStack
basegfx::BColorModifierStack maBColorModifierStack
the modifiedColorPrimitive stack
Definition:
geometry2dextractor.hxx:46
drawinglayer::processor3d::Geometry2DExtractingProcessor::getObjectTransformation
const basegfx::B2DHomMatrix & getObjectTransformation() const
Definition:
geometry2dextractor.hxx:60
drawinglayer::processor3d::Geometry2DExtractingProcessor::Geometry2DExtractingProcessor
Geometry2DExtractingProcessor(const geometry::ViewInformation3D &rViewInformation, basegfx::B2DHomMatrix aObjectTransformation)
Definition:
geometry2dextractor.cxx:143
drawinglayer::processor3d::Geometry2DExtractingProcessor::getPrimitive2DSequence
const primitive2d::Primitive2DContainer & getPrimitive2DSequence() const
Definition:
geometry2dextractor.hxx:59
drawinglayer::processor3d::Geometry2DExtractingProcessor::processBasePrimitive3D
virtual void processBasePrimitive3D(const primitive3d::BasePrimitive3D &rCandidate) override
Definition:
geometry2dextractor.cxx:41
drawinglayer::processor3d
Generated on Sun Jul 30 2023 04:42:51 for LibreOffice Module drawinglayer (master) by
1.9.3