void pointsWithSameXCoord::append( const painter &Painter, fpoint Point )
 {
   LastY = Painter.fcoord2wcoordY( Point.y() );
   if ( Count == 0 )
   {
     X = Painter.fcoord2wcoordX( Point.x() );
     MinY = MaxY = FirstY = LastY;
   } else {
     MinY = std::min( MinY, LastY );
     MaxY = std::max( MaxY, LastY );
   }
   Count += 1;
 }
示例#2
0
scigraphics::wpoint scigraphics::painter::fpoint2wpoint( fpoint Pt ) const
{
  wcoord X = fcoord2wcoordX(Pt.x()); 
  wcoord Y = fcoord2wcoordY(Pt.y()); 
  return wpoint( X, Y );
}