This commit is contained in:
2024-12-29 17:46:35 +03:30
parent e831ce8a91
commit c92f2570c7
12 changed files with 944 additions and 864 deletions
+61
View File
@@ -2513,6 +2513,67 @@ class XCPOIDrawer : public XCBase
return result;
}
/**
* Draw Specified Signal ...
*
* @param signal: XSignal instance ...
*/
bool DrawSignal(
XSignal &signal,
XCSignalObject *&object //
)
{
//
bool result = false;
//
object = NULL;
//
result = signal.IsValid();
if (!result)
{
return result;
}
//
string name = signal.GetTag();
object = new XCSignalObject();
result = object.Create(
ChartIdentification(),
name,
SubWindowIdentification(),
signal //
);
if (!result)
{
return result;
}
//
object.TPWidth(1);
object.TPColor(clrGreen);
object.TPWidth(STYLE_DOT);
//
object.SLWidth(1);
object.SLColor(clrRed);
object.SLWidth(STYLE_DOT);
//
object.TargetWidth(1);
object.TargetColor(clrLightBlue);
object.TargetWidth(STYLE_DOT);
//
object.EntryWidth(1);
object.EntryColor(clrYellow);
object.EntryWidth(STYLE_DOT);
//
return result;
}
/**
* Draw Specified POI State ...
*