Changeset 3149 in Sophya for trunk/SophyaPI/PIext/pihisto2d.h


Ignore:
Timestamp:
Jan 18, 2007, 7:21:49 PM (19 years ago)
Author:
cmv
Message:

suite adaptation travail reza 2D et adapteur + adaptation aux modifs HistoErr cmv 18/01/2007

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PIext/pihisto2d.h

    r3145 r3149  
    2424
    2525  void UseColors(bool fg=false,CMapId cmap=CMAP_GREYINV32,bool revcmap=false);
    26   void UseScale(unsigned short type=0,float logscale=10.);
    27   void UseDisplay(unsigned short type=0,float fnpt=0.5);
    28   void UseDyn(float hmin=1.,float hmax=-1.);
    29   void UseFrac(float frmin=0.1,float frmax=0.9);
     26  void UseScale(unsigned short type=0,double logscale=10.);
     27  void UseDisplay(unsigned short type=0,double fnpt=0.5);
     28  void UseDyn(double hmin=1.,double hmax=-1.);
     29  void UseFrac(double frmin=0.1,double frmax=0.9);
    3030  void Print(int lp=0);
    3131
     
    4343  virtual void DrawStats(PIGraphicUC* g);
    4444  inline  void SetStats(bool fg=true) {stats=fg;}
    45   inline  void SetStatPosOffset(float ofx=-0.01, float ofy=-0.01)
     45  inline  void SetStatPosOffset(double ofx=-0.01, double ofy=-0.01)
    4646          {spoX=ofx; spoY=ofy; }
    4747
     
    6363  inline unsigned short TypScale()    {return(mTypScal);}
    6464  inline unsigned short TypDisplay()  {return(mTypDisp);}
    65   inline float          FPoints()     {return(mFPoints);}
    66   inline float          HMax()        {return(mHMax);}
    67   inline float          HMin()        {return(mHMin);}
    68   inline float          FMax()        {return(mFracMax);}
    69   inline float          FMin()        {return(mFracMin);}
    70   inline float          LogScale()    {return(mLogScale);}
     65  inline double         FPoints()     {return(mFPoints);}
     66  inline double         HMax()        {return(mHMax);}
     67  inline double         HMin()        {return(mHMin);}
     68  inline double         FMax()        {return(mFracMax);}
     69  inline double         FMin()        {return(mFracMin);}
     70  inline double         LogScale()    {return(mLogScale);}
    7171
    7272protected:
    7373  int NPixBin(PIGraphicUC* g);
    74   char HPrint2(float f);
     74  char HPrint2(double f);
    7575
    7676  P2DHistoWrapper* mHistoWp;
    7777  bool mAdDO; bool stats;
    7878  bool mFgCol; CMapId mCmap; bool mRevCmap;
    79   unsigned short mTypScal; float mLogScale;
    80   unsigned short mTypDisp; float mFPoints;
    81   float mHMin,mHMax;
    82   float mFracMin,mFracMax;
    83   float spoX, spoY; // Stat pos offset par rapport a position defaut
     79  unsigned short mTypScal; double mLogScale;
     80  unsigned short mTypDisp; double mFPoints;
     81  double mHMin,mHMax;
     82  double mFracMin,mFracMax;
     83  double spoX, spoY; // Stat pos offset par rapport a position defaut
    8484};
    8585
     
    117117
    118118  bool mFgCol; CMapId mCmap; bool mRevCmap;
    119   unsigned short mTypScal; float mLogScale;
    120   unsigned short mTypDisp; float mFPoints;
    121   float mHMin,mHMax;
    122   float mFracMin,mFracMax;
     119  unsigned short mTypScal; double mLogScale;
     120  unsigned short mTypDisp; double mFPoints;
     121  double mHMin,mHMax;
     122  double mFracMin,mFracMax;
    123123};
    124124
Note: See TracChangeset for help on using the changeset viewer.