Changeset 1503 in Sophya for trunk/SophyaPI/PI/picmapgen.h


Ignore:
Timestamp:
May 21, 2001, 3:09:26 PM (24 years ago)
Author:
ansari
Message:

Implementation de la possibilite d'inverser l'indexage des ColorMap - Reza 21/5/2001

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PI/picmapgen.h

    r440 r1503  
    2424
    2525  virtual PIColor GetColor(int n)=0;
     26  inline void  ReverseColorIndex(bool fg=false)
     27               { mFlagReversedIndex = fg; }
     28  inline bool  IsColorIndexReversed() const
     29               { return(mFlagReversedIndex); }
    2630  virtual bool AllocColor(PIColor const& col, int index)=0;
    2731  virtual void FreeColors()=0;     // Desalloue les couleurs
    2832
    29   virtual long   TotNbColors()=0;   // Donne le nombre total de couleurs disponibles
     33  virtual long  TotNbColors()=0;    // Donne le nombre total de couleurs disponibles
    3034  virtual int   NbAllocColors()=0;  // Nb de couleurs deja allouees
    3135protected:
     
    3741  int    mType;
    3842  string mNom;
    39  
     43  bool   mFlagReversedIndex;
    4044};
    4145
Note: See TracChangeset for help on using the changeset viewer.