Back to contents pageHow to show zones on a visualization

How to show zones on a visualization

Summary

This article shows you how to draw zone shapes on a Ubisense visualization. The example material is an application that lets you select which spatial zones to show at any time. The details are described in more depth in the prerequisite articles.





Prerequisites

You should know the information in the following articles:



Example material

Save this link to get a zip file of the example material


Guide

The example application allows you to view spatial zone shapes and clipping regions. You should read the information in the article How to create your own Map Model to see how to add your own objects to your visualization.

The example zones shown here are shapes from the following relations:

In the example, the representation for a zone, class ZoneRep, requires a Ubisense.USpatial.Shape.

For spatial relations, ObjectOwnsAbsoluteShape.RowType contains the Ubisense.USpatial.Shape as required.
For clipping regions, the cell extent is actually stored as a Ubisense.UCell.PolygonalPrism, but this is easily converted in the example code.



Back to top