summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfcolin2011-09-02 15:43:24 +0000
committerfcolin2011-09-02 15:43:24 +0000
commit487e963b081d7ffe2ddf489e11d927982c9101a6 (patch)
treec2184a749866c48a0c8c075730a63da76b9e4cce
parentdfc884b636c4b624529a460a85781a6da2c365c9 (diff)
downloadamilis-487e963b081d7ffe2ddf489e11d927982c9101a6.zip
amilis-487e963b081d7ffe2ddf489e11d927982c9101a6.tar.gz
amilis-487e963b081d7ffe2ddf489e11d927982c9101a6.tar.bz2
amilis-487e963b081d7ffe2ddf489e11d927982c9101a6.tar.xz
debut implementation remove strip
-rw-r--r--ProjectedStripBoard/FormProjectedStripBoard.cs22
1 files changed, 22 insertions, 0 deletions
diff --git a/ProjectedStripBoard/FormProjectedStripBoard.cs b/ProjectedStripBoard/FormProjectedStripBoard.cs
index 41fb303..8dd4436 100644
--- a/ProjectedStripBoard/FormProjectedStripBoard.cs
+++ b/ProjectedStripBoard/FormProjectedStripBoard.cs
@@ -152,6 +152,7 @@ namespace ProjectedStripBoard
IvyBus.ivy.Start(IvyDomaine);
// IvyBus.ivy.BindMsg(@"^ShowStrip FlightId=([0-9]+) Name=(.*) Show=(True|False) x=(.*) y=(.*)", ShowStrip, null);
IvyBus.ivy.BindMsg(@"^MarkerMoveCalibrated cam=(.*) id=(.*) time=(.*) confidence=(.*) area=(.*) dir=(.*) x=(.*) y=(.*)", ShowStrip, null);
+ IvyBus.ivy.BindMsg(@"^MarkerRemove cam=(.*) id=(.*)", UnShowStrip );
IvyBus.ivy.BindMsg(@"^SeleteAircraftFromRadarScreen AircraftId=(.*)", SeleteAircraftFromRadarScreen, null);
@@ -276,7 +277,28 @@ namespace ProjectedStripBoard
RebuildTexture();
}*/
}
+ /// <summary>
+ /// IvyBus.ivy.BindMsg(@"^
+ /// MarkerMove cam=(.*) id=(.*) time=(.*) confidence=(.*) area=(.*) dir=(.*) x=(.*) y=(.*) distance=(.*)", ShowStrip, null);
+ /// 0 1 2 3 4 5 6 7 8
+ /// </summary>
+ /// <param name="sender"></param>
+ /// <param name="e"></param>
+ private void UnShowStrip(object sender, IvyMessageEventArgs e)
+ {
+ string camId = e[0];
+ int markerId = int.Parse(e[1]);
+ //Find the corresponding strip
+ int idIndex = -1;
+ //remove the strip if all tags not vilible
+ ProjectedStrip strip = ProjectedStrip.FindStrip(ProjectedStrips, markerId, out idIndex);
+ if (strip != null)
+ {
+ //strip.
+ NeedRefresh = true;
+ }
+ }
private void RebuildTexture()
{
NeedRefresh = true;