dbff2df65c339ba878154eda07fd5ce60a2383c3 braney Fri Dec 5 17:07:07 2014 -0800 add the ability to get coverage (wiggle) plots for bed type tracks #952 diff --git src/hg/hgTracks/hgTracks.h src/hg/hgTracks/hgTracks.h index 5485f20..da5776d 100644 --- src/hg/hgTracks/hgTracks.h +++ src/hg/hgTracks/hgTracks.h @@ -131,30 +131,31 @@ Color (*itemColor)(struct track *tg, void *item, struct hvGfx *hvg); /* Get color of item (optional). */ Color (*itemNameColor)(struct track *tg, void *item, struct hvGfx *hvg); /* Get color for the item's name (optional). */ Color (*itemLabelColor)(struct track *tg, void *item, struct hvGfx *hvg); /* Get color for the item's label (optional). */ void (*mapItem)(struct track *tg, struct hvGfx *hvg, void *item, char *itemName, char *mapItemName, int start, int end, int x, int y, int width, int height); /* Write out image mapping for a given item */ boolean hasUi; /* True if has an extended UI page. */ + void *wigCartData; /* pointer to wigCart */ void *extraUiData; /* Pointer for track specific filter etc. data. */ void (*trackFilter)(struct track *tg); /* Stuff to handle user interface parts. */ void *customPt; /* Misc pointer variable unique to track. */ int customInt; /* Misc int variable unique to track. */ int subType; /* Variable to say what subtype this is for similar tracks * to share code. */ /* Stuff for the various wig incarnations - sample, wig, bigWig */ float minRange, maxRange; /*min and max range for sample tracks 0.0 to 1000.0*/ float scaleRange; /* What to scale samples by to get logical 0-1 */ double graphUpperLimit, graphLowerLimit; /* Limits of actual data in window for wigs. */ struct preDrawContainer *preDrawContainer; /* Numbers to graph in wig, one per pixel */ @@ -1389,21 +1390,24 @@ #define REMOTE_TRACK_HEIGHT 0 #define trackShouldUseAjaxRetrieval(track) FALSE #endif//ndef REMOTE_TRACK_AJAX_CALLBACK int gCmpPriority(const void *va, const void *vb); /* Compare groups based on priority. */ int tgCmpPriority(const void *va, const void *vb); /* Compare to sort based on priority; use shortLabel as secondary sort key. */ void printMenuBar(); /* Put up the menu bar. */ +void checkIfWiggling(struct cart *cart, struct track *tg); +/* check to see if a linkedFeatures track should be drawing as a wiggle */ + #define measureTime uglyTime #define SUPPORT_CONTENT_TYPE 1 #endif /* HGTRACKS_H */