wGMw [main]

class wGMw

  a window object with extra methods simplifying the display
  of GeoMaestro events and projections
  it is notably used by the main GUI and the Toys
See: wGMtoy wfenev
Related topics: GUI graphics

Documented methods: 
resize
visible
autobornes
setbornes
setborne
bornes
xecran
yecran
decran
pecran
xgeo
ygeo
dgeo
pgeo
rapp_egm
rapp_gme
method .resize(...)
the resize method of wGMw accept "invisible" as argument this will prevent the windows to be redrawed, until it is resized again (with no argument or with a xy() array, as usual)
See: .visible

method .visible()
returns 1 if the window is visible, 0 if it is invisible
See: .resize

method .autobornes({ev {,minsz}}) 
sets the scene area covered by the window so that: - all events in scene ev are displayed - the area fully covers minsz (a xy() array) if ev is not present, it defaults to Ev
See: .setbornes .setborne .bornes

method .setbornes(sz)
sets the covered scene area to sz
See: .autobornes .setborne .bornes

method .setborne(f, val)
sets the boundary f of the covered scene area to val f can be "x0", "y0", "x1" or "y1"
See: .autobornes .setbornes .bornes

method .bornes()
returns the covered scene area (a xy() array) other methods are: .gmxmax() returns the upper x boundary .gmxmin() returns the lower x boundary .gmymax() returns the upper y boundary .gmymin() returns the lower y boundary .gmwidth() returns the area width .gmheight() returns the area height
See: .autobornes .setbornes .setborne

method .xecran(xev)
returns the x screen value corresponding to the xev scene value
See: .yecran .decran .pecran

method .yecran(yev)
returns the y screen value corresponding to the yev scene value
See: .xecran .decran .pecran

method .decran(d)
returns the pixel distance corresponding to the scene distance d
See: .xecran .yecran .pecran

method .pecran(p)
returns the screen point (pixel) corresponding to the scene point p
See: .xecran .yecran .decran
Related topics: point

method .xgeo(xec {, mode_arrondi})
returns the x scene value corresponding to the xec screen value if mode_arrondi is 1, the result is rounded with accuracy 0.0001
See: .ygeo .dgeo .pgeo

method .ygeo(yec {, mode_arrondi})
returns the y scene value corresponding to the yec screen value if mode_arrondi is 1, the result is rounded with accuracy 0.0001
See: .xgeo .dgeo .pgeo

method .dgeo(d)
returns the scene distance corresponding to the pixel distance d
See: .xgeo .ygeo .pgeo

method .pgeo(p)
returns the scene point corresponding to the screen point (pixel) p
See: .xgeo .ygeo .dgeo
Related topics: point

method .rapp_egm()
returns the ratio (screen scale)/(scene scale)
See: .rapp_gme

method .rapp_gme()
returns the ratio (scene scale)/(screen scale)
See: .rapp_egm


wGMw [main]