LibreOffice Module basegfx (master) 1
b2dlinegeometry.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
25#include <com/sun/star/drawing/LineCap.hpp>
28
29namespace basegfx::utils
30{
69 const B2DPolygon& rCandidate,
70 const B2DPolyPolygon& rArrow,
71 bool bStart,
72 double fWidth,
73 double fCandidateLength, // 0.0 -> calculate self
74 double fDockingPosition, // 0->top, 1->bottom
75 double* pConsumedLength = nullptr,
76 double fShift = 0.0);
77
136 const B2DPolygon& rCandidate,
137 double fHalfLineWidth,
138 B2DLineJoin eJoin,
139 css::drawing::LineCap eCap,
140 double fMaxAllowedAngle = basegfx::deg2rad(12.5),
141 double fMaxPartOfEdge = 0.4,
142 double fMiterMinimumAngle = basegfx::deg2rad(15.0));
143
144} // end of namespace basegfx::utils
145
146/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
#define BASEGFX_DLLPUBLIC
Definition: basegfxdllapi.h:35
B2DPolyPolygon createAreaGeometry(const B2DPolygon &rCandidate, double fHalfLineWidth, B2DLineJoin eJoin, css::drawing::LineCap eCap, double fMaxAllowedAngle, double fMaxPartOfEdge, double fMiterMinimumAngle)
create filled polygon geometry for lines with a line width
B2DPolyPolygon createAreaGeometryForLineStartEnd(const B2DPolygon &rCandidate, const B2DPolyPolygon &rArrow, bool bStart, double fWidth, double fCandidateLength, double fDockingPosition, double *pConsumedLength, double fShift)
Create line start/end geometry element, mostly arrows and things like that.
B2DLineJoin
Descriptor for possible line joins between two line segments.
Definition: b2enums.hxx:58
constexpr double deg2rad(double v)
Convert value from degrees to radians.
Definition: ftools.hxx:82