Changeset 136 in Sophya for trunk/SophyaPI


Ignore:
Timestamp:
Aug 17, 1998, 11:05:05 AM (27 years ago)
Author:
ercodmgr
Message:

petit bug (PIWdgX::~PIWdgX) et amelioration trace PIHisto depuis PC-Linux Reza 17/08/98

Location:
trunk/SophyaPI/PI
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PI/piapplx.cc

    r135 r136  
    222222static XtInputId inputid[2];
    223223static int origfiledes[2]={-1, -1};   // descripteurs de fichiers de depart
    224 static bool firstcall[2]={true, true};    // 1er appel a Redirect
    225224
    226225static void redirectstream_callback(XtPointer cld, int * fd, XtInputId* /*iid*/)
  • trunk/SophyaPI/PI/pidrawer.cc

    r120 r136  
    210210{
    211211  g->NoClip();
     212  if (mLAtt == PI_NotDefLineAtt)  g->SelLine(PI_ThinLine);
     213  else g->SelLine(mLAtt);
    212214  unsigned int flags = axesFlags;
    213215  if (flags & kStdAxes) {
  • trunk/SophyaPI/PI/pihisto.cc

    r120 r136  
    2929{
    3030  if (!mHisto)  return; 
    31   for (int i=0; i<mHisto->NBins(); i++) {
     31  if (mLAtt != PI_NotDefLineAtt) {
     32    float x1,y1, x2, y2;
     33    x1 = mHisto->BinLowEdge(0);
     34    y1 = 0;
     35    for (int i=0; i<mHisto->NBins(); i++) {
     36      x2 = x1;
     37      y2 = (*mHisto)(i);
     38      g->DrawLine(x1,y1, x2, y2);
     39      y1 = y2;
     40      x2 = mHisto->BinHighEdge(i);
     41      g->DrawLine(x1,y1, x2, y2);
     42      x1 = x2;
     43      }
     44      y2 = 0; g->DrawLine(x1,y1, x2, y2);
     45    }
     46  else for (int i=0; i<mHisto->NBins(); i++) {
    3247                float left   = mHisto->BinLowEdge(i);
    3348                float width  = mHisto->BinWidth();
     
    4459{
    4560  if (!mHisto) return;
     61  if (mLAtt == PI_NotDefLineAtt)  g->SelLine(PI_ThinLine);
    4662  float cellHeight = (YMax() - YMin()) * 0.05;
    4763  float cellWidth  = (XMax() - XMin()) * 0.23;
  • trunk/SophyaPI/PI/pintuple.cc

    r133 r136  
    6666{
    6767float xp,yp,xer,yer;
    68 char buff[128];
    6968int nok;
    7069
  • trunk/SophyaPI/PI/piwdgx.cc

    r135 r136  
    182182printf("Debug_PIWdgX::~PIWdgX()  %lx %lx \n", (long)this, (long)sdw);
    183183#endif
     184UnManage();
    184185if (curselwdg == this)  { SelectionLost(); curselwdg = NULL; }
    185186if (!sdw)  XtDestroyWidget(sdw);
Note: See TracChangeset for help on using the changeset viewer.