last ...
This commit is contained in:
@@ -89,6 +89,13 @@ class XCX121SMCBaseStrategy : public XCBaseAlert
|
||||
return mPeriod;
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieve POI Drawer Instance Pointer ...
|
||||
**/
|
||||
XCPOIDrawer* GetDrawer() {
|
||||
return mPOIDrawer;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check Strategy is Disabled or not ...
|
||||
*
|
||||
@@ -727,66 +734,6 @@ class XCX121SMCBaseStrategy : public XCBaseAlert
|
||||
//
|
||||
// Draw Functions ...
|
||||
|
||||
/**
|
||||
* Draw Specified Signal ...
|
||||
*
|
||||
* @param signal: XSignal instance ...
|
||||
*/
|
||||
void DrawSignal(XSignal &signal)
|
||||
{
|
||||
//
|
||||
if (!signal.IsValid())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
//
|
||||
// DrawConditions(conditions);
|
||||
|
||||
//
|
||||
string name = signal.GetTag();
|
||||
RemoveObject(name);
|
||||
|
||||
//
|
||||
XCSignalObject *iObj;
|
||||
iObj = new XCSignalObject();
|
||||
|
||||
//
|
||||
bool isCreated = iObj.Create(
|
||||
ChartIdentification(),
|
||||
name,
|
||||
SubWindowIdentification(),
|
||||
signal //
|
||||
);
|
||||
if (!isCreated)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
//
|
||||
iObj.TPWidth(1);
|
||||
iObj.TPColor(clrGreen);
|
||||
iObj.TPWidth(STYLE_DOT);
|
||||
|
||||
//
|
||||
iObj.SLWidth(1);
|
||||
iObj.SLColor(clrRed);
|
||||
iObj.SLWidth(STYLE_DOT);
|
||||
|
||||
//
|
||||
iObj.TargetWidth(1);
|
||||
iObj.TargetColor(clrLightBlue);
|
||||
iObj.TargetWidth(STYLE_DOT);
|
||||
|
||||
//
|
||||
iObj.EntryWidth(1);
|
||||
iObj.EntryColor(clrYellow);
|
||||
iObj.EntryWidth(STYLE_DOT);
|
||||
|
||||
//
|
||||
// mDrawnObjects.Add(iObj);
|
||||
}
|
||||
|
||||
/**
|
||||
* Clear all Drawn Objects ...
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user