Changeset 3547 in Sophya


Ignore:
Timestamp:
Nov 17, 2008, 11:47:40 AM (17 years ago)
Author:
ansari
Message:

Prise en compte table de couleur RGB32768 ds picntools.cc - Reza 17/11/2008

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PIGcont/picntools.cc

    r2615 r3547  
    137137mCasc[1] = new PIMenu(mOpt[1]->Menu(), "PIUniCol32");
    138138mCasc[2] = new PIMenu(mOpt[1]->Menu(), "MIDAS-CMap");
    139 
    140 int nsct1,nsct2,nsct3,nsct4;
     139mCasc[3] = new PIMenu(mOpt[1]->Menu(), "RGB-CMap");
     140
     141int nsct1,nsct2,nsct3,nsct4,nsct5;
    141142//  D'abord les tables standard de PI  32 couleurs
    142143nsct1 = 5;   // Les 5 premieres tables
     
    153154mOpt[1]->AppendPDMenu(mCasc[1]);
    154155//  Apres les tables importees de MIDAS
    155 nsct4 = PIColorMap::NumberStandardColorMaps()-2; // Les reste jusqu'a l'avant derniere
     156nsct4 = PIColorMap::NumberStandardColorMaps()-6; // Les reste jusqu'a l'avant derniere
    156157for(kcc=nsct3; kcc<nsct4; kcc++)
    157158  mCasc[2]->AppendItem(PIColorMap::GetStandardColorMapName(kcc).c_str(), 201+kcc);
    158159mOpt[1]->AppendPDMenu(mCasc[2]);
    159 // Les tables qui restent ( Col16 , ... )
    160 for(kcc=nsct4; kcc<PIColorMap::NumberStandardColorMaps(); kcc++)
    161 mOpt[1]->AppendItem(PIColorMap::GetStandardColorMapName(kcc).c_str(), 201+kcc);
     160nsct5 = PIColorMap::NumberStandardColorMaps()-4; // Les reste jusqu'aux tables RGB
     161for(kcc=nsct4; kcc<nsct5; kcc++)
     162  mOpt[1]->AppendItem(PIColorMap::GetStandardColorMapName(kcc).c_str(), 201+kcc);
     163// Les tables de couleur RGB  ( RGB216, RGB512 , ... )
     164for(kcc=nsct5; kcc<PIColorMap::NumberStandardColorMaps(); kcc++)
     165  mCasc[3]->AppendItem(PIColorMap::GetStandardColorMapName(kcc).c_str(), 201+kcc);
     166mOpt[1]->AppendPDMenu(mCasc[3]);
    162167
    163168mOpt[1]->SetValue(200);
     
    405410for(i=0; i<2; i++) delete mButdr[i];
    406411for(i=0; i<10; i++)  delete mOpt[i];
    407 for(i=0; i<3; i++)  delete mCasc[i];
     412for(i=0; i<4; i++)  delete mCasc[i];
    408413for(i=0; i<2; i++)  delete mTxt[i];
    409414
Note: See TracChangeset for help on using the changeset viewer.