diff --git a/Core/Core.cc b/Core/Core.cc index 3fdba94edaeb01c70d24cdacfc53c10b116a879e..f7ec8e39ddc3c23ef26aca5610b776341da4f3e9 100644 --- a/Core/Core.cc +++ b/Core/Core.cc @@ -1241,7 +1241,7 @@ void Core::snapshotCounterStart(const int _counter, unsigned int _viewerId ){ } -void Core::snapshot( unsigned int _viewerId, int _width, int _height, bool _alpha ){ +void Core::snapshot( unsigned int _viewerId, int _width, int _height, bool _alpha, bool _hideCoordsys ){ if ( OpenFlipper::Options::gui() ) { @@ -1249,7 +1249,7 @@ void Core::snapshot( unsigned int _viewerId, int _width, int _height, bool _alph emit log(LOGERR,tr("Unable to create snapshot for viewer ") + QString::number(_viewerId) ); return; } - coreWidget_->examiner_widgets_[_viewerId]->snapshot(_width, _height, _alpha); + coreWidget_->examiner_widgets_[_viewerId]->snapshot(_width, _height, _alpha, _hideCoordsys); } } diff --git a/Core/Core.hh b/Core/Core.hh index 8f099253b45ae4b0124482f2ac44fbf32a62a8a4..16111921e0715318d84988f2cfc088839e4ba851 100644 --- a/Core/Core.hh +++ b/Core/Core.hh @@ -503,7 +503,7 @@ public slots: the current snapshot counter. The \a back buffer will be saved. The id of the current viewer is 0 (default). */ - void snapshot(unsigned int _viewerId = 0, int _width = 0, int _height = 0, bool _alpha = false); + void snapshot(unsigned int _viewerId = 0, int _width = 0, int _height = 0, bool _alpha = false, bool _hideCoordsys = false); /// Take a snapshot from the whole app void applicationSnapshot(); diff --git a/widgets/glWidget/QtBaseViewer.cc b/widgets/glWidget/QtBaseViewer.cc index 556b1cf714f99b50d6d25848fe435ab7f305c968..d2f5ca27f6bd201bdd45b63fc3e3e9f110eb7552 100644 --- a/widgets/glWidget/QtBaseViewer.cc +++ b/widgets/glWidget/QtBaseViewer.cc @@ -2277,12 +2277,12 @@ void glViewer::snapshot(QImage& _image, int _width, int _height, bool _alpha, bo } -void glViewer::snapshot( int _width, int _height, bool _alpha ) +void glViewer::snapshot( int _width, int _height, bool _alpha, bool _hideCoordsys) { QImage image; // Capture image - snapshot(image, _width, _height, _alpha); + snapshot(image, _width, _height, _alpha, _hideCoordsys); QFileInfo fi(properties_.snapshotName()); diff --git a/widgets/glWidget/QtBaseViewer.hh b/widgets/glWidget/QtBaseViewer.hh index 3fe8afc8354cce743a012f64f0e592126a0ce9c9..2893ff368287530e8027f8965f4c331d8fe38fc6 100644 --- a/widgets/glWidget/QtBaseViewer.hh +++ b/widgets/glWidget/QtBaseViewer.hh @@ -800,7 +800,7 @@ private: Save snapshot to file determined by snapshotBaseFileName() and the current snapshot counter. The \a back buffer will be saved. */ - virtual void snapshot(int _width = 0, int _height = 0, bool _alpha = false); + virtual void snapshot(int _width = 0, int _height = 0, bool _alpha = false, bool _hideCoordsys = false); /// Take a snapshot and store it in the given image virtual void snapshot(QImage& _image, int _width = 0, int _height = 0, bool _alpha = false, bool _hideCoordsys = false, int samples = 1);