SourceXtractorPlusPlus
0.10
Please provide a description of the project.
SEImplementation
src
lib
Plugin
PeakValue
PeakValuePlugin.cpp
Go to the documentation of this file.
1
17
/*
18
* PeakValuePlugin.cpp
19
*
20
* Created on: Feb 9, 2017
21
* Author: mschefer
22
*/
23
24
#include "
SEFramework/Plugin/StaticPlugin.h
"
25
26
#include "
SEImplementation/Plugin/PeakValue/PeakValue.h
"
27
#include "
SEImplementation/Plugin/PeakValue/PeakValueTaskFactory.h
"
28
29
#include "
SEImplementation/Plugin/PeakValue/PeakValuePlugin.h
"
30
31
namespace
SourceXtractor
{
32
33
static
StaticPlugin<PeakValuePlugin>
peak_value_plugin
;
34
35
void
PeakValuePlugin::registerPlugin
(
PluginAPI
& plugin_api) {
36
plugin_api.
getTaskFactoryRegistry
().
registerTaskFactory
<
PeakValueTaskFactory
,
PeakValue
>();
37
38
plugin_api.
getOutputRegistry
().
registerColumnConverter
<
PeakValue
,
double
>(
39
"peak_value"
,
40
[](
const
PeakValue
& prop){
41
return
prop.getMaxValue();
42
},
43
"[count]"
,
44
"Highest pixel value in the detection image"
45
);
46
47
plugin_api.
getOutputRegistry
().
enableOutput
<
PeakValue
>(
"PeakValue"
);
48
}
49
50
std::string
PeakValuePlugin::getIdString
()
const
{
51
return
"PeakValue"
;
52
}
53
54
}
55
SourceXtractor::PeakValuePlugin::getIdString
virtual std::string getIdString() const override
Definition:
PeakValuePlugin.cpp:50
PeakValueTaskFactory.h
SourceXtractor::PluginAPI::getOutputRegistry
virtual OutputRegistry & getOutputRegistry() const =0
SourceXtractor::PeakValuePlugin::registerPlugin
virtual void registerPlugin(PluginAPI &plugin_api) override
Definition:
PeakValuePlugin.cpp:35
PeakValuePlugin.h
SourceXtractor::peak_value_plugin
static StaticPlugin< PeakValuePlugin > peak_value_plugin
Definition:
PeakValuePlugin.cpp:33
PeakValue.h
SourceXtractor::TaskFactoryRegistry::registerTaskFactory
void registerTaskFactory()
Definition:
TaskFactoryRegistry.h:51
std::string
STL class.
SourceXtractor
Definition:
Aperture.h:30
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::PeakValue
Definition:
PeakValue.h:32
SourceXtractor::StaticPlugin
Used to register compile-time (static) plugins with the PluginManager.
Definition:
StaticPlugin.h:38
SourceXtractor::OutputRegistry::enableOutput
void enableOutput(std::string alias_name)
Definition:
OutputRegistry.h:128
SourceXtractor::PeakValueTaskFactory
Definition:
PeakValueTaskFactory.h:35
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
Generated by
1.8.15