-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update vtk.js version to use new classes * Use new vtk.js classes to make landmarks moveable * Fix landmark cube sizing * clear cached widgets on project change * Change vtk.js version specification * Allow user to change landmarkInfo client-side * Save landmark changes to server * Add landmarkSize input * Update yarn.lock * Update table interface for adding and deleting landmarks (still needs implementation) * Allow user to place new landmarks * Save landmark changes to project swproj file * Fix infinite loop in DataList update * Fixes for creating landmarks on multidomain * Update landmark position on drag * Use allSetLandmarks as source of truth for positions * Copy vtk.js SeedWidget and modifiy handleMouseMove * Assign landmark IDs upon fetch * Minor usability changes * Add check to find world coords in landmark widget * Refactoring and simplifying logic to fix strange behavior * Fix landmark deletions * Minor behavior fixes * Remove console log * Lint fix * Update models such that constraints exist "per-project" * Mimic Landmarks behavior for Constraints component * Fix landmarks suffix * Refer to domain explicitly instead of by index in anatomy list and actor list (Include domain on vtkPolyData field data, restructure stored placements for landmarks and constraints) * Reverse order of vectors in normal calculation (right hand rule) * Put back InfoTab component to handle showing one layer at a time * Read free form constraint data from file * Change `updateColors` to use current constraint data instead of widget state, begin coloring by paint constraints * Fix constraint color function * Set plane widget outline invisible * Lint fix * Save edited constraint information to DB... + convert between three-points and origin-normal plane representations * Use KDTree to find nearest points in paint constraint data * Allow new plane placements * Reassign constraint location data when reassigning constraint ids by index * Increase render debounce time to reduce redundant calls * Fix normals flipping when z is negative (could have a better solution) * Add ability to edit paint constraints (still slow and buggy) * Add visibility toggle column to constraints table ... to avoid visual & computational overload with many constraints * Small UI fixes * Fix conflicting CSS rules * Lighten constraint gray for better contrast with background * Pin node version in yarn container * Fix PlaneWidget styling TODOs * refactor: use patchwise widget updates for state sync * fix paint and plane widget behavior for updating shape colors * Add a toggle to switch between exclusion/inclusion for constraint painting * Update dependencies * Prevent remaining occurrences of `model._openGLRenderer is undefined` errors by blocking events during `renderGrid` * fix `updateColors`: paintwidget data should not override other constraint coloring * increase constraint column width; don't cut off wide buttons * Remove unused widgets after a landmark or constraint deletion * Fix various multi-renderer-only bugs * Don't show a plane widget with undefined origin or normal * Revert changes to syncCameras function; simplified version doesn't handle subjects with different centers * Filter undefined locations when saving landmark data * Fix swcc pydantic error about `mean_particles` scope * Prevent render loading spinner appearing when no subjects selected * "Show subject" button should become "Hide subject" instead of disappearing * When setting a constraint location, reassign allSetConstraints for changesMade watcher * swcc: specify file name in download location to eliminate same-name conflicts (like with landmarks.csv and constraints.json) * Ensure landmark info is saved in a schema compatible with Studio * Add the ability to name constraints * Add warning message when any constraints with no placements exist; those constraints cannot be saved. * Fix lint and type failures * fix: add new keyword to UInt8Array creation * fix creation of new paint constraint data * fix: protect from undefined widget managers after hiding subjects * fix: don't use typed array for new paint constraint scalars; uint8array serializes as object instead of list. * fix: call getLandmarks and getConstraints during the first render when the layer is enabled (even if no shapes are selected for rendering) * fix: L&C deletion behavior: remove all references to invalid widget * fix: refactor plane widget end interaction event * fix: prevent `c is undefined` bug when enabling Particles layer * fix: Use loading flags for landmarks and constraints to prevent actions before fetching is complete * fix: render after landmark info (including color) has been updated * fix: reassign `allSetLandmarks` by index when a landmark is deleted * fix: reduce debounce time for render refresh
- Loading branch information
Showing
26 changed files
with
5,114 additions
and
2,850 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
shapeworks_cloud/core/migrations/0037_landmarks_constraints.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Generated by Django 3.2.21 on 2023-11-13 17:30 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
('core', '0036_analysis_multi_domain'), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name='constraints', | ||
name='optimized_particles', | ||
), | ||
migrations.AddField( | ||
model_name='constraints', | ||
name='project', | ||
field=models.ForeignKey( | ||
null=True, | ||
on_delete=django.db.models.deletion.CASCADE, | ||
related_name='constraints', | ||
to='core.project', | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,5 +15,6 @@ | |
'groomed', | ||
'local', | ||
'world', | ||
'landmarks_file', | ||
'constraints', | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.