LibreOffice Module basegfx (master) 1
b2dpolyrange.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 <o3tl/cow_wrapper.hxx>
23#include <tuple>
26
27namespace basegfx
28{
29 class B2DRange;
30 class B2DPolyPolygon;
31 class B2DHomMatrix;
32 class ImplB2DPolyRange;
33
51 {
52 public:
53 typedef std::tuple<B2DRange, B2VectorOrientation> ElementType;
54
57
62
63 bool operator==(const B2DPolyRange&) const;
64 bool operator!=(const B2DPolyRange&) const;
65
67 sal_uInt32 count() const;
68
69 ElementType getElement(sal_uInt32 nIndex) const;
70
71 // insert/append a single range
72 void appendElement(const B2DRange& rRange, B2VectorOrientation eOrient);
73
74 void clear();
75
80 bool overlaps( const B2DRange& rRange ) const;
81
85
86 void transform(const B2DHomMatrix& rTranslate);
87
88 private:
90 };
91}
92
93/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
#define BASEGFX_DLLPUBLIC
Definition: basegfxdllapi.h:35
Multiple ranges in one object.
std::tuple< B2DRange, B2VectorOrientation > ElementType
B2DPolyRange & operator=(const B2DPolyRange &)
o3tl::cow_wrapper< ImplB2DPolyRange > mpImpl
B2DPolyRange(const B2DPolyRange &)
Create a multi range with exactly one containing range.
A two-dimensional interval over doubles.
Definition: b2drange.hxx:54
B2DPolyPolygon solveCrossovers(const B2DPolyPolygon &rCandidate, size_t *pPointLimit)
Solve all crossovers (aka self-intersections) in a polyPolygon.
B2VectorOrientation
Descriptor for the mathematical orientations of two 2D Vectors.
Definition: b2enums.hxx:27
bool operator!=(const XclExpString &rLeft, const XclExpString &rRight)
bool operator==(const XclFontData &rLeft, const XclFontData &rRight)