Changeset 63 in Sophya for trunk/SophyaPI/PI/picmapx.h


Ignore:
Timestamp:
Dec 5, 1997, 11:13:15 PM (28 years ago)
Author:
ansari
Message:

Modifs pour les Drawers, Nouveaux ColorMap, Copier-Coller Reza 05/12/97

File:
1 edited

Legend:

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

    r30 r63  
    99class PIColorMapX : public PIColorMapGen {
    1010public:
    11   friend class PIColorMapGen;
    12   friend class PIPixmapX;
    13 
    14   PIColorMapX(CMapId);
    15   PIColorMapX(string const& nom, int nCol);
     11  PIColorMapX(); 
     12  PIColorMapX(int id, int nc, string const& nom); 
     13  virtual ~PIColorMapX();
    1614
    1715  inline PIXColor  Color(int index)
     
    1917
    2018  virtual PIColor GetColor(int n);
    21   virtual void AllocColor(PIColor const& col, int index);
     19  virtual bool AllocColor(PIColor const& col, int index);
    2220  virtual void FreeColors();
    23 //  virtual void MakeColMap();
     21
     22  virtual int  TotNbColors();
     23  virtual int  NbAllocColors();
     24
    2425protected:
    25   PIColorMapX(CMapId id, int i);      // Fait une veritable allocation
    26   void CopyFrom(PIColorMapGen*);
     26  virtual void CopyFrom(PIColorMapGen*);
    2727 
    2828  PIXColor  * mColors;     // La table des couleurs ...
Note: See TracChangeset for help on using the changeset viewer.