aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/modelinglib/qmt/diagram_scene/capabilities/intersectionable.h
blob: b3a060cf863c2b76e10e5c1bae3b8a6b6be8a6bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright (C) 2016 Jochen Becher
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#pragma once

#include <QtGlobal>

QT_BEGIN_NAMESPACE
class QPointF;
class QLineF;
QT_END_NAMESPACE

namespace qmt {

class IIntersectionable
{
public:
    virtual ~IIntersectionable() { }

    virtual bool intersectShapeWithLine(const QLineF &line, QPointF *intersectionPoint,
                                        QLineF *intersectionLine = nullptr) const = 0;
};

} // namespace qmt