This article shows you how to track an object in a visualization control using the API.
![]()
You should know the information in the following article:
Before you start, remember:
Add the Ubisense references to your application
Add a list of objects to your WinForm
Add a visualization with your area to your WinForm
Connect as a caching
client to
Ubisense.UName.Naming schema, with
instance name
naming_schema
This guide shows you how to track an object in your visualization.
Assume that the list of objects is contained in
listBox1. If you want the visualization to track the selected object, you can get
that object by iterating over the
Ubisense.UName.Naming.ObjectName relation. Then, set the
TrackedObject property of your
Ubisense.UVis.Visualization instance, in this case
visualization1:
|
When you run your application, the look point of the current view of the map will be fixed to the 2D coordinates of the object selected from the list. This means that the Visualization will point at the floor of the loaded Area directly under the tracked object. This works in both 2D and 3D views.