public void TrackTarget(string targetUid, double longitude, double latitude, double altitude, double width) { bool zoomControl = updateZoomCantrol(targetUid, width); int targetWidth = (int)Math.Round(width); int firstWidth = zoomControl ? targetWidth : 0; _info.TrackTarget(_videoId, "", targetUid, longitude, latitude, altitude, firstWidth, targetWidth); }
private void track(ulong videoID, string targetType, string targetID, double lon, double lat, double alt, int targetWidth, int targetWidth2) { if (videoID != _lastTrackVideoID) { stopTrack(); } _lastTrackVideoID = videoID; _cctvInfo.TrackTarget(videoID, targetType, targetID, lon, lat, alt, targetWidth, targetWidth2); }