src/hg/hgTracks/imageV2.h 1.14
1.14 2010/02/10 00:37:57 tdreszer
Safegaurds against empty tracks which can legitimately happen when there is no centerLabel
Index: src/hg/hgTracks/imageV2.h
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgTracks/imageV2.h,v
retrieving revision 1.13
retrieving revision 1.14
diff -b -B -U 4 -r1.13 -r1.14
--- src/hg/hgTracks/imageV2.h 9 Feb 2010 00:12:28 -0000 1.13
+++ src/hg/hgTracks/imageV2.h 10 Feb 2010 00:37:57 -0000 1.14
@@ -276,9 +276,9 @@
Since a map item may span slices, the imgTrack is in the best position to determine where to put the map item
returns count of map items added, which could be 0, 1 or more than one if item spans slices
NOTE: Precedence is given to first map item when adding items with same coordinates! */
boolean imgTrackIsComplete(struct imgTrack *imgTrack,boolean verbose);
-/* Tests the completeness and consistency of this imgTrack (not including slices) */
+/* Tests the completeness and consistency of this imgTrack (including slices) */
void imgTrackFree(struct imgTrack **pImgTrack);
/* frees all memory assocated with an imgTrack (including slices) */
@@ -329,8 +329,11 @@
struct imgTrack *imgBoxTrackUpdateOrAdd(struct imgBox *imgBox,struct trackDb *tdb,char *name,enum trackVisibility vis,boolean showCenterLabel,int order);
/* Updates the imgTrack, or adds it if not found */
void imgBoxTracksNormalizeOrder(struct imgBox *imgBox);
/* This routine sorts the imgTracks then forces tight ordering, so new tracks wil go to the end */
+int imgBoxDropEmpties(struct imgBox *imgBox);
+/* Empty imageTracks (without slices) is not an error but they should be dropped.
+ returns remaining current track count */
boolean imgBoxIsComplete(struct imgBox *imgBox,boolean verbose);
/* Tests the completeness and consistency of an imgBox. */
void imgBoxFree(struct imgBox **pImgBox);
/* frees all memory assocated with an imgBox (including images and imgTracks) */