Changeset 2376 in Sophya


Ignore:
Timestamp:
Apr 25, 2003, 5:55:32 PM (22 years ago)
Author:
ansari
Message:

ajout trois autres tables de couleur Orange32 Cyan32 Violet32 - Reza 25/04/2003

Location:
trunk/SophyaPI/PI
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PI/picmap.cc

    r2375 r2376  
    2323//--
    2424
    25 #define  MXMAPIDS   26
     25#define  MXMAPIDS   29
    2626static   int    MapNCols[MXMAPIDS] = {256, 256, 256, 256, 256, 256, 256, 256, 256, 256,
    2727                            256, 256, 256, 256, 256, 256, 256, 256, 256, 256, 256, 256,
     
    3939                      "Grey128","InvGrey128","ColRJ128","ColBR128",
    4040                      "Red32CM","Green32CM","Blue32CM","Yellow32CM",
    41                       "MIDAS_Pastel","MIDAS_Heat","MIDAS_Rainbow3",
     41                      "Orange32CM","Cyan32CM","Violet32CM",
     42                      "MIDAS_Pastel","MIDAS_Heat","MIDAS_Rainbow3",
    4243                      "MIDAS_BlueRed","MIDAS_BlueWhite","MIDAS_Stairs8",
    4344                      "MIDAS_Stairs9","MIDAS_StairCase","MIDAS_Color",
     
    4950                      CMAP_GREY128, CMAP_GREYINV128, CMAP_COLRJ128, CMAP_COLBR128, 
    5051                      CMAP_RED32, CMAP_GREEN32, CMAP_BLUE32, CMAP_YELLOW32,
     52                      CMAP_ORANGE32, CMAP_CYAN32, CMAP_VIOLET32,
    5153                      CMAP_MIDAS_Pastel, CMAP_MIDAS_Heat, CMAP_MIDAS_Rainbow3,
    5254                      CMAP_MIDAS_BlueRed, CMAP_MIDAS_BlueWhite, CMAP_MIDAS_Stairs8,
     
    6567                                  NULL, NULL, NULL, NULL, NULL,
    6668                                  NULL, NULL, NULL, NULL, NULL,
    67                                   NULL };
     69                                  NULL, NULL, NULL, NULL };
    6870
    6971int  PIColorMap::NumberStandardColorMaps()
     
    111113//|     CMAP_BLUE32     :  32 couleurs, nuances de bleu
    112114//|     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
    113118//|     CMAP_COL16      :  16 Couleurs arcenciel
    114119//|     CMAP_OTHER      :  Table non standard (Midas,Idl, ...)
     
    432437    case CMAP_BLUE32 :
    433438    case CMAP_YELLOW32 :
     439    case CMAP_ORANGE32 :
     440    case CMAP_CYAN32 :
     441    case CMAP_VIOLET32 :
    434442      for(i=0; i<6; i++) {
    435443        int vcol = i*4000;
     
    439447        else if (mType == CMAP_BLUE32)  mycol.blue = vcol;
    440448        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; }
    441453        for(k=0; k<8; k++)     AllocColor(mycol, i*8+k);
    442454      }
     
    448460        else if (mType == CMAP_BLUE32)  mycol.blue = vcol;
    449461        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; }
    450466        for(k=0; k<8; k++)     AllocColor(mycol, i*8+k);
    451467      }
     
    457473        else if (mType == CMAP_BLUE32)  mycol.blue = vcol;
    458474        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; }
    459479        for(k=0; k<8; k++)     AllocColor(mycol, i*8+k);
    460480      }
  • trunk/SophyaPI/PI/picmap.h

    r2372 r2376  
    2828 CMAP_BLUE32      = 13,    // 32 couleurs - nuances de bleu
    2929 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
    3033
    3134 // Tables de couleur importees de MIDAS   256 couleurs
  • trunk/SophyaPI/PI/pidrwtools.cc

    r2372 r2376  
    177177  mCasc[0]->AppendItem(PIColorMap::GetStandardColorMapName(kcc).c_str(), 201+kcc);
    178178mOpt[1]->AppendPDMenu(mCasc[0]);
    179 nsct3 = 13;  // Les 4 tables de couleurs uniforme
     179nsct3 = 17;  // Les 7 tables de couleurs uniforme
    180180for(kcc=nsct2; kcc<nsct3; kcc++)
    181181  mCasc[1]->AppendItem(PIColorMap::GetStandardColorMapName(kcc).c_str(), 201+kcc);
  • trunk/SophyaPI/PI/piimgtools.cc

    r2372 r2376  
    167167  mCasc[0]->AppendItem(PIColorMap::GetStandardColorMapName(kcc).c_str(), 201+kcc);
    168168mOptzc[0]->AppendPDMenu(mCasc[0]);
    169 nsct3 = 13;  // Les 4 tables de couleurs uniforme
     169nsct3 = 16;  // Les 7 tables de couleurs uniforme
    170170for(kcc=nsct2; kcc<nsct3; kcc++)
    171171  mCasc[1]->AppendItem(PIColorMap::GetStandardColorMapName(kcc).c_str(), 201+kcc);
Note: See TracChangeset for help on using the changeset viewer.