Changeset 115 in Sophya for trunk/SophyaPI


Ignore:
Timestamp:
Jul 3, 1998, 5:34:38 PM (27 years ago)
Author:
ansari
Message:

Couleur pour GOXOR et gestion dynamic_cast pour gcc 2.7 Reza 03/07/98

Location:
trunk/SophyaPI/PI
Files:
3 edited

Legend:

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

    r113 r115  
    121121  list<int>::iterator it;
    122122  for(it = m3DrIl.begin(); it != m3DrIl.end(); it++)   
     123#if defined(__GNUC__) && !defined(GCCV28)
     124    ((PIDrawer3D*)(GetDrawerId(*it)))->Set3DView_Obs(xo, yo, zo, teta, phi, psi, dax, day, co, dco);
     125#else
    123126    (dynamic_cast<PIDrawer3D*>(GetDrawerId(*it)))->Set3DView_Obs(xo, yo, zo, teta, phi, psi, dax, day, co, dco);
     127#endif
    124128  vfixed = true;
    125129}
     
    132136  list<int>::iterator it;
    133137  for(it = m3DrIl.begin(); it != m3DrIl.end(); it++)   
     138#if defined(__GNUC__) && !defined(GCCV28)
     139    ((PIDrawer3D*)(GetDrawerId(*it)))->Set3DView(xc, yc, zc, xo, yo, zo, dax, day, dco, psi);
     140#else
    134141    (dynamic_cast<PIDrawer3D*>(GetDrawerId(*it)))->Set3DView(xc, yc, zc, xo, yo, zo, dax, day, dco, psi);
     142#endif
    135143  vfixed = true;
    136144}
     
    152160  vo = mGr3d->Get3DCS( xc, yc, zc, xo, yo, zo, teta, phi, psi, dax, day, co, dco);
    153161  list<int>::iterator it;
     162#if defined(__GNUC__) && !defined(GCCV28)
     163  if (vo)   for(it = m3DrIl.begin(); it != m3DrIl.end(); it++)   
     164    ((PIDrawer3D*)(GetDrawerId(*it)))->Set3DView_Obs(xo, yo, zo, teta, phi, psi, dax, day, co, dco);
     165  else   for(it = m3DrIl.begin(); it != m3DrIl.end(); it++)   
     166    ((PIDrawer3D*)(GetDrawerId(*it)))->Set3DView(xc, yc, zc, xo, yo, zo, dax, day, dco, psi);   
     167#else
    154168  if (vo)   for(it = m3DrIl.begin(); it != m3DrIl.end(); it++)   
    155169    (dynamic_cast<PIDrawer3D*>(GetDrawerId(*it)))->Set3DView_Obs(xo, yo, zo, teta, phi, psi, dax, day, co, dco);
    156170  else   for(it = m3DrIl.begin(); it != m3DrIl.end(); it++)   
    157171    (dynamic_cast<PIDrawer3D*>(GetDrawerId(*it)))->Set3DView(xc, yc, zc, xo, yo, zo, dax, day, dco, psi);   
     172#endif
     173
    158174}
    159175
     
    211227  SelPointerShape(PI_TDLRArrowPointer);
    212228  lCol = mWGrC->GetForeground();
    213   mWGrC->SelForeground(GetBackgroundColor());
     229  //  mWGrC->SelForeground(GetBackgroundColor());
     230  mWGrC->SelForeground(PI_Magenta);
    214231/*
    215232  {
     
    268285  SelPointerShape(PI_TDLRArrowPointer);
    269286  lCol = mWGrC->GetForeground();
    270   mWGrC->SelForeground(GetBackgroundColor());
     287  //  mWGrC->SelForeground(GetBackgroundColor());
     288  mWGrC->SelForeground(PI_Magenta);
    271289/*
    272290  {
     
    353371  list<int>::iterator it = m3DrIl.begin();
    354372  if (it == m3DrIl.end())  return;
     373#if defined(__GNUC__) && !defined(GCCV28)
     374  PIDrawer3D* dr3 = (PIDrawer3D*)(GetDrawerId(*it));
     375#else
    355376  PIDrawer3D* dr3 = dynamic_cast<PIDrawer3D*>(GetDrawerId(*it));
     377#endif
    356378  if (dr3 == NULL)  return;
    357379  dr3->UpdateSize();
  • trunk/SophyaPI/PI/pintup3d.cc

    r113 r115  
    8383if (!mNT) return;
    8484if ( (xK < 0) || (yK < 0) || (zK < 0) )  return;
     85
     86#if defined(__GNUC__) && !defined(GCCV28)
     87PIGraphic3D* g3 = (PIGraphic3D*)(g);
     88#else
    8589PIGraphic3D* g3 = dynamic_cast<PIGraphic3D*>(g);
     90#endif
    8691
    8792nok = 0; 
  • trunk/SophyaPI/PI/pisurfdr.cc

    r113 r115  
    8181{
    8282  if (mArr == NULL)  return;
     83
     84#if defined(__GNUC__) && !defined(GCCV28)
     85  PIGraphic3D* g3 = (PIGraphic3D*)(g);
     86#else
    8387  PIGraphic3D* g3 = dynamic_cast<PIGraphic3D*>(g);
     88#endif
     89
    8490//  g3->SelForeground(PI_White);
    8591  g3->SelBackground(PI_White);
Note: See TracChangeset for help on using the changeset viewer.