- Timestamp:
- Oct 5, 1999, 12:14:13 AM (26 years ago)
- Location:
- trunk/SophyaPI/PI
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PI/pidrawer.cc
r383 r450 4 4 // LAL (Orsay) / IN2P3-CNRS DAPNIA/SPP (Saclay) / CEA 5 5 6 #include "machdefs.h" 7 #include <iostream.h> 6 8 #include "pidrawer.h" 7 9 #include <math.h> … … 100 102 else ayud = kAxeDirDownUp; 101 103 } 102 if (xmax <= xmin || ymax <= ymin) 103 return; // $CHECK$ exception ? 104 if (xmax <= xmin || ymax <= ymin) { 105 cerr << "PIDrawer::SetLimits() Error - xmax <= xmin || ymax <= ymin ! " << endl; 106 return; 107 } 108 if (!finite(xmin) || !finite(xmax) || !finite(ymin) || !finite(ymax)) { 109 cerr << "PIDrawer::SetLimits() Error - Non finite value for x/ymin-max ! " << endl; 110 return; 111 } 104 112 if (axrl == kAxeDirLtoR) aXdir = false; 105 113 else if (axrl == kAxeDirRtoL) aXdir = true; … … 131 139 // Cette méthode doit calculer les limites (X/Y Min-Max) préferées par l'objet 132 140 // et doit appeler "SetLimits()". L'implementation par défaut ne fait rien. 133 // void Appen TextInfo(string& info, double xmin, double ymin, double xmax, double ymax)141 // void AppendTextInfo(string& info, double xmin, double ymin, double xmax, double ymax) 134 142 // Méthode qui met à jour la chaîne "info", avec les informations (textuelles) de 135 143 // la zone définie par "xmin-xmax" , "ymin-ymax". -
trunk/SophyaPI/PI/pigraphuc.cc
r387 r450 3 3 // LAL (Orsay) / IN2P3-CNRS DAPNIA/SPP (Saclay) / CEA 4 4 5 #include "machdefs.h" 6 #include <iostream.h> 5 7 #include "pigraphuc.h" 6 8 … … 132 134 } 133 135 134 if (xmax <= xmin || ymax <= ymin) 135 return; // $CHECK$ exception ? 136 if (xmax <= xmin || ymax <= ymin) { 137 cerr << "PIGraphicUC::SetUCS() Error - xmax <= xmin || ymax <= ymin ! " << endl; 138 return; 139 } 140 if (!finite(xmin) || !finite(xmax) || !finite(ymin) || !finite(ymax)) { 141 cerr << "PIGraphicUC::SetUCS() Error - Non finite value for x/ymin-max ! " << endl; 142 return; 143 } 136 144 if (axrl == kAxeDirLtoR) aXdir = false; 137 145 else if (axrl == kAxeDirRtoL) aXdir = true; -
trunk/SophyaPI/PI/piscdrawwdg.cc
r343 r450 2 2 // Gestionnaire Drawer-2D E.Aubourg, R. Ansari 96-98 3 3 // LAL (Orsay) / IN2P3-CNRS DAPNIA/SPP (Saclay) / CEA 4 5 #include "machdefs.h" 6 #include <iostream.h> 4 7 5 8 #include "piscdrawwdg.h"
Note:
See TracChangeset
for help on using the changeset viewer.