5#include "declarative/PropertyMacros.h"
22 template<
typename PropsT>
25 const std::map<std::string, apra::ScalarPropertyValue>& values,
26 std::vector<std::string>& missingRequired
32 if (propName ==
"angle")
return angle;
33 throw std::runtime_error(
"Unknown property: " + propName);
37 throw std::runtime_error(
"Cannot modify static property '" + propName +
"' after initialization");
55 bool process(frame_container &frames);
59 void addInputPin(framemetadata_sp &metadata,
string &pinId);
double angle
Definition RotateCV.h:17
static std::vector< std::string > dynamicPropertyNames()
Definition RotateCV.h:40
RotateCVProps()
Definition RotateCV.h:15
bool setProperty(const std::string &propName, const apra::ScalarPropertyValue &value)
Definition RotateCV.h:36
static void applyProperties(PropsT &props, const std::map< std::string, apra::ScalarPropertyValue > &values, std::vector< std::string > &missingRequired)
Definition RotateCV.h:23
RotateCVProps(double _angle)
Definition RotateCV.h:10
apra::ScalarPropertyValue getProperty(const std::string &propName) const
Definition RotateCV.h:31
Definition RotateCV.cpp:12
bool validateOutputPins()
Definition RotateCV.cpp:116
bool processSOS(frame_sp &frame)
Definition RotateCV.cpp:181
virtual ~RotateCV()
Definition RotateCV.cpp:88
bool process(frame_container &frames)
Definition RotateCV.cpp:168
bool validateInputPins()
Definition RotateCV.cpp:90
void addInputPin(framemetadata_sp &metadata, string &pinId)
Definition RotateCV.cpp:142
boost::shared_ptr< Detail > mDetail
Definition RotateCV.h:65
bool shouldTriggerSOS()
Definition RotateCV.cpp:188
bool processEOS(string &pinId)
Definition RotateCV.cpp:193
bool term()
Definition RotateCV.cpp:162
bool init()
Definition RotateCV.cpp:152
RotateCV(RotateCVProps props)
Definition RotateCV.cpp:83
void applyProp(T &member, const char *propName, const std::map< std::string, ScalarPropertyValue > &values, bool isRequired, std::vector< std::string > &missingRequired)
Definition PropertyMacros.h:36
std::variant< int64_t, double, bool, std::string > ScalarPropertyValue
Definition ModuleRegistry.h:30