From a744fde134c14fb216a9bb55d4d0de123d1549e7 Mon Sep 17 00:00:00 2001 From: artivis <deray.jeremie@gmail.com> Date: Fri, 25 May 2018 19:03:39 +0200 Subject: [PATCH] ProcessorParamsBase constructor & explicit virtual --- src/processor_base.h | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/src/processor_base.h b/src/processor_base.h index 73fdc721e..d63edd93c 100644 --- a/src/processor_base.h +++ b/src/processor_base.h @@ -109,10 +109,31 @@ class KFPackBuffer */ struct ProcessorParamsBase { + ProcessorParamsBase() = default; + + ProcessorParamsBase(bool _voting_active, + Scalar _time_tolerance, + const std::string& _type, + const std::string& _name) + : voting_active(_voting_active) + , time_tolerance(_time_tolerance) + , type(_type) + , name(_name) + { + // + } + + virtual ~ProcessorParamsBase() = default; + + bool voting_active = false; + + ///< maximum time difference between a Keyframe time stamp and + /// a particular Capture of this processor to allow assigning + /// this Capture to the Keyframe. + Scalar time_tolerance = Scalar(0); + std::string type; std::string name; - Scalar time_tolerance; ///< maximum time difference between a Keyframe time stamp and a particular Capture of this processor to allow assigning this Capture to the Keyframe. - bool voting_active; }; //class ProcessorBase -- GitLab