SourceXtractorPlusPlus
0.15
Please provide a description of the project.
SEImplementation
src
lib
Plugin
MeasurementFrame
MeasurementFrameTask.cpp
Go to the documentation of this file.
1
17
/*
18
* MeasurementFrameTask.cpp
19
*
20
* Created on: Nov 3, 2016
21
* Author: mschefer
22
*/
23
24
#include "
SEFramework/Property/DetectionFrame.h
"
25
#include "
SEImplementation/Plugin/MeasurementFrame/MeasurementFrame.h
"
26
#include "
SEImplementation/Plugin/MeasurementFrame/MeasurementFrameTask.h
"
27
28
namespace
SourceXtractor
{
29
30
void
MeasurementFrameTask::computeProperties
(
SourceInterface
& source)
const
{
31
source.
setIndexedProperty
<
MeasurementFrame
>(
m_instance
,
m_measurement_frame
);
32
}
33
34
void
DefaultMeasurementFrameTask::computeProperties
(
SourceInterface
& source)
const
{
35
const
auto
& detection_frame = source.
getProperty
<
DetectionFrame
>();
36
37
source.
setIndexedProperty
<
MeasurementFrame
>(
38
m_instance
,
39
detection_frame.getFrame());
40
}
41
42
}
43
44
45
46
47
MeasurementFrame.h
SourceXtractor::MeasurementFrameTask::computeProperties
virtual void computeProperties(SourceInterface &source) const override
Computes one or more properties for the Source.
Definition:
MeasurementFrameTask.cpp:30
SourceXtractor::DefaultMeasurementFrameTask::m_instance
unsigned int m_instance
Definition:
MeasurementFrameTask.h:63
DetectionFrame.h
SourceXtractor
Definition:
Aperture.h:30
SourceXtractor::SourceInterface::setIndexedProperty
void setIndexedProperty(std::size_t index, Args... args)
Convenience template method to call setProperty() with a more user-friendly syntax.
Definition:
SourceInterface.h:64
SourceXtractor::MeasurementFrameTask::m_instance
unsigned int m_instance
Definition:
MeasurementFrameTask.h:46
SourceXtractor::DetectionFrame
Definition:
DetectionFrame.h:33
SourceXtractor::MeasurementFrame
Definition:
MeasurementFrame.h:36
SourceXtractor::MeasurementFrameTask::m_measurement_frame
std::shared_ptr< MeasurementImageFrame > m_measurement_frame
Definition:
MeasurementFrameTask.h:47
SourceXtractor::DefaultMeasurementFrameTask::computeProperties
virtual void computeProperties(SourceInterface &source) const override
Computes one or more properties for the Source.
Definition:
MeasurementFrameTask.cpp:34
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::SourceInterface
The SourceInterface is an abstract "source" that has properties attached to it.
Definition:
SourceInterface.h:46
MeasurementFrameTask.h
Generated by
1.8.20