Changeset 548 in Sophya for trunk/SophyaPI/PIext/pistdimgapp.cc


Ignore:
Timestamp:
Nov 4, 1999, 5:20:32 PM (26 years ago)
Author:
ercodmgr
Message:

Ajout trace en medaillon - Reza 4/11/99

File:
1 edited

Legend:

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

    r506 r548  
    201201mZoom = 0;
    202202mAxesFlags = kBoxAxes | kExtTicks | kLabels;
    203 mXmin = mYmin = -1.;
    204 mXmax = mYmax = 1;
     203SetXYLimits(-1, 1., -1., 1.);
     204SetInsetLimits(0.4, 0.6, 0.4, 0.6);
    205205maXlog = maYlog = false;
    206206SaveGraphicAtt();
     
    463463if ( mCmapid != CMAP_OTHER ) scd->SetColMapId(mCmapid);
    464464
    465 if ( (opt == Disp_Same) && (mLastWdg) ) {
     465
     466if ( (!mLastWdg) && ( (opt == Disp_Same) || (opt == Disp_Inset) ) )  opt = Disp_Next;
     467// Trace en superpoistion
     468if ( (opt == Disp_Same) && (mLastWdg) ) { 
    466469  if (mLastWdg->kind() == PIScDrawWdg::ClassId)  ((PIScDrawWdg*)mLastWdg)->AddScDrawer(scd, true);
    467470  else mLastWdg->AddDrawer(scd, true, true, true);
     471  scd->Refresh();
     472  mDId++;
     473  mDrwList[mDId] = scd;
     474  return(-mDId);   
     475}
     476// Trace en medaillon
     477else if ( (opt == Disp_Inset) && (mLastWdg) ) {
     478  PIGrCoord x1, x2, y1, y2;
     479  x1 = mIXmin;  x2 = mIXmax;
     480  y2 = 1.-mIYmin;  y1 = 1.-mIYmax;
     481  scd->SetAxesFlags(mAxesFlags);
     482  scd->UpdateLimits();
     483  mLastWdg->AddDrawer(scd, x1, y1, x2, y2, true, false, true);
    468484  scd->Refresh();
    469485  mDId++;
     
    471487  return(-mDId);   
    472488}
    473 else if (opt == Disp_Same)  opt = Disp_Next;
    474489
    475490PIWindow* win;
     
    519534if ( mCmapid != CMAP_OTHER ) dr3->SetColMapId(mCmapid);
    520535
     536if ( (!mLastWdg) && ( (opt == Disp_Same) || (opt == Disp_Inset) ) )  opt = Disp_Next;
     537// Trace en superpoistion
    521538if ( (opt == Disp_Same) && (mLastWdg) ) {
    522539  if (mLastWdg->kind() == PIDraw3DWdg::ClassId)  ((PIDraw3DWdg*)mLastWdg)->AddDrawer3D(dr3, true);
     
    527544  return(-mDId);   
    528545}
    529 else if (opt == Disp_Same)  opt = Disp_Next;
     546// Trace en medaillon
     547else if ( (opt == Disp_Inset) && (mLastWdg) ) {
     548  PIGrCoord x1, x2, y1, y2;
     549  x1 = mIXmin;  x2 = mIXmax;
     550  y2 = 1.-mIYmin;  y1 = 1.-mIYmax;
     551  dr3->SetAxesFlags(mAxesFlags);
     552  dr3->UpdateLimits();
     553  mLastWdg->AddDrawer(dr3, x1, y1, x2, y2, true, false, true);
     554  dr3->Refresh();
     555  mDId++;
     556  mDrwList[mDId] = dr3;
     557  return(-mDId);   
     558}
     559
    530560
    531561PIWindow* win;
     
    12941324
    12951325/* --Methode-- */
     1326void PIStdImgApp::SetInsetLimits(double xmin, double xmax, double ymin, double ymax)
     1327{
     1328  mIXmin = xmin;  mIXmax= xmax;
     1329  mIYmin = ymin;  mIYmax= ymax;
     1330}
     1331
     1332/* --Methode-- */
    12961333void PIStdImgApp::SaveGraphicAtt()
    12971334{
     
    13081345  mSXmin = mXmin;  mSXmax = mXmax;
    13091346  mSYmin = mYmin;  mSYmax = mYmax;
     1347  mSIXmin = mIXmin;  mSIXmax = mIXmax;
     1348  mSIYmin = mIYmin;  mSIYmax = mIYmax;
    13101349  mSFXYlim = mFXYlim;
    13111350  mSaXlog = maXlog;
     
    13281367  mXmin = mSXmin;  mXmax = mSXmax;
    13291368  mYmin = mSYmin;  mYmax = mSYmax;
     1369  mIXmin = mSIXmin;  mIXmax = mSIXmax;
     1370  mIYmin = mSIYmin;  mIYmax = mSIYmax;
    13301371  mFXYlim = mSFXYlim;
    13311372  maXlog = mSaXlog;
Note: See TracChangeset for help on using the changeset viewer.