New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add initial 3d support to GUI and Pixel simulator #850
Merged
Conversation
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
Member
lkeegan
commented
Jan 4, 2023
•
edited
edited
- Add basic 3d objects (thin wrappers extending previous 2d Qt objects)
- Voxel: QPoint + z-index
- VoxelF: QPointF + double for z
- Volume: QSize + z size
- VolumeF: QSizeF + double for z
- ImageStack: vector of QImages, one for each z-slice
- Replace all (x,y) QImages with (x,y,z) ImageStacks
- add 3d versions of image utils
- add VoxelFlattener: 3d equivalent of QPointFlattener
- add VoxelIndexer: 3d equivalent of QPointIndexer
- extend Compartment, Membrane, Field to 3d
- QPoint -> Voxel
- QImage -> ImageStack
- QSize -> Volume
- Compartment
- add up_z(), dn_z()
- extend fill missing by dilation to 3d
- Membrane
- add iteration of z-pairs to existing x,y-pairs, extend iteration over entire ImageStack
- import analytic geometry from sbml as 3d ImageStack
- sme (python bindings)
- add z dimension to all image arrays
- update docstrings
- migrate tests from unittest to pytest
- Pixel 2d -> 3d
- Add z term to diffusion
- Add z to x,y species for spatially-dependent reaction terms
- resolves Pixel 3d-support #835
- QLabelMouseTracker
- can set the z slice
- can connect a QSlider to set them
- resolves QLabelMouseTracker 3d support #836
- MainWindow
- add z-slider
- sets z-slice for whole GUI (excluding dialogs)
- DialogAnalytic, DialogConcentrationImage, DialogGeometryImage
- QImage -> ImageStack
- add z-sliders to QLabelMouseTracker
- add 3d diffusion model to example models
- add test of simulation of 3d diffusion model
- mesh generation is disabled for images with more than 1 z-slice
- ModelGeometry.getPhysicalPoint() now returns location of centre of supplied voxel
- initModelData now catches runtime_errors and sets an error message to be displayed in GUI
- ModelSpecies now throws if a species compartment is a membrane instead of segfaulting
Codecov Report
@@ Coverage Diff @@
## main #850 +/- ##
==========================================
+ Coverage 89.73% 89.87% +0.14%
==========================================
Files 135 142 +7
Lines 12944 13166 +222
==========================================
+ Hits 11615 11833 +218
- Misses 1329 1333 +4
Flags with carried forward coverage won't be shown. Click here to find out more.
|
lkeegan
force-pushed
the
fix_836_z_slider_qlabelmousetracker
branch
8 times, most recently
from
January 10, 2023 10:48
dfc749c
to
68e249b
Compare
lkeegan
force-pushed
the
fix_836_z_slider_qlabelmousetracker
branch
5 times, most recently
from
March 3, 2023 11:12
47a3a7a
to
aaf64c4
Compare
lkeegan
force-pushed
the
fix_836_z_slider_qlabelmousetracker
branch
from
March 9, 2023 15:23
18c6b8e
to
c97ce67
Compare
lkeegan
force-pushed
the
fix_836_z_slider_qlabelmousetracker
branch
from
March 28, 2023 09:35
c97ce67
to
e99cab4
Compare
lkeegan
force-pushed
the
fix_836_z_slider_qlabelmousetracker
branch
2 times, most recently
from
April 28, 2023 12:16
afe26a7
to
5400210
Compare
- Add basic 3d objects (thin wrappers extending previous 2d Qt objects) - Voxel: QPoint + z-index - VoxelF: QPointF + double for z - Volume: QSize + z size - VolumeF: QSizeF + double for z - ImageStack: vector of QImages, one for each z-slice - Replace all (x,y) QImages with (x,y,z) ImageStacks - add 3d versions of image utils - add VoxelFlattener: 3d equivalent of QPointFlattener - add VoxelIndexer: 3d equivalent of QPointIndexer - extend Compartment, Membrane, Field to 3d - QPoint -> Voxel - QImage -> ImageStack - QSize -> Volume - Compartment - add up_z(), dn_z() - extend fill missing by dilation to 3d - Membrane - add iteration of z-pairs to existing x,y-pairs, extend iteration over entire ImageStack - import analytic geometry from sbml as 3d ImageStack - sme (python bindings) - add z dimension to all image arrays - update docstrings - migrate tests from unittest to pytest - Pixel 2d -> 3d - Add z term to diffusion - Add z to x,y species for spatially-dependent reaction terms - resolves #835 - QLabelMouseTracker - can set the z slice - can connect a QSlider to set them - resolves #836 - MainWindow - add z-slider - sets z-slice for whole GUI (excluding dialogs) - DialogAnalytic, DialogConcentrationImage, DialogGeometryImage - QImage -> ImageStack - add z-sliders to QLabelMouseTracker - add 3d diffusion model to example models - add test of simulation of 3d diffusion model - mesh generation is disabled for images with more than 1 z-slice - ModelGeometry.getPhysicalPoint() now returns location of *centre* of supplied voxel - initModelData now catches runtime_errors and sets an error message to be displayed in GUI - ModelSpecies now throws if a species compartment is a membrane instead of segfaulting
lkeegan
force-pushed
the
fix_836_z_slider_qlabelmousetracker
branch
from
May 25, 2023 09:13
5400210
to
c6c0370
Compare
lkeegan
changed the title
WIP 3d support
Add initial 3d support to GUI and Pixel simulator
May 25, 2023
Kudos, SonarCloud Quality Gate passed! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.