LibreOffice Module drawinglayer (master)
1
drawinglayer
source
primitive2d
hiddengeometryprimitive2d.cxx
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
#include <
drawinglayer/primitive2d/hiddengeometryprimitive2d.hxx
>
21
#include <
drawinglayer/primitive2d/drawinglayer_primitivetypes2d.hxx
>
22
23
24
using namespace
com::sun::star
;
25
26
27
namespace
drawinglayer::primitive2d
28
{
29
HiddenGeometryPrimitive2D::HiddenGeometryPrimitive2D
(
30
Primitive2DContainer
&& aChildren)
31
:
GroupPrimitive2D
(
std
::move(aChildren))
32
{
33
}
34
35
basegfx::B2DRange
HiddenGeometryPrimitive2D::getB2DRange
(
const
geometry::ViewInformation2D
& rViewInformation)
const
36
{
37
return
getChildren
().
getB2DRange
(rViewInformation);
38
}
39
40
void
HiddenGeometryPrimitive2D::get2DDecomposition
(
Primitive2DDecompositionVisitor
&
/*rVisitor*/
,
const
geometry::ViewInformation2D
&
/*rViewInformation*/
)
const
41
{
42
}
43
44
// provide unique ID
45
sal_uInt32
HiddenGeometryPrimitive2D::getPrimitive2DID
()
const
46
{
47
return
PRIMITIVE2D_ID_HIDDENGEOMETRYPRIMITIVE2D
;
48
}
49
50
}
// end of namespace
51
52
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
basegfx::B2DRange
drawinglayer::geometry::ViewInformation2D
ViewInformation2D class.
Definition:
viewinformation2d.hxx:64
drawinglayer::primitive2d::GroupPrimitive2D
GroupPrimitive2D class.
Definition:
groupprimitive2d.hxx:64
drawinglayer::primitive2d::GroupPrimitive2D::getChildren
const Primitive2DContainer & getChildren() const
data read access
Definition:
groupprimitive2d.hxx:74
drawinglayer::primitive2d::HiddenGeometryPrimitive2D::getB2DRange
virtual basegfx::B2DRange getB2DRange(const geometry::ViewInformation2D &rViewInformation) const override
The default implementation will use getDecomposition results to create the range.
Definition:
hiddengeometryprimitive2d.cxx:35
drawinglayer::primitive2d::HiddenGeometryPrimitive2D::get2DDecomposition
virtual void get2DDecomposition(Primitive2DDecompositionVisitor &rVisitor, const geometry::ViewInformation2D &rViewInformation) const override
local decomposition. Implementation will return empty Primitive2DSequence
Definition:
hiddengeometryprimitive2d.cxx:40
drawinglayer::primitive2d::HiddenGeometryPrimitive2D::getPrimitive2DID
virtual sal_uInt32 getPrimitive2DID() const override
provide unique ID
Definition:
hiddengeometryprimitive2d.cxx:45
drawinglayer::primitive2d::HiddenGeometryPrimitive2D::HiddenGeometryPrimitive2D
HiddenGeometryPrimitive2D(Primitive2DContainer &&aChildren)
Definition:
hiddengeometryprimitive2d.cxx:29
drawinglayer::primitive2d::Primitive2DContainer
Definition:
Primitive2DContainer.hxx:41
drawinglayer::primitive2d::Primitive2DContainer::getB2DRange
basegfx::B2DRange getB2DRange(const geometry::ViewInformation2D &aViewInformation) const
Definition:
Primitive2DContainer.cxx:66
drawinglayer::primitive2d::Primitive2DDecompositionVisitor
Definition:
Primitive2DVisitor.hxx:31
drawinglayer_primitivetypes2d.hxx
PRIMITIVE2D_ID_HIDDENGEOMETRYPRIMITIVE2D
#define PRIMITIVE2D_ID_HIDDENGEOMETRYPRIMITIVE2D
Definition:
drawinglayer_primitivetypes2d.hxx:95
hiddengeometryprimitive2d.hxx
com::sun::star
drawinglayer::primitive2d
std
Generated on Sun Jul 30 2023 04:42:53 for LibreOffice Module drawinglayer (master) by
1.9.3