Warning, file /office/calligra/libs/flake/KoConnectionShape_p.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* This file is part of the KDE project 0002 * Copyright (C) 2009 Thomas Zander <zander@kde.org> 0003 * 0004 * This library is free software; you can redistribute it and/or 0005 * modify it under the terms of the GNU Library General Public 0006 * License as published by the Free Software Foundation; either 0007 * version 2 of the License, or (at your option) any later version. 0008 * 0009 * This library is distributed in the hope that it will be useful, 0010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 0011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 0012 * Library General Public License for more details. 0013 * 0014 * You should have received a copy of the GNU Library General Public License 0015 * along with this library; see the file COPYING.LIB. If not, write to 0016 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 0017 * Boston, MA 02110-1301, USA. 0018 */ 0019 #ifndef KOCONNECTIONSHAPEPRIVATE_P 0020 #define KOCONNECTIONSHAPEPRIVATE_P 0021 0022 #include "KoParameterShape_p.h" 0023 0024 class KoConnectionShapePrivate : public KoParameterShapePrivate 0025 { 0026 public: 0027 explicit KoConnectionShapePrivate(KoConnectionShape *q); 0028 0029 /// Returns escape direction of given handle 0030 QPointF escapeDirection(int handleId) const; 0031 0032 /// Checks if rays from given points into given directions intersect 0033 bool intersects(const QPointF &p1, const QPointF &d1, const QPointF &p2, const QPointF &d2, QPointF &isect); 0034 0035 /// Returns perpendicular direction from given point p1 and direction d1 toward point p2 0036 QPointF perpendicularDirection(const QPointF &p1, const QPointF &d1, const QPointF &p2); 0037 0038 /// Populate the path list by a normal way 0039 void normalPath(const qreal MinimumEscapeLength); 0040 0041 qreal scalarProd(const QPointF &v1, const QPointF &v2) const; 0042 qreal crossProd(const QPointF &v1, const QPointF &v2) const; 0043 0044 /// Returns if given handle is connected to a shape 0045 bool handleConnected(int handleId) const; 0046 0047 QVector<QPointF> path; 0048 0049 KoShape *shape1; 0050 KoShape *shape2; 0051 int connectionPointId1; 0052 int connectionPointId2; 0053 KoConnectionShape::Type connectionType; 0054 bool forceUpdate; 0055 bool hasCustomPath; 0056 Q_DECLARE_PUBLIC(KoConnectionShape) 0057 }; 0058 0059 #endif