Changeset 2378 in Sophya for trunk/SophyaPI
- Timestamp:
- May 7, 2003, 9:38:41 AM (22 years ago)
- Location:
- trunk/SophyaPI/PI
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PI/picmap.cc
r2376 r2378 23 23 //-- 24 24 25 #define MXMAPIDS 2925 #define MXMAPIDS 30 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, 28 256, 256, 256, 256 };28 256, 256, 256, 256, 256}; 29 29 30 30 // Tables de couleurs : 31 31 // 5 Standard PI , 32 couleurs 32 32 // 4 Standard PI , 128 couleurs 33 // 4Standard PI , 32 couleurs uniformes33 // 7 Standard PI , 32 couleurs uniformes 34 34 // 12 MIDAS , 256 couleurs 35 // 1 Standard PI 256 couleurs arcenciel avec intensites 35 36 // 1 Standard PI 16 couleurs 36 37 … … 44 45 "MIDAS_Stairs9","MIDAS_StairCase","MIDAS_Color", 45 46 "MIDAS_ManyCol","MIDAS_Idl14","MIDAS_Idl15", 46 "Rainbow 16"};47 "Rainbow256","Rainbow16"}; 47 48 48 49 static CMapId MapIds[MXMAPIDS] = { … … 55 56 CMAP_MIDAS_Stairs9, CMAP_MIDAS_StairCase, CMAP_MIDAS_Color, 56 57 CMAP_MIDAS_ManyCol, CMAP_MIDAS_Idl14, CMAP_MIDAS_Idl15, 57 CMAP_ COL16 } ;58 CMAP_Rainbow256, CMAP_COL16 } ; 58 59 59 60 static int mColTNums[8192]; // Max 8192 tables differentes pour le moment … … 67 68 NULL, NULL, NULL, NULL, NULL, 68 69 NULL, NULL, NULL, NULL, NULL, 69 NULL, NULL, NULL, NULL };70 NULL, NULL, NULL, NULL, NULL }; 70 71 71 72 int PIColorMap::NumberStandardColorMaps() … … 116 117 //| CMAP_CYAN32 : 32 couleurs, nuances de cyan 117 118 //| CMAP_VIOLET32 : 32 couleurs, nuances de violet 119 //| CMAP_Rainbow256 : 256 Couleurs arcenciel avec intensites 118 120 //| CMAP_COL16 : 16 Couleurs arcenciel 119 121 //| CMAP_OTHER : Table non standard (Midas,Idl, ...) … … 481 483 break; 482 484 485 case CMAP_Rainbow256 : 486 { 487 double fci[8] = {0.1, 0.6, 0.8, 1.0, 0.7, 0.8, 0.9, 1.0}; 488 for(i=0; i<256; i++) { 489 int ki = i/64; 490 int kc = i%64; 491 int kr = kc%4; 492 kc = kc/4; 493 int kg = kc%4; 494 int kb = kc/4; 495 mycol.red = (fci[kr]*fci[ki]*65000.); 496 mycol.green = (fci[kg]*fci[ki]*65000.); 497 mycol.blue = (fci[kb]*fci[ki]*65000.); 498 AllocColor(mycol, i); 499 } 500 } 501 break; 483 502 //---------------------------------------------------------- 484 503 //---------------------------------------------------------- -
trunk/SophyaPI/PI/picmap.h
r2376 r2378 47 47 48 48 // Table simple a 16 couleurs 49 CMAP_Rainbow256 = 777, // 256 Couleurs Arcenciel/intensite 49 50 CMAP_COL16 = 999 // 16 Couleurs Arcenciel 50 51 }; -
trunk/SophyaPI/PI/pidrwtools.cc
r2376 r2378 182 182 mOpt[1]->AppendPDMenu(mCasc[1]); 183 183 // Apres les tables importees de MIDAS 184 nsct4 = PIColorMap::NumberStandardColorMaps()- 1; // Les reste jusqu'a l'avant derniere184 nsct4 = PIColorMap::NumberStandardColorMaps()-2; // Les reste jusqu'a l'avant derniere 185 185 for(kcc=nsct3; kcc<nsct4; kcc++) 186 186 mCasc[2]->AppendItem(PIColorMap::GetStandardColorMapName(kcc).c_str(), 201+kcc); -
trunk/SophyaPI/PI/piimgtools.cc
r2376 r2378 172 172 mOptzc[0]->AppendPDMenu(mCasc[1]); 173 173 // Apres les tables importees de MIDAS 174 nsct4 = PIColorMap::NumberStandardColorMaps()- 1; // Les reste jusqu'a l'avant derniere174 nsct4 = PIColorMap::NumberStandardColorMaps()-2; // Les reste jusqu'a l'avant derniere 175 175 for(kcc=nsct3; kcc<nsct4; kcc++) 176 176 mCasc[2]->AppendItem(PIColorMap::GetStandardColorMapName(kcc).c_str(), 201+kcc);
Note:
See TracChangeset
for help on using the changeset viewer.