jfjoch_viewer: JFJochImage work in progress to improve performance (at least a bit)
All checks were successful
Build Packages / build:rpm (ubuntu2404_nocuda) (push) Successful in 11m5s
Build Packages / build:rpm (ubuntu2204_nocuda) (push) Successful in 12m2s
Build Packages / build:rpm (rocky8_nocuda) (push) Successful in 12m13s
Build Packages / Generate python client (push) Successful in 32s
Build Packages / build:rpm (rocky9_nocuda) (push) Successful in 12m57s
Build Packages / Create release (push) Has been skipped
Build Packages / Build documentation (push) Successful in 47s
Build Packages / build:rpm (ubuntu2204) (push) Successful in 13m8s
Build Packages / build:rpm (rocky8) (push) Successful in 13m20s
Build Packages / build:rpm (rocky8_sls9) (push) Successful in 13m22s
Build Packages / build:rpm (rocky9) (push) Successful in 14m1s
Build Packages / build:rpm (ubuntu2404) (push) Successful in 7m10s
Build Packages / Unit tests (push) Successful in 53m43s

This commit is contained in:
2025-11-07 19:41:16 +01:00
parent 6a62501ba7
commit f48eb44f2a
4 changed files with 28 additions and 20 deletions

View File

@@ -342,6 +342,7 @@ void JFJochDiffractionImage::loadImage(std::shared_ptr<const JFJochReaderImage>
}
image = in_image;
LoadImageInternal();
GeneratePixmap();
Redraw();
} else {
image.reset();
@@ -364,37 +365,37 @@ void JFJochDiffractionImage::setAutoForeground(bool input) {
void JFJochDiffractionImage::setResolutionRing(QVector<float> v) {
res_ring = v;
res_ring_auto = false;
Redraw();
updateOverlay();
}
void JFJochDiffractionImage::setResolutionRingAuto() {
res_ring_auto = true;
Redraw();
updateOverlay();
}
void JFJochDiffractionImage::showSpots(bool input) {
show_spots = input;
Redraw();
updateOverlay();
}
void JFJochDiffractionImage::showPredictions(bool input) {
show_predictions = input;
Redraw();
updateOverlay();
}
void JFJochDiffractionImage::setSpotColor(QColor input) {
spot_color = input;
Redraw();
updateOverlay();
}
void JFJochDiffractionImage::setPredictionColor(QColor input) {
prediction_color = input;
Redraw();
updateOverlay();
}
void JFJochDiffractionImage::showHighestPixels(int32_t v) {
show_highest_pixels = v;
Redraw();
updateOverlay();
}
void JFJochDiffractionImage::DrawSaturation() {
@@ -418,10 +419,11 @@ void JFJochDiffractionImage::DrawCross(float x, float y, float size, float width
void JFJochDiffractionImage::showSaturation(bool input) {
show_saturation = input;
Redraw();
GeneratePixmap();
updateOverlay();
}
void JFJochDiffractionImage::highlightIceRings(bool input) {
highlight_ice_rings = input;
Redraw();
updateOverlay();
}