jfjoch_viewer: improve performance of image rendering
This commit is contained in:
@@ -16,6 +16,7 @@ void JFJochAzIntImage::Clear() {
|
||||
image_fp.clear();
|
||||
if (scene())
|
||||
scene()->clear();
|
||||
resetScenePointers();
|
||||
}
|
||||
|
||||
void JFJochAzIntImage::imageLoaded(std::shared_ptr<const JFJochReaderImage> in_image) {
|
||||
@@ -111,4 +112,4 @@ void JFJochAzIntImage::mouseDoubleClickEvent(QMouseEvent *event) {
|
||||
auto coord = geom.ResPhiToPxl(2 * M_PI / q, phi / 180.0 * M_PI);
|
||||
emit zoomOnBin(QPointF(coord.first, coord.second));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user