Changeset 247 for cpp/frams/genetics/oper_fx.h
- Timestamp:
- 11/07/14 17:51:01 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/genetics/oper_fx.h
r201 r247 31 31 /** \name other useful style/color macros */ 32 32 //@{ 33 #define GENRGB(r,g,b) ((u nsigned long)(((unsigned char)(r)|((unsigned short)((unsigned char)(g))<<8))|(((unsigned long)(unsigned char)(b))<<16)))34 #define GENSTYLE_RGBS(r,g,b,s) ((u nsigned long)((unsigned char)s)<<24 | GENRGB(r,g,b))35 #define GENSTYLE_CS(rgb,s) ((u nsigned long)((unsigned char)s)<<24 | rgb)33 #define GENRGB(r,g,b) ((uint32_t)(((uint8_t)(r)|((uint16_t)((uint8_t)(g))<<8))|(((uint32_t)(uint8_t)(b))<<16))) 34 #define GENSTYLE_RGBS(r,g,b,s) ((uint32_t)((uint8_t)s)<<24 | GENRGB(r,g,b)) 35 #define GENSTYLE_CS(rgb,s) ((uint32_t)((uint8_t)s)<<24 | rgb) 36 36 37 37 #define GENGETSTYLE(style) ((style)>>24) … … 168 168 Assume white background. 169 169 \sa GENSTYLE_* macros, like GENSTYLE_BOLD*/ 170 virtual u nsigned longstyle(const char *geno,int pos) {return GENSTYLE_RGBS(0,0,0,GENSTYLE_NONE);}170 virtual uint32_t style(const char *geno,int pos) {return GENSTYLE_RGBS(0,0,0,GENSTYLE_NONE);} 171 171 172 172 ///currently not used (similarity of two genotypes)
Note: See TracChangeset
for help on using the changeset viewer.