This commit is contained in:
2025-04-21 17:27:08 +03:30
parent 50092f2408
commit 0c280c24b4
3 changed files with 450 additions and 26 deletions
+78 -1
View File
@@ -129,6 +129,9 @@ struct XCAPivot
//
Clean(values);
//
ZeroMemory(this);
}
/**
@@ -465,6 +468,80 @@ struct XCAPivot
//
};
//
struct XCAPVFVG
{
//
// Props ...
double value;
XCAPivot fvgs[];
ENUM_X_DIRECTION dir;
//
// Constructor ...
XCAPVFVG()
{
Clean();
}
//
// Tools ...
//
void Clean()
{
//
value = 0;
Clean(fvgs);
dir = X_DIRECTION_NONE;
//
ZeroMemory(this);
}
//
bool IsValid()
{
//
bool result = false;
//
result = value != 0 &&
HasDirection(dir);
//
return result;
}
//
void AddPivot(XCAPivot &pivot)
{
//
if (!IsValid() ||
!pivot.IsValid())
{
return;
}
//
int idx = -1;
bool has = FindPivotIndex(
idx,
pivot,
fvgs //
);
if (has) {
return;
}
//
AddRef(
pivot,
fvgs //
);
}
};
/**
* Find Specified Pivot Index inside a Collection of Pivots ...
*
@@ -4762,7 +4839,7 @@ class XCXCAEAPOIDetector : public XCBase
}
Clean(tmp);
}
//
// OSCS ...