Changeset 201 in Sophya for trunk/SophyaPI


Ignore:
Timestamp:
Feb 26, 1999, 11:19:46 AM (27 years ago)
Author:
ercodmgr
Message:

Modifs-intermediaire trace axes et grid Reza 26/02/99

Location:
trunk/SophyaPI/PI
Files:
3 edited

Legend:

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

    r200 r201  
    226226}
    227227
    228 static void BestTicks(float rmin,float rmax,int nticks,float& majt)
     228/* --Methode-Static-- */
     229void PIDrawer::BestTicks(float rmin,float rmax,int nticks,float& majt)
    229230{
    230231double d = rmax - rmin;
  • trunk/SophyaPI/PI/pidrawer.h

    r200 r201  
    6464
    6565  void               SelGraAtt(PIGraphicUC* g);
     66
     67//  --- Methode static ----
     68//  Calcul des Distances optimales des subdivisions
     69  static void        BestTicks(float rmin,float rmax,int nticks,float& majt);
    6670
    6771//  Les objets/methodes suivants devraient etre protected     
  • trunk/SophyaPI/PI/pidrwtools.cc

    r190 r201  
    253253}
    254254
     255//  Declaration des differents attributs graphiques
     256static PIColors cols[17] = { PI_NotDefColor,
     257                     PI_Black, PI_White, PI_Grey,
     258                     PI_Red, PI_Blue, PI_Green,
     259                     PI_Yellow, PI_Magenta,
     260                     PI_Cyan , PI_Turquoise, PI_NavyBlue,
     261                     PI_Orange, PI_SiennaRed, PI_Purple,
     262                     PI_LimeGreen, PI_Gold };
     263
     264static PIMarker mrk[12] = { PI_NotDefMarker, PI_DotMarker,
     265                            PI_PlusMarker, PI_CrossMarker,
     266                            PI_CircleMarker, PI_FCircleMarker,
     267                            PI_BoxMarker, PI_FBoxMarker,
     268                            PI_TriangleMarker, PI_FTriangleMarker,
     269                            PI_StarMarker, PI_FStarMarker };
     270static PILineAtt line[10] = { PI_NotDefLineAtt, PI_ThinLine, PI_NormalLine, PI_ThickLine,
     271                              PI_ThinDashedLine, PI_DashedLine, PI_ThickDashedLine,
     272                              PI_ThinDottedLine, PI_DottedLine, PI_ThickDottedLine };
     273
     274static PIFontAtt fntatt[4] = { PI_NotDefFontAtt, PI_RomanFont, PI_BoldFont, PI_ItalicFont };
     275static PIFontSize fntsz[5] = { PI_NotDefFontSize, PI_NormalSizeFont, PI_SmallSizeFont,
     276                               PI_BigSizeFont, PI_HugeSizeFont };
     277static CMapId cmap[11] = {  CMAP_OTHER, CMAP_GREY32, CMAP_GREYINV32,
     278                            CMAP_COLRJ32, CMAP_COLBR32, CMAP_COLRV32, 
     279                            CMAP_GREY128, CMAP_GREYINV128, CMAP_COLRJ128, CMAP_COLBR128, CMAP_COL16 };
     280
    255281/* --Methode-- */
    256282void PIDrwTools::Show()
     
    294320void PIDrwTools::Process(PIMessage msg, PIMsgHandler* /*sender*/, void* /*data*/)
    295321{
    296 PIColors cols[17] = { PI_NotDefColor,
    297                      PI_Black, PI_White, PI_Grey,
    298                      PI_Red, PI_Blue, PI_Green,
    299                      PI_Yellow, PI_Magenta,
    300                      PI_Cyan , PI_Turquoise, PI_NavyBlue,
    301                      PI_Orange, PI_SiennaRed, PI_Purple,
    302                      PI_LimeGreen, PI_Gold };
    303 
    304 PIMarker mrk[12] = { PI_NotDefMarker, PI_DotMarker,
    305                      PI_PlusMarker, PI_CrossMarker,
    306                      PI_CircleMarker, PI_FCircleMarker,
    307                      PI_BoxMarker, PI_FBoxMarker,
    308                      PI_TriangleMarker, PI_FTriangleMarker,
    309                      PI_StarMarker, PI_FStarMarker };
    310 PILineAtt line[10] = { PI_NotDefLineAtt, PI_ThinLine, PI_NormalLine, PI_ThickLine,
    311                                          PI_ThinDashedLine, PI_DashedLine, PI_ThickDashedLine,
    312                                          PI_ThinDottedLine, PI_DottedLine, PI_ThickDottedLine };
    313 
    314 PIFontAtt fntatt[4] = { PI_NotDefFontAtt, PI_RomanFont, PI_BoldFont, PI_ItalicFont };
    315 PIFontSize fntsz[5] = { PI_NotDefFontSize, PI_NormalSizeFont, PI_SmallSizeFont,
    316                         PI_BigSizeFont, PI_HugeSizeFont };
    317 CMapId cmap[11] = {  CMAP_OTHER, CMAP_GREY32, CMAP_GREYINV32,
    318                      CMAP_COLRJ32, CMAP_COLBR32, CMAP_COLRV32, 
    319                      CMAP_GREY128, CMAP_GREYINV128, CMAP_COLRJ128, CMAP_COLBR128, CMAP_COL16 };
    320322
    321323msg = UserMsg(msg);
Note: See TracChangeset for help on using the changeset viewer.