9e0a12282360e14ec519b992f1d9080a7f726dcd larrym Fri Jul 29 07:24:46 2011 -0700 change jsonTdbSettings declarations diff --git src/hg/hgTracks/imageV2.h src/hg/hgTracks/imageV2.h index e26b6ab..e59c434 100644 --- src/hg/hgTracks/imageV2.h +++ src/hg/hgTracks/imageV2.h @@ -56,35 +56,36 @@ void flatTracksAdd(struct flatTracks **flatTracks,struct track *track,struct cart *cart); /* Adds one track into the flatTracks list */ int flatTracksCmp(const void *va, const void *vb); /* Compare to sort on flatTrack->order */ void flatTracksSort(struct flatTracks **flatTracks); /* This routine sorts the imgTracks then forces tight ordering, so new tracks wil go to the end */ void flatTracksFree(struct flatTracks **flatTracks); /* Frees all memory used to support flatTracks (underlying tracks are untouched) */ ///////////////////////// // JSON support. Eventually the whole imgTbl could be written out as JSON -void jsonTdbSettingsBuild(struct dyString **jsonTdbSettingsString, struct track *track, boolean configurable); +void jsonTdbSettingsBuild(struct jsonHashElement *settings, struct track *track, boolean configurable); + // Creates then successively adds trackDb settings to the jsonTdbSettingsString // Initially pass in NULL pointer to a dyString to properly begin building -char *jsonTdbSettingsUse(struct dyString **jsonTdbSettingsString); +void jsonTdbSettingsUse(struct jsonHashElement *settings); // Closes and returns the contents of the jsonTdbSettingsString ///////////////////////// // IMAGEv2 // The new way to do images // Terms: // "image box": The new version of the image on the html page. It is a table with rows that contain tracks which are made up of parts of images. // "imgBox": The C struct that contains all information to render the image box on the html page. // "imgTbl": The HTML structure that contains individual track images. The javascript client controls the imgTbl. // Thus cgi knows imgBox while html/js knows imgTbl. // "image": A single gif. An image may contain mutilple tracks. // Even as a single track and image may contain a data image, sideLabel and centerLabel // "map" or "mapSet": The image map for providing links to items in a data image. // An image and map are a 1 to 1 pair and pixel coordinates are alway image relative. // "slice" or "imgSlice": The cgi concept of the portion of an image that is sent to the html/js side.