Changeset 205 in Sophya for trunk/SophyaPI/PIext/pipodrw.cc
- Timestamp:
- Mar 1, 1999, 6:05:59 PM (27 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PIext/pipodrw.cc
r165 r205 31 31 32 32 void 33 PIGFFDrawer::Draw(PIGraphicUC* g, float /*xmin*/, float/*ymin*/, float/*xmax*/, float/*ymax*/)33 PIGFFDrawer::Draw(PIGraphicUC* g, double /*xmin*/, double/*ymin*/, double/*xmax*/, double/*ymax*/) 34 34 { 35 35 PIGrCoord x1, x2, y1, y2; 36 36 g->GetGrSpace(x1, x2, y1, y2); 37 floatxMax = x2;38 floatxMin = x1;39 floatyMax = y2;40 floatyMin = y1;41 floatxStep = (xMax - xMin)/100;42 floatxOld = xMin;43 floatyOld = 0;44 // floatyOld = f->Value(&xMin, mParms);45 for ( floatx = xMin+xStep; x<xMax; x+=xStep) {46 floaty = 0; // $CHECK$47 // floaty = f->Value(&x, mParms);37 double xMax = x2; 38 double xMin = x1; 39 double yMax = y2; 40 double yMin = y1; 41 double xStep = (xMax - xMin)/100; 42 double xOld = xMin; 43 double yOld = 0; 44 // double yOld = f->Value(&xMin, mParms); 45 for (double x = xMin+xStep; x<xMax; x+=xStep) { 46 double y = 0; // $CHECK$ 47 // double y = f->Value(&x, mParms); 48 48 if (y>yMin && yOld>yMin && 49 49 y<yMax && yOld<yMax) … … 72 72 73 73 /* --Methode-- */ 74 floatPOVectorAdapter::Value(int i)74 double POVectorAdapter::Value(int i) 75 75 { 76 76 return((*mVec)(i)); … … 96 96 97 97 /* --Methode-- */ 98 floatPOH2DAdapter::Value(int ix, int iy)98 double POH2DAdapter::Value(int ix, int iy) 99 99 { 100 100 return((*mH2d)(ix, iy)); … … 120 120 121 121 /* --Methode-- */ 122 floatPOMatrixAdapter::Value(int ix, int iy)122 double POMatrixAdapter::Value(int ix, int iy) 123 123 { 124 124 // Attention MatrixAdapter(X=Colonne, Y= Row) = Matrix(row, col)
Note:
See TracChangeset
for help on using the changeset viewer.