Commit 122489e9 authored by Hans-Christian Ebke's avatar Hans-Christian Ebke

Added fully scriptable viewer snapshot slot to core.

parent f9f1b622
......@@ -1456,6 +1456,21 @@ void Core::viewerSnapshot(){
coreWidget_->viewerSnapshot();
}
void Core::viewerSnapshot(QString file_name, bool store_comments,
bool comments_visible_only, bool comments_targeted_only,
bool store_material_info, bool snapshot_width, bool snapshot_height,
bool snapshot_transparent, bool hide_coord_sys,
int snapshot_multisampling, bool store_view) {
if ( OpenFlipper::Options::gui() )
coreWidget_->viewerSnapshot(file_name, store_comments,
comments_visible_only, comments_targeted_only,
store_material_info, snapshot_width, snapshot_height,
snapshot_transparent, hide_coord_sys, snapshot_multisampling,
store_view);
}
void Core::resizeViewers(int _width, int _height ){
if ( OpenFlipper::Options::gui() ){
......
......@@ -719,6 +719,13 @@ public slots:
/// Take a snapshot from all viewers
void viewerSnapshot();
/// Scriptable snapshot method offering full control
void viewerSnapshot(QString file_name, bool store_comments,
bool comments_visible_only, bool comments_targeted_only,
bool store_material_info, bool snapshot_width, bool snapshot_height,
bool snapshot_transparent, bool hide_coord_sys,
int snapshot_multisampling, bool store_view);
/// resize the examinerViewer
void resizeViewers(int _width, int _height );
......
......@@ -1022,6 +1022,12 @@ public:
/// Set the snapshot name
void applicationSnapshotName(QString _name);
/// Scriptable snapshot method offering full control
void viewerSnapshot(QString file_name, bool store_comments,
bool comments_visible_only, bool comments_targeted_only,
bool store_material_info, bool snapshot_width, bool snapshot_height,
bool snapshot_transparent, bool hide_coord_sys,
int snapshot_multisampling, bool store_view);
/** @} */
......
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