예제 #1
0
 /// <summary>
 /// Draw locations, begin and end points onto the turn inspector
 /// </summary>
 /// <param name="image">image of the turn map</param>
 /// <param name="path">current turn</param>
 /// <returns>image with points drawn on the map</returns>
 private void drawOnTurnMap(ref Image image, TrackPath path)
 {
     _turnMapFid.processImage((Bitmap)image);
     //if the fiducial strategy class has located the balloons
     //register the image to the UTM locations (UL, LR) _pd is our instance of PathDrawer
     if (_turnMapFid.MapLocated)
     {
         _turnMapFid.setCorrespondence(path.UpperLeft, path.LowerRight);
         _turnMapPainter.drawLocations(ref image, path.GeocodeLocations.ToArray());
         Location begin = path.GeocodeLocations[0];
         Location end   = path.GeocodeLocations[path.GeocodeLocations.Count - 1];
         _turnMapPainter.drawBeginAndEndPoints(ref image, begin, end);
     }
 }
예제 #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="image"></param>
 /// <param name="path"></param>
 /// <returns>return image of the points drawn on ride map</returns>
 private void drawnOnRideMap(ref Image image, TrackPath path)
 {
     if (_rideMapFid.MapLocated)
     {
         _rideMpaPainter.drawLocations(ref image, path.GeocodeLocations.ToArray());
         if (_turns != null && _turns.Count > 0)
         {
             _rideMpaPainter.drawTurn(ref image, _turns[_currentTurn]);
         }
         Location begin = path.GeocodeLocations[0];
         Location end   = path.GeocodeLocations[path.GeocodeLocations.Count - 1];
         _rideMpaPainter.drawBeginAndEndPoints(ref image, begin, end);
         if (_pois != null)
         {
             _rideMpaPainter.drawPointsOfInterest(ref image, _pois.ToArray());
         }
     }
 }