示例#1
0
 TestProjection() {
     SetScreenOrigin(0, 0);
     SetScale(fixed(640) / (fixed(100) * 2));
     SetGeoLocation(GeoPoint(Angle::Degrees(fixed(7.7061111111111114)),
                             Angle::Degrees(fixed(51.051944444444445))));
     SetScreenSize(640, 480);
     UpdateScreenBounds();
 }
示例#2
0
void ChartProjection::set_projection(const PixelRect &rc, 
                                     const GeoPoint &center,
                                     const fixed radius)
{
  SetMapRect(rc);
  SetScaleFromRadius(radius);
  SetGeoLocation(center);
  SetScreenOrigin((rc.left + rc.right) / 2, (rc.bottom + rc.top) / 2);
  UpdateScreenBounds();
}
示例#3
0
 TestProjection() {
   SetScreenOrigin(0, 0);
   SetScale(fixed(640) / (fixed(100) * 2));
   SetGeoLocation(GeoPoint(Angle::Degrees(7.7061111111111114),
                           Angle::Degrees(51.051944444444445)));
 }