SourceXtractorPlusPlus
1.0.3
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
SEImplementation
src
lib
Plugin
Vignet
VignetArraySourceTask.cpp
Go to the documentation of this file.
1
17
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
VignetArraySourceTask.h
VignetArray.h
Vignet.h
SourceXtractor::SourceInterface
The SourceInterface is an abstract "source" that has properties attached to it.
Definition
SourceInterface.h:46
SourceXtractor::SourceInterface::setProperty
void setProperty(Args... args)
Definition
SourceInterface.h:72
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
SourceXtractor::VignetArraySourceTask::computeProperties
void computeProperties(SourceInterface &source) const override
Computes one or more properties for the Source.
Definition
VignetArraySourceTask.cpp:27
SourceXtractor::VignetArraySourceTask::VignetArraySourceTask
VignetArraySourceTask(const std::vector< unsigned > images)
Definition
VignetArraySourceTask.cpp:24
SourceXtractor::VignetArraySourceTask::m_images
std::vector< unsigned > m_images
Definition
VignetArraySourceTask.h:34
SourceXtractor::VignetArray
Definition
VignetArray.h:29
SourceXtractor::Vignet
Definition
Vignet.h:33
std::vector::emplace_back
T emplace_back(T... args)
SourceXtractor
Definition
Aperture.h:30
std::vector
Generated by
1.15.0