VPTissue Reference Manual
VectorGraphicsExporter.h
Go to the documentation of this file.
1 #ifndef VIEW_VECTOR_GRAPHICS_EXPORTER_H_
2 #define VIEW_VECTOR_GRAPHICS_EXPORTER_H_
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  */
23 
24 #include <string>
25 #include <tuple>
26 
27 class QGraphicsScene;
28 
29 namespace SimPT_Sim {
30 class SimInterface;
31 }
32 
33 namespace SimPT_Shell {
34 
39 {
40 public:
50  static bool Export(std::shared_ptr<SimPT_Sim::SimInterface> sim,
51  std::string const& file_path,
52  bool overwrite = true,
53  std::shared_ptr<VectorGraphicsPreferences> prefs = std::make_shared<VectorGraphicsPreferences>());
54 
59  static std::string GetFileExtension();
60 };
61 
62 } // namespace
63 
64 #endif // end_of_include_guard
Namespace for SimPT shell package.
Definition: Client.cpp:50
Interface/Implementation for VectorGraphicsPreferences.
Namespace for the core simulator.
static bool Export(std::shared_ptr< SimPT_Sim::SimInterface > sim, std::string const &file_path, bool overwrite=true, std::shared_ptr< VectorGraphicsPreferences > prefs=std::make_shared< VectorGraphicsPreferences >())
Export snapshot of canvas in PNG format.
static std::string GetFileExtension()
File extension associated with this export format.
Functions and data for PDF export of Sim objects.