VPTissue Reference Manual
BitmapGraphicsExporter.h
Go to the documentation of this file.
1 #ifndef VIEW_BITMAP_GRAPHICS_EXPORTER_H_INCLUDED
2 #define VIEW_BITMAP_GRAPHICS_EXPORTER_H_INCLUDED
3 /*
4  * Copyright 2011-2016 Universiteit Antwerpen
5  *
6  * Licensed under the EUPL, Version 1.1 or as soon they will be approved by
7  * the European Commission - subsequent versions of the EUPL (the "Licence");
8  * You may not use this work except in compliance with the Licence.
9  * You may obtain a copy of the Licence at: http://ec.europa.eu/idabc/eupl5
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the Licence is distributed on an "AS IS" basis,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the Licence for the specific language governing
15  * permissions and limitations under the Licence.
16  */
22 #include "../../cpp_simptshell/exporters/common/BitmapGraphicsPreferences.h"
23 
24 #include <memory>
25 #include <string>
26 
27 class QGraphicsScene;
28 
29 namespace SimPT_Sim {
30 class Sim;
31 }
32 
33 namespace SimPT_Shell {
34 
39 {
40 public:
50  static bool Export(
51  std::shared_ptr<SimPT_Sim::Sim> sim,
52  std::string const& file_path,
53  bool overwrite = true,
54  std::shared_ptr<BitmapGraphicsPreferences> prefs = std::make_shared<BitmapGraphicsPreferences>());
55 };
56 
57 } // namespace
58 
59 #endif
Collection of functions and data concerning PNG export of Sim objects.
static bool Export(std::shared_ptr< SimPT_Sim::Sim > sim, std::string const &file_path, bool overwrite=true, std::shared_ptr< BitmapGraphicsPreferences > prefs=std::make_shared< BitmapGraphicsPreferences >())
Export snapshot of canvas in PNG format.
Namespace for SimPT shell package.
Definition: Client.cpp:50
Namespace for the core simulator.