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