![]() |
Defining Display Maps |
Map configurations are used to define the display appearance
for an individual scene, or map, in the entire
sequence. The following sample
illustrates and explains each of the components of a map
display. It also shows how the components are defined in the
configuration file. Note that the elements of the map configuration
must be in the order presented. Single-line comments may be
used with the symbol.
This example is based on the fourth map
in the UWTV implementation.
In the Traffic Channel installation directory, it is the
TrafficMaps\hovEast.txt file
# TrafficChannel map layout/configuration
# Definition to display HOV traffic data on the right side of
# the display and video on the right.
# number of video effects
2
# The Genie effect files, start times in msec, time in msec
# until running reverse effect (0 if no reverse effect)
# Reversed effect lets you run previously loaded effect in reverse, after an interval
# For instance, zoom video out from map, wait, then back into map
c:\TrafficChannel\Effects\pagetrn4.eff 5800 0 # transition between maps
c:\TrafficChannel\Effects\WestWipe.eff 1000 0 # swoosh out video on layer 2
# Map origin:
# Origin is in the screen coordinate system, with a resolution
# of 640x480 pixels, and is used
# to adjust the relative position of the segment display and the
# components that are displayed relative to the segments
244 0
#
# Color Table Definition
# The color table must contain 16 entries numbered 0-15. Each
# color table entry is used to lookup a given object on the display.
# When changing color definitions verify that the new selections
# are 'NTSC safe' by previewing a sample on a vector scope
# and waveform analyzer.
#
0 0 0 0 # Black;
1 255 0 0 # Flash Red;
2 0 24 127 # Dark Blue;
3 36 53 231 # Bright Blue, i.e. road sign bkgs
4 98 143 189 # Light Blue, i.e. lake background
5 0 0 0 # UNUSED
6 192 192 192 # Light Gray;
7 135 135 135 # Medium Gray;
8 75 75 75 # Dark Gray;
9 211 17 53 # Red;
10 0 210 0 # Green;
11 243 209 49 # Yellow;
12 255 116 4 # Orange
13 0 0 0 # UNUSED
14 0 0 0 # UNUSED
15 200 200 200 # White;
# segment closure information:
# -file name- Name of file containing loop names of closed segments
# -closure color ix- Index of color from above palette for closed segment
# -bad data ix- Index of color for data not available
Closures\hovclosures.seg 0 7
# Segment Type Definitions
# type# : 0 - (N-1) where N is the number of segment types
# capStyle : horizontal | vertical
# width : width of the segment in pixels
# borderWidth : width of the segment border in pixels
# colorIndex : 0-15 segment border color from the above color table
2 # number of segment types
0 horizontal 8 1 8
1 vertical 8 1 8
# Segment Definitions
265 # number of segments
SegmentDefinitions\hov.seg
# Static filled regions
# This section is used to draw the speed legend in the UWTV maps.
# The four (x,y) point pairs are connected with a single-pixel
# wide border and filled with the specified color.
#
6 # number of quadrilaterals to draw
# -x0- -y0- -x1- -y1- -x2- -y2- -x3- -y3- -color for fill- -color for flash-
# If the foreground and background colors are equal, do no flashing
# Color values must be indexes to the above color table.
70 330 80 330 80 350 70 350 9 6
70 350 80 350 80 370 70 370 9 9
70 370 80 370 80 390 70 390 11 11
70 390 80 390 80 410 70 410 10 10
70 410 80 410 80 430 70 430 0 0
70 430 80 430 80 450 70 450 7 7
# Decoration Declarations
# Decorations are pre-defined .PNG image files to place on the display
35 # Number of decorations
# -image filename- upper-X upper-Y (position is relative to the map origin) refresh
# refresh is 0 or 1; if 1, reread disk file before display, if 0 don't bother
# refresh of 1 allows graphic images to be changed on-the-fly without restarting program
StaticImages\BackgroundEast.png -244 0 0
StaticImages\HOVBanner.png -141 35 0
StaticImages\I405.png 235 105 0
StaticImages\I5.png 155 135 0
StaticImages\520.png 185 240 0
StaticImages\I90.png 195 332 0
StaticImages\Seattle.png 55 325 0
StaticImages\Boeing.png 55 370 0
StaticImages\Renton.png 250 430 0
StaticImages\Factoria.png 280 360 0
StaticImages\Bellevue.png 280 288 0
StaticImages\Kirkland.png 280 230 0
StaticImages\TotemLake.png 280 180 0
StaticImages\Woodinville.png 270 130 0
StaticImages\Plane.png 85 410 0
StaticImages\BellevueBanner.png -195 295 0
StaticImages\Closed.gif -160 412 0
StaticImages\NoData.gif -160 432 0
StaticImages\digit0.png -160 332 0 # build the legend strings, 0 - 19
StaticImages\hyphen.png -150 332 0
StaticImages\digit1.png -140 332 0
StaticImages\digit9.png -130 332 0
StaticImages\digit2.png -160 352 0 # 20 - 34 mph
StaticImages\digit0.png -150 352 0
StaticImages\hyphen.png -140 352 0
StaticImages\digit3.png -130 352 0
StaticImages\digit4.png -120 352 0
StaticImages\digit3.png -160 372 0 # 35 - 49
StaticImages\digit5.png -150 372 0
StaticImages\hyphen.png -140 372 0
StaticImages\digit4.png -130 372 0
StaticImages\digit9.png -120 372 0
StaticImages\digit5.png -160 392 0 # 50 +
StaticImages\digit0.png -150 392 0
StaticImages\plus.png -140 392 0
#
# ITS data file created by the Generic redistributor
c:\segmentLogger\sdd.output
# Data segments are alternated between the data dependent
# color and the static color to affect flashing.
# The data dependent values are determined in the followin Speed Legend
# -color index of data independent color-
6
# Speed Legend:
# number of speed quanta for dividing colors
# speeds are in triplets:
# -upperbound data value- -color index- -is flashable-
4 # the number of colors to use
20 9 1
34 9 0
49 11 0
50 10 0 # the top-end speed doesn't really need a lower bound
# Camera usage definition
# -Camera ID- A string to identify which video camera to use
# for this map. This entry is not used in the UWTV
# implementation for which the camera switching
# is controlled by the video control computer at WSDOT.
# -Segment Name- Not Used
# -old img- One of the map decorations above which is to be replaced
# -new img- A decoration to use instead of -new img-
#
Bellevue Dont_Hilite_Segment StaticImages\Bellevue.png StaticIMages\BellevueVideo.png
Traffic Channel
| ITS UW Home
webmaster@its.washington.edu
(May 11, 1998)