Changeset 3278 in Sophya for trunk/SophyaPI
- Timestamp:
- Jul 6, 2007, 4:30:54 PM (18 years ago)
- Location:
- trunk/SophyaPI/PI
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PI/pigratt.cc
r3268 r3278 219 219 static GrAttColMaps* GrAcmaps = NULL; 220 220 221 #define GRA_NCOLMX 25 222 static PIColors GrAcolTab[GRA_NCOLMX] = 223 { PI_Black, PI_White, PI_Grey, PI_Red, PI_Blue, PI_Green, 224 PI_Yellow, PI_Magenta, PI_Cyan, PI_Turquoise, PI_NavyBlue, PI_Orange, 225 PI_SiennaRed, PI_Purple, PI_LimeGreen, PI_Gold, PI_Violet, PI_VioletRed, 226 PI_BlueViolet, PI_DarkViolet, PI_SkyBlue, PI_RoyalBlue , PI_ForestGreen, 227 PI_OrangeRed, PI_Brown }; 221 228 222 229 void PIGraphicAtt::InitGrAttStrings() … … 902 909 { 903 910 if (!gratt_init_done) InitGrAttStrings(); 904 GrAttColors& GrAcol = *GrAcolors; 905 GrAttColors::const_iterator itc; 906 PIColors cdcol = PI_NotDefColor; 907 if ((colidx < 0) || (colidx >= GrAcol.size())) return cdcol; 908 int kc = 0; 909 for(itc = GrAcol.begin(); itc != GrAcol.end(); itc++) { 910 if (kc == colidx) { cdcol = (*itc).second; break; } 911 kc++; 912 } 913 return cdcol; 914 } 911 if ((colidx < 0) || (colidx >= GRA_NCOLMX)) return PI_NotDefColor; 912 return GrAcolTab[colidx]; 913 } -
trunk/SophyaPI/PI/piversion.h
r3268 r3278 2 2 #define PIVERSION_H_SEEN 3 3 4 #define PI_VERSIONNUMBER 4.0 14 #define PI_VERSIONNUMBER 4.02 5 5 6 6 #endif
Note:
See TracChangeset
for help on using the changeset viewer.