@@ -364,7 +364,7 @@ void CDasherViewSquare::TruncateTri(myint x, myint y1, myint y2, myint midy1, my
364364 }
365365 }
366366 // midy1,x1 is now start point
367- std::vector<CDasherScreen:: point> pts (1 );
367+ std::vector<point> pts (1 );
368368 Dasher2Screen (x1, midy1, pts[0 ].x , pts[0 ].y );
369369 DasherLine2Screen (x1, midy1, tempx1, y1, pts);
370370 if (tempx1)
@@ -402,7 +402,7 @@ void CDasherViewSquare::TruncateTri(myint x, myint y1, myint y2, myint midy1, my
402402 else
403403 DASHER_ASSERT (pts.back ().x == pts[0 ].x && pts.back ().y == pts[0 ].y );
404404
405- auto p_array = new CDasherScreen:: point[pts.size ()];
405+ auto p_array = new point[pts.size ()];
406406 for (unsigned int i = 0 ; i < pts.size (); i++) p_array[i] = pts[i];
407407 Screen ()->Polygon (p_array, static_cast <int >(pts.size ()), fillColor, outlineColor, lineWidth);
408408 delete[] p_array;
@@ -412,11 +412,11 @@ void CDasherViewSquare::TruncateTri(myint x, myint y1, myint y2, myint midy1, my
412412
413413void CDasherViewSquare::Circle (myint Range, myint y1, myint y2, const ColorPalette::Color& fillColor, const ColorPalette::Color& outlineColor, int lineWidth)
414414{
415- std::vector<CDasherScreen:: point> pts;
415+ std::vector<point> pts;
416416 myint cy ((y1 + y2) / 2 ), r (Range / 2 ), x1, x2;
417417 const DasherCoordScreenRegion visibleRegion = VisibleRegion ();
418418
419- CDasherScreen:: point p;
419+ point p;
420420 // run along bottom edge...
421421 if (y1 < visibleRegion.minY )
422422 {
@@ -459,17 +459,17 @@ void CDasherViewSquare::Circle(myint Range, myint y1, myint y2, const ColorPalet
459459 Dasher2Screen (0 , visibleRegion.maxX , p.x , p.y );
460460 pts.push_back (p);
461461 }
462- auto p_array = new CDasherScreen:: point[pts.size ()];
462+ auto p_array = new point[pts.size ()];
463463 for (unsigned int i = 0 ; i < pts.size (); i++) p_array[i] = pts[i];
464464 Screen ()->Polygon (p_array, static_cast <int >(pts.size ()), fillColor, outlineColor, lineWidth);
465465 delete[] p_array;
466466}
467467
468- void CDasherViewSquare::CircleTo (myint cy, myint r, myint y1, myint x1, myint y3, myint x3, CDasherScreen:: point dest, std::vector<CDasherScreen:: point>& pts, double dXMul)
468+ void CDasherViewSquare::CircleTo (myint cy, myint r, myint y1, myint x1, myint y3, myint x3, point dest, std::vector<point>& pts, double dXMul)
469469{
470470 myint y2 ((y1 + y3) / 2 );
471471 myint x2 (static_cast <myint>(sqrt ((sq (r) - sq (cy - y2)) * dXMul)));
472- CDasherScreen:: point mid; // where midpoint of circle/arc should be
472+ point mid; // where midpoint of circle/arc should be
473473 Dasher2Screen (x2, y2, mid.x , mid.y ); // (except "midpoint" measured along y axis)
474474 int lmx = (pts.back ().x + dest.x ) / 2 , lmy = (pts.back ().y + dest.y ) / 2 ; // midpoint of straight line
475475 if (abs (dest.y - pts.back ().y ) < 2 || abs (mid.x - lmx) + abs (mid.y - lmy) < 2 )
@@ -487,10 +487,10 @@ void CDasherViewSquare::CircleTo(myint cy, myint r, myint y1, myint x1, myint y3
487487
488488void CDasherViewSquare::DasherSpaceArc (myint cy, myint r, myint x1, myint y1, myint x2, myint y2, const ColorPalette::Color& color, int iLineWidth)
489489{
490- CDasherScreen:: point p;
490+ point p;
491491 // start point
492492 Dasher2Screen (x1, y1, p.x , p.y );
493- std::vector<CDasherScreen:: point> pts;
493+ std::vector<point> pts;
494494 pts.push_back (p);
495495 // if circle goes behind crosshair and we want the point of max-x, force division into two sections with that point as boundary
496496 if (r > CDasherModel::ORIGIN_X && ((y1 < cy) ^ (y2 < cy)))
@@ -502,7 +502,7 @@ void CDasherViewSquare::DasherSpaceArc(myint cy, myint r, myint x1, myint y1, my
502502 }
503503 Dasher2Screen (x2, y2, p.x , p.y );
504504 CircleTo (cy, r, y1, x1, y2, x2, p, pts, 1.0 );
505- auto p_array = new CDasherScreen:: point[pts.size ()];
505+ auto p_array = new point[pts.size ()];
506506 for (unsigned int i = 0 ; i < pts.size (); i++) p_array[i] = pts[i];
507507 Screen ()->Polyline (p_array, static_cast <int >(pts.size ()), iLineWidth, color);
508508}
@@ -512,7 +512,7 @@ void CDasherViewSquare::Quadric(myint Range, myint lowY, myint highY, const Colo
512512 static const double RR2 = 1.0 / sqrt (2.0 );
513513 const int midY = static_cast <int >((lowY + highY) / 2 );
514514#define NUM_STEPS 40
515- CDasherScreen:: point p_array[2 * NUM_STEPS + 2 ];
515+ point p_array[2 * NUM_STEPS + 2 ];
516516
517517 const DasherCoordScreenRegion visibleRegion = VisibleRegion ();
518518 {
@@ -1194,7 +1194,7 @@ void CDasherViewSquare::Dasher2Polar(myint iDasherX, myint iDasherY, double& r,
11941194 r = sqrt (x * x + y * y);
11951195}
11961196
1197- void CDasherViewSquare::DasherLine2Screen (myint x1, myint y1, myint x2, myint y2, std::vector<CDasherScreen:: point>& vPoints)
1197+ void CDasherViewSquare::DasherLine2Screen (myint x1, myint y1, myint x2, myint y2, std::vector<point>& vPoints)
11981198{
11991199 if (x1 != x2 && y1 != y2)
12001200 {
@@ -1221,7 +1221,7 @@ void CDasherViewSquare::DasherLine2Screen(myint x1, myint y1, myint x2, myint y2
12211221 if (m_pSettingsStore->GetLongParameter (LP_NONLINEAR_X) && (x1 > m_iXlogThres || x2 > m_iXlogThres))
12221222 {
12231223 // into logarithmic section
1224- CDasherScreen:: point pStart, pScreenMid, pEnd;
1224+ point pStart, pScreenMid, pEnd;
12251225 Dasher2Screen (x2, y2, pEnd.x , pEnd.y );
12261226 for (;;)
12271227 {
@@ -1231,7 +1231,7 @@ void CDasherViewSquare::DasherLine2Screen(myint x1, myint y1, myint x2, myint y2
12311231 pScreenMid.y = (pStart.y + pEnd.y ) / 2 ;
12321232 // whereas a straight line _in_Dasher_space_ passes through pDasherMid:
12331233 myint xMid = (x1 + x2) / 2 , yMid = (y1 + y2) / 2 ;
1234- CDasherScreen:: point pDasherMid;
1234+ point pDasherMid;
12351235 Dasher2Screen (xMid, yMid, pDasherMid.x , pDasherMid.y );
12361236
12371237 // since we know both endpoints are in the same section of the screen wrt. Y nonlinearity,
@@ -1259,7 +1259,7 @@ void CDasherViewSquare::DasherLine2Screen(myint x1, myint y1, myint x2, myint y2
12591259 // ok, not in x nonlinear section; fall through.
12601260 }
12611261
1262- CDasherScreen:: point p;
1262+ point p;
12631263 Dasher2Screen (x2, y2, p.x , p.y );
12641264 vPoints.push_back (p);
12651265}
0 commit comments