Changeset 205 in Sophya for trunk/SophyaPI/PIext/pipodrw.cc


Ignore:
Timestamp:
Mar 1, 1999, 6:05:59 PM (27 years ago)
Author:
ercodmgr
Message:

1/ Adaptation pour passage en double de trace en coordonnees graphiques
User (UC) (float -> double)
2/ Adaptation pour passage en double pour les ArrayAdapter

Reza 1/03/99

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PIext/pipodrw.cc

    r165 r205  
    3131
    3232void
    33 PIGFFDrawer::Draw(PIGraphicUC* g, float /*xmin*/, float/*ymin*/, float/*xmax*/, float/*ymax*/)
     33PIGFFDrawer::Draw(PIGraphicUC* g, double /*xmin*/, double/*ymin*/, double/*xmax*/, double/*ymax*/)
    3434{
    3535  PIGrCoord x1, x2, y1, y2;
    3636  g->GetGrSpace(x1, x2, y1, y2);
    37   float xMax = x2;
    38   float xMin = x1;
    39   float yMax = y2;
    40   float yMin = y1;
    41   float xStep = (xMax - xMin)/100;
    42   float xOld = xMin;
    43   float yOld = 0;
    44 //  float yOld = f->Value(&xMin, mParms);
    45   for (float x = xMin+xStep; x<xMax; x+=xStep) {
    46    float y = 0; // $CHECK$
    47 //    float y = f->Value(&x, mParms);
     37  double xMax = x2;
     38  double xMin = x1;
     39  double yMax = y2;
     40  double yMin = y1;
     41  double xStep = (xMax - xMin)/100;
     42  double xOld = xMin;
     43  double yOld = 0;
     44//  double yOld = f->Value(&xMin, mParms);
     45  for (double x = xMin+xStep; x<xMax; x+=xStep) {
     46   double y = 0; // $CHECK$
     47//    double y = f->Value(&x, mParms);
    4848    if (y>yMin && yOld>yMin &&
    4949        y<yMax && yOld<yMax)
     
    7272
    7373/* --Methode-- */
    74 float POVectorAdapter::Value(int i)
     74double POVectorAdapter::Value(int i)
    7575{
    7676return((*mVec)(i));
     
    9696
    9797/* --Methode-- */
    98 float POH2DAdapter::Value(int ix, int iy)
     98double POH2DAdapter::Value(int ix, int iy)
    9999{
    100100return((*mH2d)(ix, iy));
     
    120120
    121121/* --Methode-- */
    122 float POMatrixAdapter::Value(int ix, int iy)
     122double POMatrixAdapter::Value(int ix, int iy)
    123123{
    124124// Attention MatrixAdapter(X=Colonne, Y= Row) = Matrix(row, col) 
Note: See TracChangeset for help on using the changeset viewer.