refactor all requirements for draw and detect pois and also add Fima Helper, Parser Class Implementations for Separation of Concerns ...
This commit is contained in:
@@ -1460,6 +1460,49 @@ class XCPOIDrawer : public XCBase
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Draw Pivots ...
|
||||
*
|
||||
* @param pivots: XPivot, collection reference to Draw ...
|
||||
* @param config: XPOIDrawConfig, reference to Specified Draw Style ...
|
||||
*/
|
||||
void DrawPivots(
|
||||
XPivot &pivots[],
|
||||
XPOIDrawConfig &config //
|
||||
)
|
||||
{
|
||||
//
|
||||
// Validate ...
|
||||
bool has = HasChild(pivots);
|
||||
if (!has)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
//
|
||||
XPivot tmps[];
|
||||
int count = ArraySize(pivots);
|
||||
for (int i = 0; i < count; i++)
|
||||
{
|
||||
//
|
||||
XClean(tmps);
|
||||
int sameCounts = ExtractSameTimePivots(pivots[i], tmps, pivots);
|
||||
has = IsValidSize(sameCounts);
|
||||
if (has)
|
||||
{
|
||||
//
|
||||
for (int j = 0; j < sameCounts; j++)
|
||||
{
|
||||
DrawPivot(tmps[j], config, j + 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Cleanup ...
|
||||
XClean(tmps);
|
||||
}
|
||||
|
||||
/**
|
||||
* Draw Specified Pattern info ...
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user