Loading...
Searching...
No Matches
cartesian-create.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
33#ifndef RACK_CART_CREATE
34#define RACK_CART_CREATE
35
36
37
38#include <drain/prog/CommandInstaller.h>
39#include "resources.h"
40
41#include "composite.h"
42
43namespace rack {
44
45
46
48
55
56public:
57
58
59 CartesianCreate() : Compositor(__FUNCTION__, "Maps the current polar product to a Cartesian product."){
60 }
61
62 virtual
63 void exec() const override;
64
65};
66
67
69
70public:
71
72 inline
73 CompositeCreateTile() : Compositor(__FUNCTION__, "Maps the current polar product to a tile to be used in compositing."){
74 }
75
76 virtual
77 void exec() const override;
78
79};
80
81
82class CartesianRange : public drain::BasicCommand { //SimpleCommand<double> {
83
84public:
85
86 inline
87 CartesianRange() : drain::BasicCommand(__FUNCTION__, "Force a range for single-radar cartesian products (0=use-metadata)."){
88 getParameters().link("range", PolarODIM::defaultRange, "km");
89 };
90
91 inline
92 CartesianRange(const CartesianRange & cmd) : drain::BasicCommand(__FUNCTION__, cmd.getDescription()) {
93 getParameters().link("range", PolarODIM::defaultRange, "km");
94 };
95
96};
97
99
106
107public:
108
109
110 CartesianCreateLookup() : drain::BasicCommand(__FUNCTION__, "Creates lookup objects"){
111 }
112
113 virtual
114 void exec() const override;
115
116};
117
119
126
127public:
128
129 CartesianReset() : drain::BasicCommand(__FUNCTION__, "Clears the current Cartesian product."){
130 }
131
132 virtual
133 void exec() const override;
134
135};
136
137} // rack::
138
139
140
141#endif
142
143// Rack
Simple implementation of Command: adds name , description and parameters .
Definition Command.h:424
Creates a single-radar Cartesian data set (2D data of both quantity and quality).
Definition cartesian-create.h:105
virtual void exec() const override
Run the command with current parameter values.
Definition cartesian-create.cpp:159
Creates a single-radar Cartesian data set (2D data of both quantity and quality).
Definition cartesian-create.h:54
virtual void exec() const override
Run the command with current parameter values.
Definition cartesian-create.cpp:40
Definition cartesian-create.h:82
Creates a single-radar Cartesian data set (2D data of both quantity and quality).
Definition cartesian-create.h:125
virtual void exec() const override
Run the command with current parameter values.
Definition cartesian-create.cpp:177
Definition cartesian-create.h:68
virtual void exec() const override
Run the command with current parameter values.
Definition cartesian-create.cpp:104
Definition composite.h:58
Definition DataSelector.cpp:44