Overlay methods
01
Introduction
02
Update Overlay
03
Remove Overlay
Here are the C# scripting methods for creating, managing and deleting synoptic overlays.
Suivant
For greater comfort, switch to full-screen mode and/or open a new window. Move your mouse over the interactive menu on the left, and click on introduction, or on another title to navigate through the elearning.
Overlay methods
01
Introduction
We've seen how to create an overlay using the overlays table in the AppVision client.
02
Update Overlay
03
Remove Overlay
Previous
Next
Overlay methods
01
Introduction
We've seen how to create an overlay using the overlays table in the AppVision client.
02
Update Overlay
But the classic process of creating, managing and deleting overlays is script-based.
03
Remove Overlay
Previous
Next
Overlay methods
01
Introduction
Note that the Update method is called update, not create. It is used both to create and update an overlay. Having a single method for creating and updating will simplify the writing and use of scripts handling overlays. This is particularly useful when you want to generate moving overlays, with a position that changes regularly.
02
Update Overlay
But the classic process of creating, managing and deleting overlays is script-based.
There are two methods to manage overlays:
03
Remove Overlay
- The Update Overlay method, for creating and updating overlays.
- The Remove overlay method, which removes them.
Previous
+ Info
Next
Overlay methods
Update Overlay
01
Introduction
02
Update Overlay
Server.ClientManager.UpdateOverlay(string id, string symbol-name, string syno, Point p, stringParameters)
03
Remove Overlay
Click on each method item to reveal its information.
Previous
Next
Overlay methods
Remove Overlay
01
Introduction
02
Update Overlay
Server.ClientManager.RemoveOverlay(string id)
03
Remove Overlay
Click on each method item to reveal its information.
Previous
Next
Overlay methods
01
Introduction
Now that this activity is complete, you can read the associated duplicate text, or simply move on to the next activity: a quiz!
02
Update Overlay
If the screen opens in a new window, return to the tab containing the platform.
03
Remove Overlay
Suivant
Server.ClientManager
Voir avec Robin pour dire quelque chose ici. Si on doit l'écrire manuellement (sans copier-coller ou sans assistant) on prendra garde à ne pas oublier les majuscules.
String symbole name
In order to call up the symbol that will represent the overlay on the synoptic, the path to the symbol is indicated in the configurator. Ex: @"Symbols\Drone.xaml", @"Symbols\Event.xaml " Note: quotation marks and @ before the text are mandatory.
Server.ClientManager
Overlays are managed by the server, so they can be shared by all clients.
String id
This is the name of the overlay on the server. This is what uniquely distinguishes each overlay. Ex : "incident1", "incident2", "drone1"... Note: the text must be enclosed in quotation marks "...".
RemoveOverlay
This is the name of the method. If you have to write it manually (without copying and pasting or without a wizard), be careful not to forget the capital letters.
StringParameters
This parameter is optional, and may be left blank (in which case delete up to the preceding comma). This is the set of parameters for the symbol to be displayed as an overlay (%1, %2, %3 ...). Ex: " $V.Lighting.L01"
String id
This is the name of the overlay on the server. This is what uniquely distinguishes each overlay. Remove Overlay will only remove this overlay. Ex : "incident1", "incident2", "drone1"... Note: the text must be enclosed in quotation marks "...".
UpdateOverlay
This is the name of the method. If you have to write it manually (without copying and pasting or without a wizard), be careful not to forget the capital letters.
Point p
The position on the synoptic. This is a text file containing pixel coordinates in "x,y" format or GPS coordinates in "y,x" format, which must be transformed using the ToPointFromPosition() ToPointFromePosition() When a position is expressed in "x,y" (pixels) or "y,x" (GPS) format, AppVision doesn't identify a point, but text. You therefore need to add the ToPointfromPosition() method after the text expressing the position, so that this position is transformed into a point. Ex: "300,152".ToPointFromPosition() "43.4744, 5.3388".ToPointFromPosition()
Server.ClientManager
Overlays are managed by the server, so they can be shared by all clients.
String syno
This is the name of the layout in the configurator, on which Appvision will display the overlay. We therefore indicate the path of the synoptic in the configurator.Ex: @" carte_site_B.xaml ", "@geo "Note 1 : "@geo": you can use "@geo" to designate all map-type synoptics (GIS or on a plan calibrated in GPS coordinates). In this case, the overlay will be displayed on all synoptics containing its position. Note 2 : @geo is used as "@geo" and not as @"geo".
String id
C’est le nom de l’overlay sur le serveur. C’est-à-dire ce qui permet de distinguer chacun des overlays de manière unique. Remove Overlay ne supprimera que cet overlay là. Ex : "incident1", "incident2", "drone1"... Remarque : le texte est obligatoirement entouré de guillemets "..."
C1 - Les méthodes overlay -ENG
Raphael Ripert
Created on December 13, 2023
Start designing with a free template
Discover more than 1500 professional designs like these:
View
Essential Dossier
View
Essential Business Proposal
View
Essential One Pager
View
Akihabara Dossier
View
Akihabara Marketing Proposal
View
Akihabara One Pager
View
Vertical Genial One Pager
Explore all templates
Transcript
Overlay methods
01
Introduction
02
Update Overlay
03
Remove Overlay
Here are the C# scripting methods for creating, managing and deleting synoptic overlays.
Suivant
For greater comfort, switch to full-screen mode and/or open a new window. Move your mouse over the interactive menu on the left, and click on introduction, or on another title to navigate through the elearning.
Overlay methods
01
Introduction
We've seen how to create an overlay using the overlays table in the AppVision client.
02
Update Overlay
03
Remove Overlay
Previous
Next
Overlay methods
01
Introduction
We've seen how to create an overlay using the overlays table in the AppVision client.
02
Update Overlay
But the classic process of creating, managing and deleting overlays is script-based.
03
Remove Overlay
Previous
Next
Overlay methods
01
Introduction
Note that the Update method is called update, not create. It is used both to create and update an overlay. Having a single method for creating and updating will simplify the writing and use of scripts handling overlays. This is particularly useful when you want to generate moving overlays, with a position that changes regularly.
02
Update Overlay
But the classic process of creating, managing and deleting overlays is script-based.
There are two methods to manage overlays:
03
Remove Overlay
- The Update Overlay method, for creating and updating overlays.
- The Remove overlay method, which removes them.
Previous
+ Info
Next
Overlay methods
Update Overlay
01
Introduction
02
Update Overlay
Server.ClientManager.UpdateOverlay(string id, string symbol-name, string syno, Point p, stringParameters)
03
Remove Overlay
Click on each method item to reveal its information.
Previous
Next
Overlay methods
Remove Overlay
01
Introduction
02
Update Overlay
Server.ClientManager.RemoveOverlay(string id)
03
Remove Overlay
Click on each method item to reveal its information.
Previous
Next
Overlay methods
01
Introduction
Now that this activity is complete, you can read the associated duplicate text, or simply move on to the next activity: a quiz!
02
Update Overlay
If the screen opens in a new window, return to the tab containing the platform.
03
Remove Overlay
Suivant
Server.ClientManager
Voir avec Robin pour dire quelque chose ici. Si on doit l'écrire manuellement (sans copier-coller ou sans assistant) on prendra garde à ne pas oublier les majuscules.
String symbole name
In order to call up the symbol that will represent the overlay on the synoptic, the path to the symbol is indicated in the configurator. Ex: @"Symbols\Drone.xaml", @"Symbols\Event.xaml " Note: quotation marks and @ before the text are mandatory.
Server.ClientManager
Overlays are managed by the server, so they can be shared by all clients.
String id
This is the name of the overlay on the server. This is what uniquely distinguishes each overlay. Ex : "incident1", "incident2", "drone1"... Note: the text must be enclosed in quotation marks "...".
RemoveOverlay
This is the name of the method. If you have to write it manually (without copying and pasting or without a wizard), be careful not to forget the capital letters.
StringParameters
This parameter is optional, and may be left blank (in which case delete up to the preceding comma). This is the set of parameters for the symbol to be displayed as an overlay (%1, %2, %3 ...). Ex: " $V.Lighting.L01"
String id
This is the name of the overlay on the server. This is what uniquely distinguishes each overlay. Remove Overlay will only remove this overlay. Ex : "incident1", "incident2", "drone1"... Note: the text must be enclosed in quotation marks "...".
UpdateOverlay
This is the name of the method. If you have to write it manually (without copying and pasting or without a wizard), be careful not to forget the capital letters.
Point p
The position on the synoptic. This is a text file containing pixel coordinates in "x,y" format or GPS coordinates in "y,x" format, which must be transformed using the ToPointFromPosition() ToPointFromePosition() When a position is expressed in "x,y" (pixels) or "y,x" (GPS) format, AppVision doesn't identify a point, but text. You therefore need to add the ToPointfromPosition() method after the text expressing the position, so that this position is transformed into a point. Ex: "300,152".ToPointFromPosition() "43.4744, 5.3388".ToPointFromPosition()
Server.ClientManager
Overlays are managed by the server, so they can be shared by all clients.
String syno
This is the name of the layout in the configurator, on which Appvision will display the overlay. We therefore indicate the path of the synoptic in the configurator.Ex: @" carte_site_B.xaml ", "@geo "Note 1 : "@geo": you can use "@geo" to designate all map-type synoptics (GIS or on a plan calibrated in GPS coordinates). In this case, the overlay will be displayed on all synoptics containing its position. Note 2 : @geo is used as "@geo" and not as @"geo".
String id
C’est le nom de l’overlay sur le serveur. C’est-à-dire ce qui permet de distinguer chacun des overlays de manière unique. Remove Overlay ne supprimera que cet overlay là. Ex : "incident1", "incident2", "drone1"... Remarque : le texte est obligatoirement entouré de guillemets "..."