SourceXtractorPlusPlus
0.21
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
SEImplementation
src
lib
Plugin
KronRadius
KronRadiusPlugin.cpp
Go to the documentation of this file.
1
17
/*
18
* KronRadiusPlugin.cpp
19
*
20
* Created on: Sep 12, 2016
21
* Author: mkuemmel@usm.lmu.de
22
*/
23
24
#include "
SEFramework/Plugin/StaticPlugin.h
"
25
26
#include "
SEImplementation/Plugin/KronRadius/KronRadius.h
"
27
#include "
SEImplementation/Plugin/KronRadius/KronRadiusTaskFactory.h
"
28
#include "
SEImplementation/Plugin/KronRadius/KronRadiusPlugin.h
"
29
30
namespace
SourceXtractor
{
31
32
static
StaticPlugin<KronRadiusPlugin>
kron_radius_plugin
;
33
34
void
KronRadiusPlugin::registerPlugin
(
PluginAPI
&
plugin_api
) {
35
plugin_api
.getTaskFactoryRegistry().registerTaskFactory<
KronRadiusTaskFactory
,
KronRadius
>();
36
37
plugin_api
.getOutputRegistry().registerColumnConverter<
KronRadius
,
double
>(
38
"kron_radius"
,
39
[](
const
KronRadius
&
prop
){
40
return
prop
.getKronRadius();
41
},
42
"pixel"
,
43
"Kron radius"
44
);
45
46
plugin_api
.getOutputRegistry().registerColumnConverter<
KronRadius
,
int64_t
>(
47
"kron_flag"
,
48
[](
const
KronRadius
&
prop
){
49
return
prop
.getFlag();
50
},
51
""
,
52
"Flags for the Kron radius"
53
);
54
55
// register as optional output (to have it in the output catalog)
56
plugin_api
.getOutputRegistry().enableOutput<
KronRadius
>(
"KronRadius"
);
57
}
58
59
std::string
KronRadiusPlugin::getIdString
()
const
{
60
return
"KronRadiusPlugin"
;
61
}
62
63
}
KronRadiusPlugin.h
KronRadiusTaskFactory.h
KronRadius.h
StaticPlugin.h
std::string
SourceXtractor::KronRadiusPlugin::registerPlugin
void registerPlugin(PluginAPI &plugin_api) override
Definition
KronRadiusPlugin.cpp:34
SourceXtractor::KronRadiusPlugin::getIdString
std::string getIdString() const override
Definition
KronRadiusPlugin.cpp:59
SourceXtractor::KronRadiusTaskFactory
Definition
KronRadiusTaskFactory.h:31
SourceXtractor::KronRadius
Kron radius.
Definition
KronRadius.h:36
SourceXtractor::PluginAPI
This interface is given to the plugin to let it access object instances from the framework.
Definition
PluginAPI.h:40
std::function
std::int64_t
SourceXtractor
Definition
Aperture.h:30
SourceXtractor::kron_radius_plugin
static StaticPlugin< KronRadiusPlugin > kron_radius_plugin
Definition
KronRadiusPlugin.cpp:32
Generated by
1.10.0