last ...
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user