From cca66b9ec4e494c1d919bff0f71a820d8afab1fa Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 20:24:48 +0200 Subject: Adding upstream version 1.2.2. Signed-off-by: Daniel Baumann --- src/helper/geom-pathvector_nodesatellites.h | 61 +++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 src/helper/geom-pathvector_nodesatellites.h (limited to 'src/helper/geom-pathvector_nodesatellites.h') diff --git a/src/helper/geom-pathvector_nodesatellites.h b/src/helper/geom-pathvector_nodesatellites.h new file mode 100644 index 0000000..4631b32 --- /dev/null +++ b/src/helper/geom-pathvector_nodesatellites.h @@ -0,0 +1,61 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/** @file + * \brief PathVectorNodeSatellites a class to manage nodesatellites -per node extra data- in a pathvector + *//* + * Authors: see git history + * Jabiertxof + * Nathan Hurst + * Johan Engelen + * Josh Andler + * suv + * Mc- + * Liam P. White + * Krzysztof KosiƄski + * + * Copyright (C) 2017 Authors + * Released under GNU GPL v2+, read the file 'COPYING' for more information. + */ + +#ifndef SEEN_PATHVECTORSATELLITES_H +#define SEEN_PATHVECTORSATELLITES_H + +#include <2geom/path.h> +#include <2geom/pathvector.h> +#include + +typedef std::vector> NodeSatellites; +///@brief PathVectorNodeSatellites a class to manage nodesatellites in a pathvector +class PathVectorNodeSatellites +{ +public: + Geom::PathVector getPathVector() const; + void setPathVector(Geom::PathVector pathv); + NodeSatellites getNodeSatellites(); + void setNodeSatellites(NodeSatellites nodesatellites); + size_t getTotalNodeSatellites(); + void setSelected(std::vector selected); + void updateSteps(size_t steps, bool apply_no_radius, bool apply_with_radius, bool only_selected); + void updateAmount(double radius, bool apply_no_radius, bool apply_with_radius, bool only_selected, + bool use_knot_distance, bool flexible); + void convertUnit(Glib::ustring in, Glib::ustring to, bool apply_no_radius, bool apply_with_radius); + void updateNodeSatelliteType(NodeSatelliteType nodesatellitetype, bool apply_no_radius, bool apply_with_radius, + bool only_selected); + std::pair getIndexData(size_t index); + void recalculateForNewPathVector(Geom::PathVector const pathv, NodeSatellite const S); + +private: + Geom::PathVector _pathvector; + NodeSatellites _nodesatellites; +}; + +#endif //SEEN_PATHVECTORSATELLITES_H +/* + Local Variables: + mode:c++ + c-file-style:"stroustrup" + c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +)) + indent-tabs-mode:nil + fill-column:99 + End: +*/ +// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 : -- cgit v1.2.3