Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
lpe-line_segment.h
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-2.0-or-later
2#ifndef INKSCAPE_LPE_LINE_SEGMENT_H
3#define INKSCAPE_LPE_LINE_SEGMENT_H
4
9/*
10 * Authors:
11 * Maximilian Albert
12 *
13 * Copyright (C) Maximilian Albert 2008 <maximilian.albert@gmail.com>
14 *
15 * Released under GNU GPL v2+, read the file 'COPYING' for more information.
16 */
17
19#include "live_effects/effect.h"
20
21namespace Inkscape {
22namespace LivePathEffect {
23
30
31class LPELineSegment : public Effect {
32public:
34 ~LPELineSegment() override;
35
36 void doBeforeEffect (SPLPEItem const* lpeitem) override;
37
38 Geom::PathVector doEffect_path (Geom::PathVector const & path_in) override;
39
40//private:
42
43private:
44 Geom::Point A, B; // intersections of the line segment with the limiting bounding box
45 Geom::Point bboxA, bboxB; // upper left and lower right corner of limiting bounding box
46
49};
50
51} //namespace LivePathEffect
52} //namespace Inkscape
53
54#endif
55
56/*
57 Local Variables:
58 mode:c++
59 c-file-style:"stroustrup"
60 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
61 indent-tabs-mode:nil
62 fill-column:99
63 End:
64*/
65// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :
Sequence of subpaths.
Definition pathvector.h:122
Two-dimensional point that doubles as a vector.
Definition point.h:66
void doBeforeEffect(SPLPEItem const *lpeitem) override
Is performed each time before the effect is updated.
LPELineSegment & operator=(const LPELineSegment &)=delete
LPELineSegment(const LPELineSegment &)=delete
Geom::PathVector doEffect_path(Geom::PathVector const &path_in) override
Helper class to stream background task notifications as a series of messages.