Changeset 2092 in Sophya for trunk/SophyaPI/PIext


Ignore:
Timestamp:
Jul 14, 2002, 7:03:43 PM (23 years ago)
Author:
cmv
Message:

intro PERC_GARDE pour localiser les pb cmv 14/7/2002

Location:
trunk/SophyaPI/PIext
Files:
4 edited

Legend:

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

    r1905 r2092  
    44#include "pigfd1.h"
    55
     6#define PERC_GARDE 0.02
    67 
    78/* --Methode-- */
     
    4748if(xmax<=xmin) xmax = xmin+1.;
    4849if(ymax<=ymin) ymax = ymin+1.;
    49 dx = 0.02*(xmax-xmin);
    50 dy = 0.02*(ymax-ymin);
     50dx = PERC_GARDE*(xmax-xmin);
     51dy = PERC_GARDE*(ymax-ymin);
    5152SetLimits((double)xmin-dx,(double)xmax+dx,(double)ymin-dy,(double)ymax+dy);
    5253SetAxesFlags(kBoxAxes | kExtTicks | kLabels);
  • trunk/SophyaPI/PIext/pintup3d.cc

    r1905 r2092  
    55#include <stdio.h>
    66#include "pintup3d.h"
     7
     8//#define PERC_GARDE 0.05
    79
    810//++
     
    146148            (xmin+xmax)/2.+D , (ymin+ymax)/2.-2.5*D , zmin+(zmax-zmin)*0.85, 0.25, 0.25); 
    147149
    148   x3Min = xmin;  // - 0.05*(xmax-xmin);
    149   x3Max = xmax;  // + 0.05*(xmax-xmin);
    150   y3Min = ymin;  // - 0.05*(ymax-ymin);
    151   y3Max = ymax;  // + 0.05*(ymax-ymin);
    152   z3Min = zmin;  // - 0.05*(zmax-zmin);
    153   z3Max = zmax;  // + 0.05*(zmax-zmin);
     150  x3Min = xmin;  // - PERC_GARDE*(xmax-xmin);
     151  x3Max = xmax;  // + PERC_GARDE*(xmax-xmin);
     152  y3Min = ymin;  // - PERC_GARDE*(ymax-ymin);
     153  y3Max = ymax;  // + PERC_GARDE*(ymax-ymin);
     154  z3Min = zmin;  // - PERC_GARDE*(zmax-zmin);
     155  z3Max = zmax;  // + PERC_GARDE*(zmax-zmin);
    154156
    155157//  printf("PINTuple3D::UpdateLimits() : %g .. %g  %g .. %g  %g .. %g (%g) \n", xmin,xmax,ymin,ymax,zmin,zmax,D);
  • trunk/SophyaPI/PIext/pintuple.cc

    r1975 r2092  
    55#include <stdio.h>
    66#include "pintuple.h"
     7
     8#define PERC_GARDE 0.02
    79
    810//++
     
    131133  mNT->GetMinMax(yK, ymin, ymax);
    132134   
    133   dx = 0.02*(xmax-xmin);
    134   dy = 0.02*(ymax-ymin);
     135  dx = PERC_GARDE*(xmax-xmin);
     136  dy = PERC_GARDE*(ymax-ymin);
    135137 
    136138  SetLimits(xmin-dx, xmax+dx, ymin-dy, ymax+dy);
  • trunk/SophyaPI/PIext/pistlist.cc

    r1920 r2092  
    44#include <stdio.h>
    55#include "pistlist.h"
     6
     7#define PERC_GARDE 0.02
    68
    79//++
     
    8688  mStL->CalcXYLimits(x1, x2, y1, y2);
    8789 
    88   dx = 0.02*(x2-x1);
    89   dy = 0.02*(y2-y1);
     90  dx = PERC_GARDE*(x2-x1);
     91  dy = PERC_GARDE*(y2-y1);
    9092 
    9193  SetLimits(x1-dx, x2+dx, y1-dy, y2+dy);
Note: See TracChangeset for help on using the changeset viewer.