Coverage Report

Created: 2026-09-28 10:59

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/libreoffice/drawinglayer/source/processor3d/baseprocessor3d.cxx
Line
Count
Source
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/primitive3d/baseprimitive3d.hxx>
21
#include <drawinglayer/processor3d/baseprocessor3d.hxx>
22
#include <utility>
23
24
25
using namespace com::sun::star;
26
27
28
namespace drawinglayer::processor3d
29
{
30
        void BaseProcessor3D::processBasePrimitive3D(const primitive3d::BasePrimitive3D& /*rCandidate*/)
31
0
        {
32
0
        }
33
34
        BaseProcessor3D::BaseProcessor3D(geometry::ViewInformation3D aViewInformation)
35
0
        :   maViewInformation3D(std::move(aViewInformation))
36
0
        {
37
0
        }
38
39
        BaseProcessor3D::~BaseProcessor3D()
40
0
        {
41
0
        }
42
43
        void BaseProcessor3D::process(const primitive3d::Primitive3DContainer& rSource)
44
0
        {
45
0
            if(rSource.empty())
46
0
                return;
47
48
0
            for(const auto &a : rSource)
49
0
            {
50
                // get reference
51
0
                const primitive3d::Primitive3DReference& xReference(a);
52
53
0
                if(xReference.is())
54
0
                {
55
0
                    const primitive3d::BasePrimitive3D* pBasePrimitive = static_cast< const primitive3d::BasePrimitive3D* >(xReference.get());
56
0
                    processBasePrimitive3D(*pBasePrimitive);
57
0
                }
58
0
            }
59
0
        }
60
61
        void BaseProcessor3D::setViewInformation3D(const geometry::ViewInformation3D& rNew)
62
0
        {
63
0
            if (rNew != maViewInformation3D)
64
0
            {
65
                // set if changed
66
0
                maViewInformation3D = rNew;
67
0
            }
68
0
        }
69
} // end of namespace
70
71
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */