/*************************************************************************************************************************************/
/*                                                                                                                                   */
/*        P O S I T I O N N E M E N T   D ' U N   P O I N T  :                                                                       */
/*                                                                                                                                   */
/*                                                                                                                                   */
/*        Author of '$xci/S_point$K' :                                                                                               */
/*                                                                                                                                   */
/*                    Jean-Francois COLONNA (LACTAMME, 1998??????????).                                                              */
/*                                                                                                                                   */
/*************************************************************************************************************************************/

/*===================================================================================================================================*/
/*************************************************************************************************************************************/
/*                                                                                                                                   */
/*        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   ABSCISSE_DU_POINT                                                                                                             \
                    Xmin
#define   ORDONNEE_DU_POINT                                                                                                             \
                    Ymin
                                        /* Point a positionner.                                                                      */
#define   TRANSLATION_HORIZONTALE_DU_POINT                                                                                              \
                    ZERO
#define   TRANSLATION_VERTICALE_DU_POINT                                                                                                \
                    ZERO
                                        /* Translation du point a positionner de facon a pouvoir definir, par exemple, un point      */
                                        /* de reference absolu, puis a partir de lui d'autres points par translation. Cela sera      */
                                        /* utile pour definir des configurations initiales du jeu de la vie ('v $xci/jeu_vie.11$K'). */

#define   NIVEAU_DE_MARQUAGE_DU_POINT                                                                                                   \
                    BLANC
#define   VALEUR_DE_MARQUAGE_DU_POINT                                                                                                   \
                    FU
                                        /* Niveau de marquage du point a positionner.                                                */

/*===================================================================================================================================*/
/*************************************************************************************************************************************/
/*                                                                                                                                   */
/*        M A C R O S   U T I L E S  :                                                                                               */
/*                                                                                                                                   */
/*************************************************************************************************************************************/

/*===================================================================================================================================*/
/*************************************************************************************************************************************/
/*                                                                                                                                   */
/*        P O S I T I O N N E M E N T   D ' U N   P O I N T  :                                                                       */
/*                                                                                                                                   */
/*************************************************************************************************************************************/
BCommande(nombre_d_arguments,arguments)
/*-----------------------------------------------------------------------------------------------------------------------------------*/
     Bblock
     DEFV(CHAR,INIC(POINTERc(nom_imageR),NOM_PIPE));
     DEFV(CHAR,INIC(POINTERc(nom_imageA),NOM_PIPE));
     DEFV(Int,INIT(abscisse_du_point,ABSCISSE_DU_POINT));
     DEFV(Int,INIT(ordonnee_du_point,ORDONNEE_DU_POINT));
     DEFV(Int,INIT(translation_horizontale_du_point,TRANSLATION_HORIZONTALE_DU_POINT));
     DEFV(Int,INIT(translation_verticale_du_point,TRANSLATION_VERTICALE_DU_POINT));
                                        /* Translation du point a positionner de facon a pouvoir definir, par exemple, un point      */
                                        /* de reference absolu, puis a partir de lui d'autres points par translation. Cela sera      */
                                        /* utile pour definir des configurations initiales du jeu de la vie ('v $xci/jeu_vie.11$K'). */
     DEFV(genere_p,INIT(niveau_de_marquage_du_point,NIVEAU_DE_MARQUAGE_DU_POINT));
     DEFV(genere_Float,INIT(valeur_de_marquage_du_point,VALEUR_DE_MARQUAGE_DU_POINT));
                                        /* Niveau de marquage du point a positionner.                                                */
     /*..............................................................................................................................*/
     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);

                         GET_ARGUMENT_P("niveau=""n=",niveau_de_marquage_du_point);
                         GET_ARGUMENT_F("valeur=""v=",valeur_de_marquage_du_point);

                         GET_ARGUMENT_I("x=""X=",abscisse_du_point);
                         GET_ARGUMENT_I("tX=""Tx=",translation_horizontale_du_point);
                                        /* Le 20050623142646, "tx=" a ete remplace par "Tx=" (double definition...).                 */
                         GET_ARGUMENT_I("y=""Y=",ordonnee_du_point);
                         GET_ARGUMENT_I("tY=""Ty=",translation_verticale_du_point);
                                        /* Le 20050623142646, "ty=" a ete remplace par "Ty=" (double definition...).                 */

                         GET_ARGUMENTS2_L("avertir_hors_image=""ahi="
                                         ,Imove_avec_store_point_valide_____avertir_hors_image
                                         ,IFmove_avec_store_point_valide_____avertir_hors_image
                                          );
                                        /* Arguments introduits le 20170918120220...                                                 */
                         )
                    );

     CALi(gInettoyage(les_images_sont_standards,ImageR,IFmageR));
                                        /* Initialisation de l'image Resultat.                                                       */

     Test(PAS_D_ERREUR(CODE_ERROR(gIload_image(les_images_sont_standards,ImageA,IFmageA,nom_imageA))))
          Bblock
          CALS(gImove_avec_store_point_valide(les_images_sont_standards
                                             ,ImageR,IFmageR
                                             ,ImageA,IFmageA
                                             ,niveau_de_marquage_du_point,valeur_de_marquage_du_point
                                             ,ADD2(abscisse_du_point,translation_horizontale_du_point)
                                             ,ADD2(ordonnee_du_point,translation_verticale_du_point)
                                              )
               );
                                        /* Deplacement de l'image avec marquage du point (cette facon de programmer cette            */
                                        /* operation -via 'Imove_avec_store_point_valide(...)'- a ete introduite le 20030119101541.  */
                                        /* L'extension aux images non standards a eu lieu le 20050920124506...                       */

          CALi(gIupdate_image(les_images_sont_standards,nom_imageR,ImageR,IFmageR));
          Eblock
     ATes
          Bblock
          Test__CODE_ERREUR__ERREUR07;
          Eblock
     ETes

     RETU_Commande;
     Eblock
ECommande



Copyright © Jean-François COLONNA, 2019-2024.
Copyright © CMAP (Centre de Mathématiques APpliquées) UMR CNRS 7641 / École polytechnique, Institut Polytechnique de Paris, 2019-2024.