src/hg/hgTracks/altGraphXTrack.c 1.17

1.17 2010/05/11 01:43:26 kent
Refactoring to split the trackDb.tableName field into separate track and table fields. Similarly track.mapName field goes to the same track and table fields.
Index: src/hg/hgTracks/altGraphXTrack.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgTracks/altGraphXTrack.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -b -B -U 4 -r1.16 -r1.17
--- src/hg/hgTracks/altGraphXTrack.c	7 Jan 2010 01:35:19 -0000	1.16
+++ src/hg/hgTracks/altGraphXTrack.c	11 May 2010 01:43:26 -0000	1.17
@@ -66,9 +66,9 @@
 {
 struct altGraphX *ag = item;
 char buff[32];
 snprintf(buff, sizeof(buff), "%d", ag->id);
-mapBoxHc(hvg, start, end, x, y, width, height, tg->mapName, buff, "altGraphX Details");
+mapBoxHc(hvg, start, end, x, y, width, height, tg->track, buff, "altGraphX Details");
 }
 
 void altGraphXMap(char *tableName, struct altGraphX *ag, struct hvGfx *hvg, int start, int end, 
 		  int x, int y, int width, int height)
@@ -92,9 +92,9 @@
     {
     hvGfxSetClip(hvg, insideX, yOff, insideWidth, tg->height);
     altGraphXDrawPack(tg->items, tg->ss, hvg, xOff, yOff, width, heightPer, lineHeight,
 		      winStart, winEnd, scale, font, color, shadesOfGray,
-		      tg->mapName, altGraphXMap);
+		      tg->track, altGraphXMap);
     hvGfxUnclip(hvg);
     }
 }
 
@@ -220,9 +220,9 @@
 struct sqlConnection *conn = hAllocConn(database);
 int rowOffSet;
 char **row;
 struct altGraphX *ag=NULL, *agList=NULL;
-struct sqlResult *sr = hRangeQuery(conn, tg->mapName, chromName,
+struct sqlResult *sr = hRangeQuery(conn, tg->table, chromName,
 				   winStart, winEnd, NULL, &rowOffSet);
 while((row = sqlNextRow(sr)) != NULL)
     {
     ag = altGraphXLoad(row + rowOffSet);
@@ -295,9 +295,9 @@
 struct sqlConnection *conn = hAllocConn(database);
 int rowOffSet;
 char **row;
 struct altGraphX *ag=NULL, *agList=NULL;
-struct sqlResult *sr = hRangeQuery(conn, tg->mapName, chromName,
+struct sqlResult *sr = hRangeQuery(conn, tg->table, chromName,
 				   winStart, winEnd, NULL, &rowOffSet);
 while((row = sqlNextRow(sr)) != NULL)
     {
     ag = altGraphXLoad(row + rowOffSet);