This commit is contained in:
2025-06-02 08:46:42 +03:30
parent b660b12322
commit d01e1036ce
5 changed files with 854 additions and 121 deletions
@@ -32,9 +32,9 @@
//
enum ENUM_XCATB_PIVOTS
{
XCA_NONE, // None
XCA_PEAK, // Peak
XCA_VALE, // Vale
XCA_NONE, // None
XCA_PEAK, // Peak
XCA_VALE, // Vale
};
//
@@ -1258,6 +1258,45 @@ class XCXCATBEAPOIDetector : public XCBase
return ArraySize(peakPivots);
}
//
int FillPeakPivots(XBoxZone &pivots[])
{
//
int result = 0;
//
Clean(pivots);
//
if (!HasPeakPivots())
{
return result;
}
//
int count = CountPeakPivots();
for (int i = 0; i < count; i++)
{
//
XBoxZone iPivot = peakPivots[i];
//
AddRef(
iPivot,
pivots //
);
//
iPivot.Clean();
}
//
result = ArraySize(pivots);
//
return result;
}
//
// VALE ...
@@ -1279,6 +1318,45 @@ class XCXCATBEAPOIDetector : public XCBase
return ArraySize(valePivots);
}
//
int FillValePivots(XBoxZone &pivots[])
{
//
int result = 0;
//
Clean(pivots);
//
if (!HasValePivots())
{
return result;
}
//
int count = CountValePivots();
for (int i = 0; i < count; i++)
{
//
XBoxZone iPivot = valePivots[i];
//
AddRef(
iPivot,
pivots //
);
//
iPivot.Clean();
}
//
result = ArraySize(pivots);
//
return result;
}
//
// Protected ...
protected: