/*************************************************************************************************************************************/ /* */ /* T R A N S L A T I O N D ' U N E I M A G E : */ /* */ /* */ /* Author of '$xci/scroll$K' : */ /* */ /* Jean-Francois COLONNA (LACTAMME, 1989??????????). */ /* */ /*************************************************************************************************************************************/ /*===================================================================================================================================*/ /*************************************************************************************************************************************/ /* */ /* I N T E R F A C E ' listG ' : */ /* */ /* */ /* :Debut_listG: */ /* :Fin_listG: */ /* */ /*************************************************************************************************************************************/ /*===================================================================================================================================*/ /*************************************************************************************************************************************/ /* */ /* D I R E C T I V E S S P E C I F I Q U E S D E C O M P I L A T I O N : */ /* */ /*************************************************************************************************************************************/ /*===================================================================================================================================*/ /*************************************************************************************************************************************/ /* */ /* F I C H I E R S D ' I N C L U D E S : */ /* */ /*************************************************************************************************************************************/ #include INCLUDES_BASE #include image_image_IMAGESF_EXT /*===================================================================================================================================*/ /*************************************************************************************************************************************/ /* */ /* P A R A M E T R E S : */ /* */ /*************************************************************************************************************************************/ #define TRANSLATION_OX \ FZERO \ /* Translation horizontale implicite, */ #define TRANSLATION_OY \ FZERO \ /* Translation verticale implicite. */ #define TORE_HORIZONTAL \ VRAI \ /* L'axe 'OX' est considere comme torique. */ #define TORE_VERTICAL \ VRAI \ /* L'axe 'OY' est considere comme torique. */ /*===================================================================================================================================*/ /*************************************************************************************************************************************/ /* */ /* M A C R O S U T I L E S : */ /* */ /*************************************************************************************************************************************/ /*===================================================================================================================================*/ /*************************************************************************************************************************************/ /* */ /* T R A N S L A T I O N D ' U N E I M A G E : */ /* */ /*************************************************************************************************************************************/ BCommande(nombre_d_arguments,arguments) /*-----------------------------------------------------------------------------------------------------------------------------------*/ Bblock DEFV(CHAR,INIC(POINTERc(nom_imageR),NOM_PIPE)); DEFV(CHAR,INIC(POINTERc(nom_imageA),NOM_PIPE)); DEFV(Float,INIT(translation_OX,TRANSLATION_OX)); DEFV(Float,INIT(translation_OY,TRANSLATION_OY)); /* Argument de translation de la fenetre. */ DEFV(deltaF_2D,translation); /* Translation de la fenetre. */ DEFV(Logical,INIT(tore_horizontal,TORE_HORIZONTAL)); /* Definition de la topologie de l'axe 'OX'. */ DEFV(Logical,INIT(tore_vertical,TORE_VERTICAL)); /* Definition de la topologie de l'axe 'OY'. */ /*..............................................................................................................................*/ GET_ARGUMENTSi(nombre_d_arguments ,BLOC(GET_ARGUMENT_C("imageA=""A=",nom_imageA); GET_ARGUMENT_C("imageR=""R=",nom_imageR); GET_ARGUMENT_L("standard=",les_images_sont_standards); /* Cette extension a ete introduite le 20041111155617... */ GET_ARGUMENT_F("trx=""trX=",translation_OX); GET_ARGUMENT_F("try=""trY=",translation_OY); GET_ARGUMENT_L("torex=""toreX=",tore_horizontal); GET_ARGUMENT_L("torey=""toreY=",tore_vertical); GET_ARGUMENT_P("niveau=""n=",Iinitialisation_____valeur_pour_gInettoyage); GET_ARGUMENT_F("valeur=""v=",IFinitialisation_____valeur_pour_gInettoyage); /* Ces parametres ont ete introduits le 20090527111143... */ ) ); CALi(gInettoyage(les_images_sont_standards,ImageR,IFmageR)); /* Initialisation de l'image Resultat. */ INITIALISATION_ACCROISSEMENT_2D(translation,translation_OX,translation_OY); /* Mise en place de la translation de l'image... */ Test(PAS_D_ERREUR(CODE_ERROR(gIload_image(les_images_sont_standards,ImageA,IFmageA,nom_imageA)))) Bblock CALS(gItranslation(les_images_sont_standards ,ImageR,IFmageR ,ImageA,IFmageA ,ADRESSE(translation) ,tore_horizontal,tore_vertical ) ); /* Translation de l'image Argument. */ CALi(gIupdate_image(les_images_sont_standards,nom_imageR,ImageR,IFmageR)); Eblock ATes Bblock Test__CODE_ERREUR__ERREUR07; Eblock ETes RETU_Commande; Eblock ECommande