SourceXtractorPlusPlus 0.21
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
WorldCentroidPlugin.cpp
Go to the documentation of this file.
1
17/*
18 * WorldCentroidPlugin.cpp
19 *
20 * Created on: Nov 21, 2016
21 * Author: mschefer
22 */
23
24
26
29
31
32namespace SourceXtractor {
33
35
37 plugin_api.getTaskFactoryRegistry().registerTaskFactory<WorldCentroidTaskFactory, WorldCentroid>();
38
39 plugin_api.getOutputRegistry().registerColumnConverter<WorldCentroid, double>(
40 "world_centroid_alpha",
41 [](const WorldCentroid& prop){
42 return prop.getCentroidAlpha();
43 },
44 "deg",
45 "RA object position"
46 );
47
48 plugin_api.getOutputRegistry().registerColumnConverter<WorldCentroid, double>(
49 "world_centroid_delta",
50 [](const WorldCentroid& prop){
51 return prop.getCentroidDelta();
52 },
53 "deg",
54 "Dec object position"
55 );
56
57 plugin_api.getOutputRegistry().enableOutput<WorldCentroid>("WorldCentroid");
58}
59
61 return "World Centroid";
62}
63
64}
65
66
67
68
69
This interface is given to the plugin to let it access object instances from the framework.
Definition PluginAPI.h:40
void registerPlugin(PluginAPI &plugin_api) override
std::string getIdString() const override
static StaticPlugin< PixelCentroidPlugin > pixel_centroid_plugin