/[gzz]/gzz/doc/pegboard/1009/PEG_1009.rst
ViewVC logotype

Diff of /gzz/doc/pegboard/1009/PEG_1009.rst

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.9 by tjl, Sun Oct 6 17:24:00 2002 UTC revision 1.10 by tjl, Sun Oct 6 18:27:59 2002 UTC
# Line 14  Transformations Line 14  Transformations
14  Add into VobCoorder the following convenience functions::  Add into VobCoorder the following convenience functions::
15    
16      public int translate(int into, float x, float y) {      public int translate(int into, float x, float y) {
17          return coordsys(into, 0, x, y, 1, 1);          return ortho(into, 0, x, y, 1, 1);
18      }      }
19    
20      public int translate(int into, float x, float y, float z) {      public int translate(int into, float x, float y, float z) {
21          return coordsys(into, z, x, y, 1, 1);          return ortho(into, z, x, y, 1, 1);
22      }      }
23    
24      public int scale(int into, float x, float y) {      public int scale(int into, float x, float y) {
25          return coordsys(into, 0, 0, 0, x, y);          return ortho(into, 0, 0, 0, x, y);
26      }      }
27    
28    and rename coordsys into ortho
29    
30    
31  .. IMPORTANT::  .. IMPORTANT::
32      Should 3D scaling be here as well?      Should 3D scaling be here as well?
33            
# Line 69  the functions must check ``instanceof`` Line 72  the functions must check ``instanceof``
72  NotAffineVobCoorderException, which is a subclass of  NotAffineVobCoorderException, which is a subclass of
73  UnsupportedOperationException.  UnsupportedOperationException.
74    
75    For all of the above calls which create coordinate systems, have also
76    setParameter calls. This means, for x in translate, scale, rotate,
77    orthoCoordsys, affineCoordsys, the coorder should also have a method
78    
79        abstract public void setXParams(int id, ...);
80    
81    for example,
82    
83        abstract public int ortho(int into, float x, float y, float w, float h);
84        abstract public void setOrthoParams(int id, float x, float y, float w, float h);
85    
86    
87  Transforming points into coordinate systems  Transforming points into coordinate systems
88  -------------------------------------------  -------------------------------------------
89    

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26