Commit 6f97f99b authored by Ellen Dekkers's avatar Ellen Dekkers

The snapshot function (in Core and QtBaseViewer) now allows to pass the...

The snapshot function (in Core and QtBaseViewer) now allows to pass the parameter _hideCoordsys using scripting and the RPC interface

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@10475 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 8e01d10e
......@@ -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);
}
}
......
......@@ -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();
......
......@@ -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());
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment