e3a309047a5dbe7623f7a0f1c4a3a12163fa6290 jcasper Mon Oct 13 14:09:50 2025 -0700 Initial pass at reducing glyphs to a simple line when zoomed out, refs #35498 diff --git src/hg/hgTracks/hgTracks.h src/hg/hgTracks/hgTracks.h index 3d280d0436d..751adcbf1a5 100644 --- src/hg/hgTracks/hgTracks.h +++ src/hg/hgTracks/hgTracks.h @@ -759,33 +759,46 @@ void drawScaledBoxLabel(struct hvGfx *hvg, int chromStart, int chromEnd, double scale, int xOff, int y, int height, Color color, MgFont *font, char *label); /* Draw a box scaled from chromosome to window coordinates and draw a label onto it. */ typedef enum { GLYPH_CIRCLE, GLYPH_TRIANGLE, GLYPH_INV_TRIANGLE, GLYPH_SQUARE, GLYPH_DIAMOND, GLYPH_OCTAGON, GLYPH_STAR, GLYPH_PENTAGRAM, GLYPH_PLUS, - GLYPH_X + GLYPH_X, + GLYPH_1PX } glyphType; +#define GLYPH_STRING_CIRCLE "Circle" +#define GLYPH_STRING_TRIANGLE "Triangle" +#define GLYPH_STRING_INV_TRIANGLE "InvTriangle" +#define GLYPH_STRING_SQUARE "Square" +#define GLYPH_STRING_DIAMOND "Diamond" +#define GLYPH_STRING_OCTAGON "Octagon" +#define GLYPH_STRING_STAR "Star" +#define GLYPH_STRING_PENTAGRAM "Pentagram" +#define GLYPH_STRING_PLUS "Plus" +#define GLYPH_STRING_X "X" +#define GLYPH_STRING_1PX "1px" + void drawScaledGlyph(struct hvGfx *hvg, int chromStart, int chromEnd, double scale, int xOff, int y, int heightPer, glyphType glyph, boolean filled, Color outlineColor, Color fillColor); /* Draw a glyph as a circle/polygon. If filled, draw as with fillColor, * which may have transparency. */ glyphType parseGlyphType(char *glyphStr); /* Return the enum glyph type for a string specifying a glyph. * Defaults to GLYPH_CIRCLE if the string is unrecognized. */ Color whiteIndex(); /* Return index of white. */ Color blackIndex(); /* Return index of black. */