| | |
| | | #include <basic/util/app/AppPreference.hpp> |
| | | |
| | | JudgmentRetrogradeTool::JudgmentRetrogradeTool(const SdkRule &rule) : |
| | | TimerElement(1000), |
| | | m_triggerElement(rule.nTriggerDelay * 8, 0), |
| | | m_sdkRule(rule), |
| | | pManagerEsDB(nullptr) { |
| | | pManagerEsDB(nullptr) |
| | | { |
| | | pManagerEsDB = new EsDBTool(appPref.getStringData("ipAdd"), appPref.getIntData("ipPort")); |
| | | } |
| | | |
| | |
| | | //#todo string ->json |
| | | QJsonArray arrayAreas = getJsonArrayFromQString(area); |
| | | if (arrayAreas.isEmpty()) { |
| | | return false;//do not detect |
| | | return false; |
| | | } |
| | | QVector<QPoint> vec; |
| | | for (int i = 0; i < arrayAreas.size(); ++i) { |
| | |
| | | return JRTOOL::getAngelOfTwoVector(directionVectorPoint, point); |
| | | } |
| | | |
| | | void JudgmentRetrogradeTool::timerFunc() { |
| | | void JudgmentRetrogradeTool::threadFunc() { |
| | | func(); |
| | | fireConnectors(); |
| | | } |