W32PickOop.ew

Platform: Euphoria4 + Win32Lib + EuCanOOP


There are several ways you can use the procedures and functions provided by GSL2014.ew for handling vector images (PolyPics) of the sort produced by the drawing program "DrawBust.exw".

  1. Using them directly under GSL2014.ew: This way is the most flexible from the programming point of view. You have complete control over what happens, but you have to deal with relatively complicated graphic structures and to program in detail how they behave.
  2. Using OOP (e.g. EuCanOOP + W32PicOop.ew): W32PicOop.ew provides an environment in which the nitty-gritty of image drawing and manipulation is encapsulated in Classes and Methods created under EuCanOOP.e. The flexibility is less but it is much easier to get moving images onto the screen. The hardest part is usually the initial step of setting up the images and creating the W32PicOop.ew instances of objects. W32PicOop.ew provides Classes and Method(s) for drawing and manipulating linear, circular and sinusoidal motion of images; There are 2 main groups of movement:
    1. Movement in which PolyPics to be drawn are moved according to user-supplied parameters, which provide the "physics" of the movement. SEE Classes "2DMove", "2DSineMove", "2DLinearMove", "2DCircleMove"
    2. Movement in which PolyPics to be drawn are moved along a user- supplied Track. This is the easiest type of movement to use. SEE Class "2DPathMove"

The objects are moved in a "real world" created with W32PicOop.ew. The actual drawing is produced via GSL2014.ew.

For economy, the PolyPics your program supplies should be in their canonical position (as near as possible centered on {0,0}). They are translated from there to their display positions for display. Thus in the program TargetTeeze, though there are lots of targets on screen, they all originate from just ONE PolyPic picture which never leaves its home position at {0,0}.

For more information consult:
  1. The code in the Demo programs
  2. The code in file W32PickOop.ew
  3. The package EuCanOop for general information about EuCanOop.
    F. Mangan (2008-14) - ManganFred6@gmail.com