Loading...
Searching...
No Matches
fileio-svg.h
1/*
2
3MIT License
4
5Copyright (c) 2017 FMI Open Development / Markus Peura, first.last@fmi.fi
6
7Permission is hereby granted, free of charge, to any person obtaining a copy
8of this software and associated documentation files (the "Software"), to deal
9in the Software without restriction, including without limitation the rights
10to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11copies of the Software, and to permit persons to whom the Software is
12furnished to do so, subject to the following conditions:
13
14The above copyright notice and this permission notice shall be included in all
15copies or substantial portions of the Software.
16
17THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23SOFTWARE.
24
25*/
26/*
27Part of Rack development has been done in the BALTRAD projects part-financed
28by the European Union (European Regional Development Fund and European
29Neighbourhood Partnership Instrument, Baltic Sea Region Programme 2007-2013)
30*/
31
32#ifndef RACK_FILE_IO_SVG
33#define RACK_FILE_IO_SVG
34
35#include <string>
36
37#include <drain/prog/CommandBank.h>
38#include <drain/prog/CommandInstaller.h>
39
40#include <drain/util/FileInfo.h>
41#include "hi5/Hi5.h"
42#include "resources.h"
43
44// Notice: role of graphics.cpp and fileio-svg.cpp is currently equivalent
45
46namespace rack {
47
48
49
50
51/*
52
53Komentoja!
54
55 */
56
57struct GraphicsSection;
58
59class GraphicsModule : public drain::CommandModule<'g',GraphicsSection> {
60public:
62};
63
64
66/*
67class CmdOutputPanel : public drain::BasicCommand {
68
69public:
70
71 inline
72 CmdOutputPanel() : drain::BasicCommand(__FUNCTION__, "Save SVG panel of latest images. See also: --image, --outputRawImages.") {
73 getParameters().link("filename", filename="");
74 getParameters().link("layout", layout, "basic");
75 };
76
77 inline
78 CmdOutputPanel(const CmdOutputPanel & cmd) : drain::BasicCommand(cmd) {
79 getParameters().copyStruct(cmd.getParameters(), cmd, *this);
80 }
81
82
83 void exec() const;
84
85
86 std::string layout;
87 std::string filename;
88
89 void appendImage(TreeSVG & group, const std::string & prefix, drain::VariableMap & vmap,
90 const drain::Point2D<double> & location, const drain::image::Image & image, drain::BBox & bbox) const;
91};
92*/
93
94
95} // rack::
96
97
98#endif
99
Combines command installation and sectioning.
Definition CommandInstaller.h:228
Definition fileio-svg.h:59
Definition DataSelector.cpp:44