SourceXtractorPlusPlus
0.12
Please provide a description of the project.
SEImplementation
src
lib
Plugin
Vignet
VignetArraySourceTask.cpp
Go to the documentation of this file.
1
18
#include "
SEImplementation/Plugin/Vignet/Vignet.h
"
19
#include "
SEImplementation/Plugin/Vignet/VignetArray.h
"
20
#include "
SEImplementation/Plugin/Vignet/VignetArraySourceTask.h
"
21
22
namespace
SourceXtractor
{
23
24
VignetArraySourceTask::VignetArraySourceTask
(
const
std::vector<unsigned>
images): m_images{images} {
25
}
26
27
void
VignetArraySourceTask::computeProperties
(
SourceInterface
& source)
const
{
28
std::vector<std::reference_wrapper<const Vignet>
> vignets;
29
for
(
auto
img_idx :
m_images
) {
30
vignets.
emplace_back
(source.
getProperty
<
Vignet
>(img_idx));
31
}
32
source.
setProperty
<
VignetArray
>(vignets);
33
}
34
35
}
// end of namespace SourceXtractor
SourceXtractor::VignetArraySourceTask::computeProperties
void computeProperties(SourceInterface &source) const override
Computes one or more properties for the Source.
Definition:
VignetArraySourceTask.cpp:27
VignetArray.h
SourceXtractor::SourceInterface::setProperty
void setProperty(Args... args)
Definition:
SourceInterface.h:72
SourceXtractor::VignetArray
Definition:
VignetArray.h:29
SourceXtractor::VignetArraySourceTask::VignetArraySourceTask
VignetArraySourceTask(const std::vector< unsigned > images)
Definition:
VignetArraySourceTask.cpp:24
SourceXtractor
Definition:
Aperture.h:30
SourceXtractor::SourceInterface::getProperty
const PropertyType & getProperty(unsigned int index=0) const
Convenience template method to call getProperty() with a more user-friendly syntax.
Definition:
SourceInterface.h:57
VignetArraySourceTask.h
Vignet.h
std::vector< unsigned >
SourceXtractor::VignetArraySourceTask::m_images
std::vector< unsigned > m_images
Definition:
VignetArraySourceTask.h:34
SourceXtractor::SourceInterface
The SourceInterface is an abstract "source" that has properties attached to it.
Definition:
SourceInterface.h:46
SourceXtractor::Vignet
Definition:
Vignet.h:33
std::vector::emplace_back
T emplace_back(T... args)
Generated by
1.8.14