11/*
22 * This file is part of the GreasePad distribution (https://github.com/FraunhoferIOSB/GreasePad).
3- * Copyright (c) 2022-2025 Jochen Meidow, Fraunhofer IOSB
3+ * Copyright (c) 2022-2026 Jochen Meidow, Fraunhofer IOSB
44 *
55 * This program is free software: you can redistribute it and/or modify
66 * it under the terms of the GNU General Public License as published by
@@ -48,7 +48,8 @@ class uStraightLineSegment;
4848namespace QConstraint {
4949
5050using Uncertain::uStraightLineSegment;
51- using Eigen::VectorXidx;
51+ using VectorXidx = Eigen::Vector<Eigen::Index,Eigen::Dynamic>;
52+
5253
5354// ! Graphics: Base class for markers depicting constraints
5455class QConstraintBase : public QGraphicsItem
@@ -77,7 +78,7 @@ class QConstraintBase : public QGraphicsItem
7778
7879 virtual void setMarkerSize ( qreal s) = 0; // !< Set marker size
7980 virtual void setGeometry ( QVector<std::shared_ptr< const uStraightLineSegment>> &,
80- const Eigen:: VectorXidx &idx) = 0; // !< Set geometry
81+ const VectorXidx &idx) = 0; // !< Set geometry
8182
8283 static QPen defaultPenReq () { return s_defaultPenReq; } // !< Get default pen for required constraints
8384 static QPen defaultPenRed () { return s_defaultPenRed; } // !< Get default pen for redundant constraints
@@ -138,7 +139,7 @@ class QCopunctual : public QConstraintBase,
138139 static std::shared_ptr<QConstraintBase> create (); // !< Create copunctual constraint
139140
140141 void setGeometry ( QVector<std::shared_ptr<const uStraightLineSegment>> &s,
141- const Eigen:: VectorXidx &idx) override ;
142+ const VectorXidx &idx) override ;
142143 void setMarkerSize ( qreal s) override ;
143144 [[nodiscard]] qreal markerSize () const override ;
144145
@@ -163,7 +164,7 @@ class QAligned : public QConstraintBase
163164 static std::shared_ptr<QConstraintBase> create ();
164165
165166 void setGeometry ( QVector<std::shared_ptr<const uStraightLineSegment>> &s,
166- const Eigen:: VectorXidx & idx) override ;
167+ const VectorXidx & idx) override ;
167168 void setMarkerSize ( qreal s) override ;
168169 [[nodiscard]] qreal markerSize () const override ;
169170
@@ -190,7 +191,7 @@ class QOrthogonal : public QConstraintBase,
190191 static std::shared_ptr<QConstraintBase> create (); // !< Create orthogonallity constraint
191192
192193 void setGeometry ( QVector<std::shared_ptr<const uStraightLineSegment>> &s,
193- const Eigen:: VectorXidx & idx) override ;
194+ const VectorXidx & idx) override ;
194195 void setMarkerSize ( qreal s) override ;
195196 [[nodiscard]] qreal markerSize () const override ;
196197
@@ -217,7 +218,7 @@ class QIdentical : public QConstraintBase,
217218 void setMarkerSize ( qreal s) override ;
218219 [[nodiscard]] qreal markerSize () const override ;
219220 void setGeometry ( QVector<std::shared_ptr<const uStraightLineSegment>> &s,
220- const Eigen:: VectorXidx &idx) override ;
221+ const VectorXidx &idx) override ;
221222
222223protected:
223224 QIdentical ();
@@ -240,7 +241,7 @@ class QParallel : public QConstraintBase
240241 static std::shared_ptr<QConstraintBase> create (); // !< Create parallelism constraint
241242
242243 void setGeometry ( QVector<std::shared_ptr<const uStraightLineSegment >> &s,
243- const Eigen:: VectorXidx &idx) override ;
244+ const VectorXidx &idx) override ;
244245 void setMarkerSize ( qreal s) override ;
245246 [[nodiscard]] qreal markerSize () const override ;
246247
0 commit comments