aboutsummaryrefslogtreecommitdiff
path: root/src/crystfelimageview.c
AgeCommit message (Collapse)Author
2022-11-24GUI: Colour scale, part 3: Use the values in CrystFELImageViewThomas White
2022-08-23GUI: Add resolution ringsThomas White
It will refuse to draw the rings if the detector is too far from being flat (as judged by detgeom_mean_camera_length). Otherwise, the drawing is exactly the same as was done by hdfsee.
2022-02-10CrystFELImageView: Handle smooth scrolling eventsThomas White
Fixes: https://gitlab.desy.de/thomas.white/crystfel/-/issues/58
2021-10-27CrystFELImageView: Fix range of pixels for value display at high zoomThomas White
Fixes: https://gitlab.desy.de/thomas.white/crystfel/-/issues/17
2021-10-25CrystFELImageView: fix scrollbar adjustment rangesThomas White
Fixes: https://gitlab.desy.de/thomas.white/crystfel/-/issues/18
2021-10-12GUI: Use proper overlines for reflection indicesThomas White
Closes: https://gitlab.desy.de/thomas.white/crystfel/-/issues/19
2021-08-12CrystFELImageView: Fix adjustment semanticsThomas White
This changes how CrystFELImageView handles its adjustments for the GtkScrollable interface, to match the GTK examples. In particular, it adds a call to g_object_ref_sink() which prevents premature destruction of the adjustments when the GUI is closed down.
2021-06-22CrystFELImageView: Adjust threshold for showing box centresThomas White
I find that starting to show centres at a higher magnification level makes it easier to distinguish the centre markers from bright pixels.
2021-06-22CrystFELImageView: Rearrange reflection coloursThomas White
Smaller numbers of crystals are more common, so it's better for the second crystal to be something very distinct from the peak search colour.
2021-05-17Resolve FIXMEs and TODOsThomas White
Prompted by the article linked below, for each FIXME/TODO I've either referenced an issue in the tracker, or removed it if it's not worth fixing. https://schleiss.io/plotting-source-code-todos-for-open-source-projects
2021-03-17CrystFELImageView: Fix zoom limitsThomas White
2021-03-17GUI: Show beam centre more clearly, and optionallyThomas White
2021-03-16CrystFELImageView: Avoid crash when scrolling after image load failureThomas White
2021-03-05Mass update of copyright dates in source code commentsThomas White
2021-03-02CrystFELImageView: Set limits on zoomingThomas White
2021-02-26CrystFELImageView: Set need_recentre at startThomas White
2021-02-25CrystFELImageView: Fix first crystal colourThomas White
2021-02-23Centre image at start (or on zoom reset)Thomas White
This just sets the scroll bars to the middle position, which is not necessarily the middle of the detector. Still, it's better than starting at the edge every time.
2021-02-23CrystFELImageView: Redraw even lessThomas White
2021-02-23CrystFELImageView: Use different colours for multiple crystalsThomas White
This adds a cycle of four colours. It seems difficult to choose colours that are always clearly visible, but maybe the list can be extended in the future.
2021-02-23CrystFELImageView: Queue a redraw after changing settingsThomas White
2021-02-23CrystFELImageView: Make peak/reflection markers slightly transparentThomas White
This allows the pixel values underneath to be read.
2021-02-22CrystFELImageView: Re-render a bit less oftenThomas White
2021-01-07GUI: Basic labelling of reflectionsThomas White
Lots of improvements still to be made here, such as using the "real" Cairo text API as well as using proper overlines for negative indices.
2020-09-24Show predicted but not integrated reflections in redThomas White
2020-09-09CrystFELImageView: Skip entire draw_sig if image is NULLThomas White
2020-09-09CrystFELImageView: Better cross-hairsThomas White
2020-09-08Show prediction boxes at the right sizeThomas White
2020-09-08Fixup peak boxThomas White
2020-09-08Make peak box bigger (and add crosshairs) at high magnificationThomas White
2020-09-04draw_refls: Set line widthThomas White
2020-09-04Add a FIXMEThomas White
2020-08-28Avoid GSL running statistics for CrystFELImageView auto-scaleThomas White
This changes the meaning slightly (it assumes all the panels are at least roughly the same size), and the code isn't very nice. However, it's not "science-critical" and it's worth it to get back to compatability with old GSL versions.
2020-08-12Change colour of peak boxes to yellowThomas White
Shows up much better against the blue
2020-07-29Show reflections in GUIThomas White
2020-07-29Reset zoom when loading new dataThomas White
If the image size changes, bad things happen.
2020-07-29Let caller (rather than CrystFELImageView) own the image structureThomas White
2020-07-29Store the actual DataTemplate in GUI project structThomas White
2020-07-29crystal_image_view_set_image: Free peak listsThomas White
2020-07-29Don't try to draw peaks without an image structureThomas White
2020-07-29Automatic colour scaleThomas White
2020-07-29Avoid double iterationThomas White
2020-07-29Simplify image rendering for CrystFELImageViewThomas White
2020-07-29Break render.c down and move to geoptimiser and CrystFELImageViewThomas White
These two functions will diverge in the future. Also, this change removes the last remaining dependency of libcrystfel on Gdk/Gtk-anything.
2020-07-29Avoid reloading image data when colour scale is changedThomas White
2020-07-29Put brackets round values of bad pixelsThomas White
2020-07-29Add brightness sliderThomas White
This can be improved a lot...
2020-07-29Add crystfel_image_view_get_datatemplate()Thomas White
2020-07-29Draw pixel values on zoomThomas White
2020-07-29Don't round the panel vectorsThomas White
This was necessary before to keep pixel alignment. Now that we can easily zoom, it's not as important to keep pixel-for-pixel correspondence.