SourceXtractorPlusPlus 1.0.3
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
MoffatModelFittingPlugin.cpp
Go to the documentation of this file.
1
17/*
18 * MoffatModelFittingPlugin.cpp
19 *
20 * Created on: May 2, 2017
21 * Author: mschefer
22 */
23
29
30
31namespace SourceXtractor {
32
34
38
40 "smf_x",
41 [](const MoffatModelFitting& prop) {
42 return prop.getX() + 1.0;
43 },
44 "pixel",
45 "X-position of the Moffat fit"
46 );
47
49 "smf_y",
50 [](const MoffatModelFitting& prop) {
51 return prop.getY() + 1.0;
52 },
53 "pixel",
54 "Y-position of the Moffat fit"
55 );
56
58 "smf_iter",
59 [](const MoffatModelFitting& prop){
60 return prop.getIterations();
61 },
62 "",
63 "Number of iterations in the Moffat fitting"
64 );
65
66 plugin_api.getOutputRegistry().enableOutput<MoffatModelFitting>("MoffatModelFitting");
67}
68
70 return "MoffatModelFitting";
71}
72
73}
void registerPlugin(PluginAPI &plugin_api) override
void registerColumnConverter(std::string column_name, ColumnConverter< PropertyType, OutType > converter, std::string column_unit="", std::string column_description="")
void enableOutput(std::string alias_name, bool configurable_output=false)
This interface is given to the plugin to let it access object instances from the framework.
Definition PluginAPI.h:40
virtual OutputRegistry & getOutputRegistry() const =0
virtual TaskFactoryRegistry & getTaskFactoryRegistry() const =0
Used to register compile-time (static) plugins with the PluginManager.
static StaticPlugin< MoffatModelFittingPlugin > simple_modelfitting_plugin