[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-cvs: CVS update: o_arc_basic.c



  User: pcjc2   
  Date: 06/12/27 14:48:11

  Modified:    .        Tag: noscreen o_arc_basic.c o_box_basic.c
                        o_bus_basic.c o_circle_basic.c o_line_basic.c
                        o_net_basic.c o_picture.c o_pin_basic.c
                        o_text_basic.c
  Log:
  * include/prototype.h, src/o_arc_basic.c, src/o_box_basic.c,
  
    src/o_bus_basic.c, src/o_circle_basic.c, src/o_line_basic.c,
  
    src/o_net_basic.c, src/o_picture.c, src/o_pin_basic.c,
  
    src/o_text_basic.c: Removed o_..._mirror() functions unused
  
    since changing to world coordinates
  
  
  
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.31.2.1  +0 -36     eda/geda/gaf/libgeda/src/o_arc_basic.c
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: o_arc_basic.c
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/libgeda/src/o_arc_basic.c,v
  retrieving revision 1.31
  retrieving revision 1.31.2.1
  diff -u -b -r1.31 -r1.31.2.1
  --- o_arc_basic.c	7 Dec 2006 04:24:18 -0000	1.31
  +++ o_arc_basic.c	27 Dec 2006 19:48:11 -0000	1.31.2.1
  @@ -550,42 +550,6 @@
     
   }                                   
   
  -/*! \brief
  - *  \par Function Description
  - *  This function mirrors the screen coordinates of an arc.
  - *  The symetry axis is given by the vertical line going
  - *  through the point (<B>centerx</B>,<B>centery</B>).
  - *  
  - *  <B>centerx</B> and <B>centery</B> are in screen unit.
  - *
  - *  The arc is translated in order to put the point (<B>centerx</B>,<B>centery</B>)
  - *  on the origin. The center of the arc is then mirrored. The start angle of
  - *  the arc and the sweep of the arc are also mirrored.
  - * 
  - *  The arc is finally back translated to its previous location on the page.
  - *
  - *  \param [in] w_current  The TOPLEVEL object.
  - *  \param [in] centerx
  - *  \param [in] centery
  - *  \param [in] object
  - */
  -void o_arc_mirror(TOPLEVEL *w_current,
  -		  int centerx, int centery,
  -		  OBJECT *object)
  -{
  -  int world_centerx, world_centery;
  -
  -  /* convert mirror origin in world unit */
  -  SCREENtoWORLD(w_current, centerx, centery,
  -                &world_centerx, &world_centery);
  -
  -  /* mirror the arc */
  -  o_arc_mirror_world(w_current, world_centerx, world_centery, object);
  -
  -  /* screen coords and boundings are updated by _rotate_world() */
  -  
  -}
  -
   /*! \brief Mirror the WORLD coordinates of an ARC.
    *  \par Function Description
    *  This function mirrors the world coordinates of an arc.
  
  
  
  1.26.2.1  +0 -34     eda/geda/gaf/libgeda/src/o_box_basic.c
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: o_box_basic.c
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/libgeda/src/o_box_basic.c,v
  retrieving revision 1.26
  retrieving revision 1.26.2.1
  diff -u -b -r1.26 -r1.26.2.1
  --- o_box_basic.c	7 Dec 2006 04:24:18 -0000	1.26
  +++ o_box_basic.c	27 Dec 2006 19:48:11 -0000	1.26.2.1
  @@ -642,40 +642,6 @@
     o_box_recalc(w_current, object);
   }
   
  -/*! \brief Mirror a BOX.
  - *  \par Function Description
  - *  This function mirrors the box from the point (<B>centerx</B>,<B>centery</B>) in
  - *  screen unit.
  - *
  - *  The origin of the mirror in screen unit is converted in world unit. The
  - *  box is mirrored with the function #o_box_mirror_world() for which the
  - *  origin of the mirror must be given in world unit.
  - *
  - *  \param [in]     w_current  The TOPLEVEL object.
  - *  \param [in]     centerx    Origin x coordinate in WORLD units.
  - *  \param [in]     centery    Origin y coordinate in WORLD units.
  - *  \param [in,out] object     BOX OBJECT to mirror.
  - */
  -void o_box_mirror(TOPLEVEL *w_current,
  -		  int centerx, int centery,
  -		  OBJECT *object)
  -{
  -  int world_centerx, world_centery;
  -
  -  /* convert the origin of mirror */
  -  SCREENtoWORLD(w_current, centerx, centery, 
  -                &world_centerx,
  -                &world_centery);  
  -
  -  /* apply the mirror in world coords */
  -  o_box_mirror_world(w_current,
  -		     world_centerx, world_centery,
  -		     object);
  -  
  -  /* screen coords and boundings are updated by _mirror_world() */
  -  
  -}
  -
   /*! \brief Mirror BOX using WORLD coordinates.
    *  \par Function Description
    *  This function mirrors the box from the point
  
  
  
  1.17.2.1  +0 -23     eda/geda/gaf/libgeda/src/o_bus_basic.c
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: o_bus_basic.c
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/libgeda/src/o_bus_basic.c,v
  retrieving revision 1.17
  retrieving revision 1.17.2.1
  diff -u -b -r1.17 -r1.17.2.1
  --- o_bus_basic.c	7 Dec 2006 04:24:18 -0000	1.17
  +++ o_bus_basic.c	27 Dec 2006 19:48:11 -0000	1.17.2.1
  @@ -601,29 +601,6 @@
    * \par Function Description
    *
    */
  -void o_bus_mirror(TOPLEVEL *w_current,
  -		  int centerx, int centery, OBJECT *object)
  -{
  -  int world_centerx, world_centery;
  -
  -  SCREENtoWORLD(w_current, centerx, centery, 
  -                &world_centerx,
  -                &world_centery);  
  -
  -  /* translate object to origin */
  -  o_bus_translate_world(w_current, -world_centerx, -world_centery, object);
  -
  -  object->line->x[0] = -object->line->x[0];
  -
  -  object->line->x[1] = -object->line->x[1];
  -
  -  o_bus_translate_world(w_current, world_centerx, world_centery, object);
  -}
  -
  -/* \brief
  - * \par Function Description
  - *
  - */
   void o_bus_mirror_world(TOPLEVEL *w_current,
   			int world_centerx, int world_centery, OBJECT *object)
   {
  
  
  
  1.27.2.1  +0 -33     eda/geda/gaf/libgeda/src/o_circle_basic.c
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: o_circle_basic.c
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/libgeda/src/o_circle_basic.c,v
  retrieving revision 1.27
  retrieving revision 1.27.2.1
  diff -u -b -r1.27 -r1.27.2.1
  --- o_circle_basic.c	7 Dec 2006 04:24:18 -0000	1.27
  +++ o_circle_basic.c	27 Dec 2006 19:48:11 -0000	1.27.2.1
  @@ -571,39 +571,6 @@
     
   }
   
  -/*! \brief Mirror a Circle.
  - *  \par Function Description
  - *  This function mirrors the circle from the point (<B>centerx</B>,<B>centery</B>)
  - *  in screen unit.
  - *
  - *  The origin of the mirror in screen unit is converted in world unit.
  - *  The circle is mirrored with the function #o_circle_mirror_world()
  - *  for which the origin of the mirror must be given in world unit.
  - *
  - *  \param [in]     w_current  The TOPLEVEL object.
  - *  \param [in]     centerx    Origin x coordinate in WORLD units.
  - *  \param [in]     centery    Origin y coordinate in WORLD units.
  - *  \param [in,out] object     Circle OBJECT to mirror.
  - */
  -void o_circle_mirror(TOPLEVEL *w_current,
  -		     int centerx, int centery,
  -		     OBJECT *object)
  -{
  -  int world_centerx, world_centery;
  -
  -  /* convert the origin of mirror */
  -  SCREENtoWORLD(w_current,
  -		centerx, centery, 
  -                &world_centerx, &world_centery);  
  -
  -  /* apply the mirror in world coords */
  -  o_circle_mirror_world(w_current,
  -			world_centerx, world_centery,
  -			object);
  -  
  -  /* screen coords and boundings are updated by _mirror_world() */
  -}
  -
   /*! \brief Mirror circle using WORLD coordinates.
    *  \par Function Description
    *  This function recalculates the screen coords of the <B>o_current</B> pointed
  
  
  
  1.26.2.1  +0 -32     eda/geda/gaf/libgeda/src/o_line_basic.c
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: o_line_basic.c
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/libgeda/src/o_line_basic.c,v
  retrieving revision 1.26
  retrieving revision 1.26.2.1
  diff -u -b -r1.26 -r1.26.2.1
  --- o_line_basic.c	7 Dec 2006 04:24:18 -0000	1.26
  +++ o_line_basic.c	27 Dec 2006 19:48:11 -0000	1.26.2.1
  @@ -576,38 +576,6 @@
     
   }
   
  -/*! \brief Mirror a Line.
  - *  \par Function Description
  - *  This function mirrors the line from the point
  - *  (<B>centerx</B>,<B>centery</B>) in screen unit.
  - *
  - *  The origin of the mirror in screen unit is converted in world unit.
  - *  The line is mirrored with the function #o_line_mirror_world()
  - *  for which the origin of the mirror must be given in world unit.
  - *
  - *  \param [in]     w_current  The TOPLEVEL object.
  - *  \param [in]     centerx    Origin x coordinate in WORLD units.
  - *  \param [in]     centery    Origin y coordinate in WORLD units.
  - *  \param [in,out] object     Line OBJECT to mirror.
  - */
  -void o_line_mirror(TOPLEVEL *w_current,
  -		   int centerx, int centery,
  -		   OBJECT *object)
  -{
  -  int world_centerx, world_centery;
  -
  -  /* convert the origin of mirror */
  -  SCREENtoWORLD(w_current, centerx, centery, 
  -                &world_centerx,
  -                &world_centery);  
  -
  -  /* apply the mirror in world coords */
  -  o_line_mirror_world(w_current,
  -					  world_centerx, world_centery,
  -					  object);
  -  
  -}
  -
   /*! \brief Mirror a line using WORLD coordinates.
    *  \par Function Description
    *  This function mirrors the line from the point
  
  
  
  1.34.2.1  +0 -25     eda/geda/gaf/libgeda/src/o_net_basic.c
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: o_net_basic.c
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/libgeda/src/o_net_basic.c,v
  retrieving revision 1.34
  retrieving revision 1.34.2.1
  diff -u -b -r1.34 -r1.34.2.1
  --- o_net_basic.c	21 Dec 2006 20:09:47 -0000	1.34
  +++ o_net_basic.c	27 Dec 2006 19:48:11 -0000	1.34.2.1
  @@ -637,31 +637,6 @@
    *
    *
    */
  -void o_net_mirror(TOPLEVEL *w_current, int centerx, int centery,
  -		  OBJECT *object)
  -{
  -  int world_centerx, world_centery;
  -
  -  SCREENtoWORLD(w_current, centerx, centery,
  -                &world_centerx, &world_centery);
  -
  -  /* translate object to origin */
  -  o_net_translate_world(w_current, -world_centerx, -world_centery,
  -                        object);
  -
  -  object->line->x[0] = -object->line->x[0];
  -
  -  object->line->x[1] = -object->line->x[1];
  -
  -  o_net_translate_world(w_current, world_centerx, world_centery, object);
  -}
  -
  -/*! \todo Finish function documentation!!!
  - *  \brief
  - *  \par Function Description
  - *
  - *
  - */
   void o_net_mirror_world(TOPLEVEL *w_current, int world_centerx,
   			int world_centery, OBJECT *object)
   {
  
  
  
  1.5.2.1   +0 -34     eda/geda/gaf/libgeda/src/o_picture.c
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: o_picture.c
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/libgeda/src/o_picture.c,v
  retrieving revision 1.5
  retrieving revision 1.5.2.1
  diff -u -b -r1.5 -r1.5.2.1
  --- o_picture.c	7 Dec 2006 04:24:18 -0000	1.5
  +++ o_picture.c	27 Dec 2006 19:48:11 -0000	1.5.2.1
  @@ -760,40 +760,6 @@
   	
   }
   
  -/*! \brief Mirror a picture.
  - *  \par Function Description
  - *  This function mirrors the picture from the point
  - *  (<B>centerx</B>,<B>centery</B>) in screen unit.
  - *
  - *  The origin of the mirror in screen unit is converted in world unit.
  - *  The picture is mirrored with the function #o_picture_mirror_world()
  - *  for which the origin of the mirror must be given in world unit.
  - *
  - *  \param [in]     w_current  The TOPLEVEL object.
  - *  \param [in]     centerx    Origin x coordinate in WORLD units.
  - *  \param [in]     centery    Origin y coordinate in WORLD units.
  - *  \param [in,out] object     Picture OBJECT to mirror.
  - */
  -void o_picture_mirror(TOPLEVEL *w_current,
  -		      int centerx, int centery,
  -		      OBJECT *object)
  -{
  -  int world_centerx, world_centery;
  -
  -  /* convert the origin of mirror */
  -  SCREENtoWORLD(w_current, centerx, centery, 
  -                &world_centerx,
  -                &world_centery);  
  -
  -  /* apply the mirror in world coords */
  -  o_picture_mirror_world(w_current,
  -			 world_centerx, world_centery,
  -			 object);
  -
  -  /* screen coords and boundings are updated by _mirror_world() */
  -  
  -}
  -
   /*! \brief Mirror a picture using WORLD coordinates.
    *  \par Function Description
    *  This function mirrors the picture from the point
  
  
  
  1.24.2.1  +0 -24     eda/geda/gaf/libgeda/src/o_pin_basic.c
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: o_pin_basic.c
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/libgeda/src/o_pin_basic.c,v
  retrieving revision 1.24
  retrieving revision 1.24.2.1
  diff -u -b -r1.24 -r1.24.2.1
  --- o_pin_basic.c	7 Dec 2006 04:24:18 -0000	1.24
  +++ o_pin_basic.c	27 Dec 2006 19:48:11 -0000	1.24.2.1
  @@ -594,30 +594,6 @@
    *  \par Function Description
    *
    */
  -void o_pin_mirror(TOPLEVEL *w_current,
  -		  int centerx, int centery, OBJECT *object)
  -{
  -  int world_centerx, world_centery;
  -
  -  SCREENtoWORLD(w_current, centerx, centery, 
  -                &world_centerx,
  -                &world_centery);  
  -
  -  /* translate object to origin */
  -  o_pin_translate_world(w_current, -world_centerx, -world_centery, object);
  -
  -  object->line->x[0] = -object->line->x[0];
  -
  -  object->line->x[1] = -object->line->x[1];
  -
  -  o_pin_translate_world(w_current, world_centerx, world_centery, object);
  -}
  -
  -/*! \todo Finish function documentation!!!
  - *  \brief
  - *  \par Function Description
  - *
  - */
   void o_pin_mirror_world(TOPLEVEL *w_current,
   			int world_centerx, int world_centery, OBJECT *object)
   {
  
  
  
  1.25.2.1  +0 -16     eda/geda/gaf/libgeda/src/o_text_basic.c
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: o_text_basic.c
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/libgeda/src/o_text_basic.c,v
  retrieving revision 1.25
  retrieving revision 1.25.2.1
  diff -u -b -r1.25 -r1.25.2.1
  --- o_text_basic.c	17 Dec 2006 04:14:07 -0000	1.25
  +++ o_text_basic.c	27 Dec 2006 19:48:11 -0000	1.25.2.1
  @@ -2452,19 +2452,3 @@
     o_text_recreate(w_current, object);
   }
   
  -/*! \todo Finish function documentation!!!
  - *  \brief
  - *  \par Function Description
  - *
  - */
  -void o_text_mirror(TOPLEVEL *w_current,
  -		   int centerx, int centery, OBJECT *object)
  -{
  -  int world_centerx, world_centery;
  -
  -  SCREENtoWORLD(w_current, centerx, centery,
  -                &world_centerx,
  -                &world_centery);
  -
  -  o_text_mirror_world(w_current, world_centerx, world_centery, object);
  -}
  
  
  


_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs