This post originated from an RSS feed registered with .NET Buzz
by Frank Hileman.
Original Post: Vehicle Tracking Simulation
Feed Title: Frank Hileman's WebLog
Feed URL: /error.htm?aspxerrorpath=/frank_hileman/Rss.aspx
Feed Description: Vector Graphics with VG.net, MyXaml, and Visual Studio Integration
If you write transportation management applications, or applications which track trucks, railroad cars, or other vehicles, you may be interested in this vehicle tracking simulation using VG.net vector graphics. It is a combination of the PanZoom and PathMove samples, demonstrating:
Real-time tracking of vehicles using scalable vector graphics
Implementation of a Vehicle class with custom properties
Movement of an object along a path
Control over velocity of movement
Zooming and panning
Throttling CPU usage of animation of specific objects
Layers using Groups
The Vehicle class custom properties:
Velocity
MovementPath: the path along which the vehicle moves
Position: distance along the movement path
Direction: forward or backward
State: normal, or alarm state, indicated visually by a change in the color (red vehicles are in the alarm state)
Download the executable by clicking on the image above. Download the source code, which compiles with Visual Studio 2003. You will need VG.net installed, full or Lite version.