SourceXtractorPlusPlus
0.10
Please provide a description of the project.
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
SEImplementation
src
lib
Plugin
WorldCentroid
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
25
#include "
SEFramework/Plugin/StaticPlugin.h
"
26
27
#include "
SEImplementation/Plugin/WorldCentroid/WorldCentroid.h
"
28
#include "
SEImplementation/Plugin/WorldCentroid/WorldCentroidTaskFactory.h
"
29
30
#include "
SEImplementation/Plugin/WorldCentroid/WorldCentroidPlugin.h
"
31
32
namespace
SourceXtractor {
33
34
static
StaticPlugin<WorldCentroidPlugin>
pixel_centroid_plugin
;
35
36
void
WorldCentroidPlugin::registerPlugin
(
PluginAPI
& plugin_api) {
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
60
std::string
WorldCentroidPlugin::getIdString
()
const
{
61
return
"World Centroid"
;
62
}
63
64
}
65
66
67
68
69
SourceXtractor::PluginAPI::getOutputRegistry
virtual OutputRegistry & getOutputRegistry() const =0
SourceXtractor::WorldCentroidPlugin::registerPlugin
virtual void registerPlugin(PluginAPI &plugin_api) override
Definition:
WorldCentroidPlugin.cpp:36
WorldCentroid.h
SourceXtractor::TaskFactoryRegistry::registerTaskFactory
void registerTaskFactory()
Definition:
TaskFactoryRegistry.h:51
std::string
STL class.
StaticPlugin.h
SourceXtractor::PluginAPI
This interface is given to the plugin to let it access object instances from the framework.
Definition:
PluginAPI.h:39
SourceXtractor::WorldCentroid
Definition:
WorldCentroid.h:32
SourceXtractor::WorldCentroidPlugin::getIdString
virtual std::string getIdString() const override
Definition:
WorldCentroidPlugin.cpp:60
SourceXtractor::StaticPlugin
Used to register compile-time (static) plugins with the PluginManager.
Definition:
StaticPlugin.h:38
WorldCentroidTaskFactory.h
SourceXtractor::OutputRegistry::enableOutput
void enableOutput(std::string alias_name)
Definition:
OutputRegistry.h:128
SourceXtractor::pixel_centroid_plugin
static StaticPlugin< PixelCentroidPlugin > pixel_centroid_plugin
Definition:
PixelCentroidPlugin.cpp:33
SourceXtractor::PluginAPI::getTaskFactoryRegistry
virtual TaskFactoryRegistry & getTaskFactoryRegistry() const =0
SourceXtractor::OutputRegistry::registerColumnConverter
void registerColumnConverter(std::string column_name, ColumnConverter< PropertyType, OutType > converter, std::string column_unit="", std::string column_description="")
Definition:
OutputRegistry.h:46
WorldCentroidPlugin.h
SourceXtractor::WorldCentroidTaskFactory
Definition:
WorldCentroidTaskFactory.h:31
Generated by
1.8.5