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 );
}
 bool operator()( fpoint Point, double Value ) { return Point.x() < Value; }
 number operator()( fpoint Point ) { return Point.x(); }
 bool pointsWithSameXCoord::canSeparate( const painter &Painter, fpoint Point )
 {
   if ( Count == 0 )
     return true;
   return X != Painter.fcoord2wcoordX( Point.x() );
 }