Commit 953ee670 authored by Hans-Christian Ebke's avatar Hans-Christian Ebke

Added fully scriptable viewer snapshot slot to core.

parent 3d5ad4d7
...@@ -1456,6 +1456,21 @@ void Core::viewerSnapshot(){ ...@@ -1456,6 +1456,21 @@ void Core::viewerSnapshot(){
coreWidget_->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 ){ void Core::resizeViewers(int _width, int _height ){
if ( OpenFlipper::Options::gui() ){ if ( OpenFlipper::Options::gui() ){
......
...@@ -719,6 +719,13 @@ public slots: ...@@ -719,6 +719,13 @@ public slots:
/// Take a snapshot from all viewers /// Take a snapshot from all viewers
void viewerSnapshot(); 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 /// resize the examinerViewer
void resizeViewers(int _width, int _height ); void resizeViewers(int _width, int _height );
......
...@@ -1022,6 +1022,12 @@ public: ...@@ -1022,6 +1022,12 @@ public:
/// Set the snapshot name /// Set the snapshot name
void applicationSnapshotName(QString _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);
/** @} */ /** @} */
......
This diff is collapsed.
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