Пример #1
0
Output_Computed * DE_GW_Not_Comp::compute(const Arg_Output_Comp & arg)
{
      ASSERT_TJS_USER
      (
           arg.flux()->dim() == 2,
           "need 2-dimensional sets to write in raster Graphic Window"
      );

      // get the general representation of window
      Data_El_Geom_GWin  * geom = _ew.degeow();
      ASSERT_TJS_USER
      (
             (geom->handle_rastser_scale_negatif()) || ((geom->sc().x>0) && (geom->sc().y>0)),
             "can only handle positive scales in raster mode (for now)"
      );
      Data_Elise_Gra_Win * degw = _ew.degraw();
      degw->_degd->reinit_cp();
      degw->warn_graph();


      (degw->sop()).pal_is_loaded(_pal);
      Data_Elise_Palette *   dep  = _pal.dep();
      dep->verif_out_put(arg);

      Output_Computed * res;
      switch (arg.flux()->type())
      {
              case Pack_Of_Pts::rle   :
                     res = degw->rle_out_comp(geom,arg,dep,mOnYDiff);
              break;

           case Pack_Of_Pts::integer   :

              INT v[Elise_Std_Max_Dim];
              if (arg.fonc()->icste(v))
                 res = degw->pint_cste_out_comp(geom,arg,dep,v);
              else
                 res = degw->pint_no_cste_out_comp(geom,arg,dep);
           break;

           default :
               elise_fatal_error
               ("Raster Windows cannot manage real points (for now)",__FILE__,__LINE__);
               res = 0;
      }

     res = out_adapt_type_fonc (arg,res,Pack_Of_Pts::integer);
     {
         Pt2di p0,p1;
         geom->box_user_geom(p0,p1);
         res = clip_out_put(res,arg,p0,p1);
     }

      return res;
}
Пример #2
0
Output_Computed * Output::compute(const Arg_Output_Comp & arg)
{
    ASSERT_TJS_USER
  (    _ptr != 0,
       "USE OF OutPut non initialized"
  );
   return SAFE_DYNC(Output_Not_Comp *,_ptr)->compute(arg);
}
Пример #3
0
Flux_Pts_Computed * Flux_Pts::compute (const Arg_Flux_Pts_Comp & arg)
{
    ASSERT_TJS_USER
    (    _ptr != 0,
         "USE OF Flux_Pts  non initialized"
    );

    return SAFE_DYNC(Flux_Pts_Not_Comp *,_ptr)->compute(arg);
}
Пример #4
0
main(int argc,char ** argv)
{

   ASSERT_TJS_USER(argc>=2,"Not enouh arg in bug_0_all\n");
   int nbug = atoi(argv[1]);

   cout << "Num de bug teste : " << nbug << "\n";

   switch (nbug)
   {
        case 0 :
             bug_0();
        break;


        case 2 :
             bug_2();
        break;

        case 3 :
             bug_3();
        break;

        case 4 :
             bug_4();
        break;

        case 5 :
             bug_5();
        break;

        case 6 :
             bug_6();
        break;

        case 7 :
             bug_7();
        break;

        case 8 :
             bug_8();
        break;

        case 9 :
             bug_9();
        break;

        case 10 :
             bug_10();
        break;

        case 11 :
             bug_11();
        break;

        case 12 :
             bug_12();
        break;

        case 13 :
             bug_13();
        break;

        case 14 :
             bug_14();
        break;
   }

   cout << "APPARENTLY NO BUG APPEARED ??????\n";
}