Пример #1
0
void TVizMapContext::Paint(PGks Gks, const bool& ShowPointNmP, const int& PointFontSize,
        const int& PointNmFontScale, const double& PointWgtThreshold, const int& CatId,
        const bool& ShowCatNmP, const bool& ShowKeyWdP, const int& KeyWdFontSize, 
        const bool& ShowMgGlassP, const int& LegendGridWidth, const int& LegendGridHeight) {

    // background
    if (!SelLandscape.Empty()) { PaintLandscape(Gks); } 
    else { PaintEmpty(Gks); }
    // legend grid
    PaintLegendGrid(Gks, LegendGridWidth, LegendGridHeight);
    // links
    PaintLinks(Gks);
    //documents and keywords
    TVec<TFltRect> PointNmRectV;
    if (ShowPointNmP) { 
        PaintPoints(Gks, PointFontSize, PointNmFontScale, 
            PointWgtThreshold, CatId, ShowMgGlassP, PointNmRectV); 
    } else { 
        PaintPoints(Gks, PointFontSize, PointNmFontScale, 
            TFlt::Mx, CatId, ShowMgGlassP, PointNmRectV); 
    }
    if (ShowCatNmP && !SelLandscape.Empty()) { 
        PaintCatNms(Gks, KeyWdFontSize, PointNmRectV); };
    if (ShowKeyWdP) { PaintKeyWds(Gks, KeyWdFontSize, PointNmRectV); }
    // mouse interactions
    if (LeftButtonDownP) { PaintZoomRect(Gks); }
    else if (MouseInP && ShowMgGlassP) { PaintMgGlass(Gks, KeyWdFontSize); }
}
void
ThermalAssistantWindow::OnPaintBuffer(Canvas &canvas)
{
  PaintRadarBackground(canvas);
  if (!derived.circling) {
    PaintNotCircling(canvas);
    return;
  }

  PaintRadarPlane(canvas);
  PaintPoints(canvas);
  PaintAdvisor(canvas);
}
Пример #3
0
void
ThermalAssistantWindow::OnPaintBuffer(Canvas &canvas)
{
  fixed max_lift = ceil(CalculateMaxLift());

  PaintRadarBackground(canvas, max_lift);
  if (!circling.circling) {
    PaintNotCircling(canvas);
    return;
  }

  LiftPoints lift_points;
  CalculateLiftPoints(lift_points, max_lift);
  PaintPoints(canvas, lift_points);
  PaintAdvisor(canvas, lift_points);

  PaintRadarPlane(canvas);
}