summaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2025-03-22 13:01:14 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2025-03-22 13:01:14 +0000
commit163c8f75265054a168cc1e2750a0adb40fb08d83 (patch)
tree3f5aeb2c912fe079029e53fcd5aa29e5f245c814 /ui
parentInvert how shared/unique is specified for Collection (diff)
downloadilt-163c8f75265054a168cc1e2750a0adb40fb08d83.tar.bz2
ilt-163c8f75265054a168cc1e2750a0adb40fb08d83.tar.xz
ilt-163c8f75265054a168cc1e2750a0adb40fb08d83.zip
Make Collections::objects protected, extend interface
Keeps all required features accessible, but through a controlled interface.
Diffstat (limited to 'ui')
-rw-r--r--ui/builders/freeExtend.cpp4
-rw-r--r--ui/builders/join.cpp2
-rw-r--r--ui/builders/straight.cpp2
3 files changed, 4 insertions, 4 deletions
diff --git a/ui/builders/freeExtend.cpp b/ui/builders/freeExtend.cpp
index ab5a998..09e1c75 100644
--- a/ui/builders/freeExtend.cpp
+++ b/ui/builders/freeExtend.cpp
@@ -16,10 +16,10 @@ BuilderFreeExtend::move(
{
if (p1) {
if (const auto p = network->intersectRayNodes(ray)) {
- candidateLinks.objects = network->candidateJoins(*p1, p->pos);
+ candidateLinks = network->candidateJoins(*p1, p->pos);
}
else if (const auto p = geoData->intersectRay(ray)) {
- candidateLinks.objects = network->candidateExtend(*p1, p->first);
+ candidateLinks = network->candidateExtend(*p1, p->first);
}
else {
candidateLinks.removeAll();
diff --git a/ui/builders/join.cpp b/ui/builders/join.cpp
index 6941e23..161b081 100644
--- a/ui/builders/join.cpp
+++ b/ui/builders/join.cpp
@@ -15,7 +15,7 @@ BuilderJoin::move(Network * network, const GeoData *, const SDL_MouseMotionEvent
{
if (p1) {
if (const auto p = network->intersectRayNodes(ray)) {
- candidateLinks.objects = network->candidateJoins(p1->pos, p->pos);
+ candidateLinks = network->candidateJoins(p1->pos, p->pos);
}
else {
candidateLinks.removeAll();
diff --git a/ui/builders/straight.cpp b/ui/builders/straight.cpp
index 338aa8a..6815689 100644
--- a/ui/builders/straight.cpp
+++ b/ui/builders/straight.cpp
@@ -17,7 +17,7 @@ BuilderStraight::move(
{
if (p1) {
if (const auto p = geoData->intersectRay(ray)) {
- candidateLinks.objects = network->candidateStraight(*p1, p->first);
+ candidateLinks = network->candidateStraight(*p1, p->first);
}
else {
candidateLinks.removeAll();