Changeset 2376 in Sophya for trunk/SophyaPI
- Timestamp:
- Apr 25, 2003, 5:55:32 PM (22 years ago)
- Location:
- trunk/SophyaPI/PI
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PI/picmap.cc
r2375 r2376 23 23 //-- 24 24 25 #define MXMAPIDS 2 625 #define MXMAPIDS 29 26 26 static int MapNCols[MXMAPIDS] = {256, 256, 256, 256, 256, 256, 256, 256, 256, 256, 27 27 256, 256, 256, 256, 256, 256, 256, 256, 256, 256, 256, 256, … … 39 39 "Grey128","InvGrey128","ColRJ128","ColBR128", 40 40 "Red32CM","Green32CM","Blue32CM","Yellow32CM", 41 "MIDAS_Pastel","MIDAS_Heat","MIDAS_Rainbow3", 41 "Orange32CM","Cyan32CM","Violet32CM", 42 "MIDAS_Pastel","MIDAS_Heat","MIDAS_Rainbow3", 42 43 "MIDAS_BlueRed","MIDAS_BlueWhite","MIDAS_Stairs8", 43 44 "MIDAS_Stairs9","MIDAS_StairCase","MIDAS_Color", … … 49 50 CMAP_GREY128, CMAP_GREYINV128, CMAP_COLRJ128, CMAP_COLBR128, 50 51 CMAP_RED32, CMAP_GREEN32, CMAP_BLUE32, CMAP_YELLOW32, 52 CMAP_ORANGE32, CMAP_CYAN32, CMAP_VIOLET32, 51 53 CMAP_MIDAS_Pastel, CMAP_MIDAS_Heat, CMAP_MIDAS_Rainbow3, 52 54 CMAP_MIDAS_BlueRed, CMAP_MIDAS_BlueWhite, CMAP_MIDAS_Stairs8, … … 65 67 NULL, NULL, NULL, NULL, NULL, 66 68 NULL, NULL, NULL, NULL, NULL, 67 NULL };69 NULL, NULL, NULL, NULL }; 68 70 69 71 int PIColorMap::NumberStandardColorMaps() … … 111 113 //| CMAP_BLUE32 : 32 couleurs, nuances de bleu 112 114 //| CMAP_YELLOW32 : 32 couleurs, nuances de jaune 115 //| CMAP_ORANGE32 : 32 couleurs, nuances d'orange 116 //| CMAP_CYAN32 : 32 couleurs, nuances de cyan 117 //| CMAP_VIOLET32 : 32 couleurs, nuances de violet 113 118 //| CMAP_COL16 : 16 Couleurs arcenciel 114 119 //| CMAP_OTHER : Table non standard (Midas,Idl, ...) … … 432 437 case CMAP_BLUE32 : 433 438 case CMAP_YELLOW32 : 439 case CMAP_ORANGE32 : 440 case CMAP_CYAN32 : 441 case CMAP_VIOLET32 : 434 442 for(i=0; i<6; i++) { 435 443 int vcol = i*4000; … … 439 447 else if (mType == CMAP_BLUE32) mycol.blue = vcol; 440 448 else if (mType == CMAP_YELLOW32) mycol.green = mycol.red = vcol; 449 else if (mType == CMAP_ORANGE32) { mycol.red = vcol; mycol.green = vcol*0.65; } 450 else if (mType == CMAP_CYAN32) mycol.green = mycol.blue = vcol; 451 else if (mType == CMAP_VIOLET32) 452 { mycol.red = 0.6*vcol; mycol.green = 0.2*vcol; mycol.blue = vcol; } 441 453 for(k=0; k<8; k++) AllocColor(mycol, i*8+k); 442 454 } … … 448 460 else if (mType == CMAP_BLUE32) mycol.blue = vcol; 449 461 else if (mType == CMAP_YELLOW32) mycol.green = mycol.red = vcol; 462 else if (mType == CMAP_ORANGE32) { mycol.red = vcol; mycol.green = vcol*0.65; } 463 else if (mType == CMAP_CYAN32) mycol.green = mycol.blue = vcol; 464 else if (mType == CMAP_VIOLET32) 465 { mycol.red = 0.6*vcol; mycol.green = 0.2*vcol; mycol.blue = vcol; } 450 466 for(k=0; k<8; k++) AllocColor(mycol, i*8+k); 451 467 } … … 457 473 else if (mType == CMAP_BLUE32) mycol.blue = vcol; 458 474 else if (mType == CMAP_YELLOW32) mycol.green = mycol.red = vcol; 475 else if (mType == CMAP_ORANGE32) { mycol.red = vcol; mycol.green = vcol*0.65; } 476 else if (mType == CMAP_CYAN32) mycol.green = mycol.blue = vcol; 477 else if (mType == CMAP_VIOLET32) 478 { mycol.red = 0.6*vcol; mycol.green = 0.2*vcol; mycol.blue = vcol; } 459 479 for(k=0; k<8; k++) AllocColor(mycol, i*8+k); 460 480 } -
trunk/SophyaPI/PI/picmap.h
r2372 r2376 28 28 CMAP_BLUE32 = 13, // 32 couleurs - nuances de bleu 29 29 CMAP_YELLOW32 = 14, // 32 couleurs - nuances de jaune 30 CMAP_ORANGE32 = 15, // 32 couleurs - nuances d' orange 31 CMAP_CYAN32 = 16, // 32 couleurs - nuances de cyan 32 CMAP_VIOLET32 = 17, // 32 couleurs - nuances de violet 30 33 31 34 // Tables de couleur importees de MIDAS 256 couleurs -
trunk/SophyaPI/PI/pidrwtools.cc
r2372 r2376 177 177 mCasc[0]->AppendItem(PIColorMap::GetStandardColorMapName(kcc).c_str(), 201+kcc); 178 178 mOpt[1]->AppendPDMenu(mCasc[0]); 179 nsct3 = 1 3; // Les 4tables de couleurs uniforme179 nsct3 = 17; // Les 7 tables de couleurs uniforme 180 180 for(kcc=nsct2; kcc<nsct3; kcc++) 181 181 mCasc[1]->AppendItem(PIColorMap::GetStandardColorMapName(kcc).c_str(), 201+kcc); -
trunk/SophyaPI/PI/piimgtools.cc
r2372 r2376 167 167 mCasc[0]->AppendItem(PIColorMap::GetStandardColorMapName(kcc).c_str(), 201+kcc); 168 168 mOptzc[0]->AppendPDMenu(mCasc[0]); 169 nsct3 = 1 3; // Les 4tables de couleurs uniforme169 nsct3 = 16; // Les 7 tables de couleurs uniforme 170 170 for(kcc=nsct2; kcc<nsct3; kcc++) 171 171 mCasc[1]->AppendItem(PIColorMap::GetStandardColorMapName(kcc).c_str(), 201+kcc);
Note:
See TracChangeset
for help on using the changeset viewer.