gzz.view
Class PlainVanishing

gzz.view.View gzz.view.BFRaster gzz.view.PlainVanishing gzz.view.VobVanishingClient gzz.view.VanishingClient ../../../pegboard/1018/PEG_1018.gen.html#vanishingview vanishingview_small
java.lang.Object
  |
  +--gzz.view.PlainVanishing

public class PlainVanishing
extends java.lang.Object

A plain (no-constraint) version of vanishing view, useful as a building block for imagespan views.

This class uses the VanishingClient interface to enquire about its context.

If you want to add anything to this class, PLEASE check with Tuomas first. He is very angry about having had to clean this beautiful, simple implementation once.


Field Summary
static boolean dbg
           
 float initmul
           
 BFRaster raster
           
static java.lang.String rcsid
           
 float[] shrink
           
 float xgapmult
           
 float ygapmult
           
 
Constructor Summary
PlainVanishing()
           
 
Method Summary
protected  void connect(int index, int rdepth)
           
protected static void p(java.lang.String s)
           
protected static void pa(java.lang.String s)
           
protected  void paint(int index, float x, float y, float d, float rdepth, float fract, float xalign, float yalign, float pdx, float pdy, float rot)
          Go through the raster produced in render recursively and paint.
 void render(VanishingClient client, ViewContext context, float px, float py)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rcsid

public static final java.lang.String rcsid
See Also:
Constant Field Values

dbg

public static boolean dbg

shrink

public float[] shrink

initmul

public float initmul

xgapmult

public float xgapmult

ygapmult

public float ygapmult

raster

public BFRaster raster
Constructor Detail

PlainVanishing

public PlainVanishing()
Method Detail

p

protected static void p(java.lang.String s)

pa

protected static void pa(java.lang.String s)

render

public void render(VanishingClient client,
                   ViewContext context,
                   float px,
                   float py)

paint

protected void paint(int index,
                     float x,
                     float y,
                     float d,
                     float rdepth,
                     float fract,
                     float xalign,
                     float yalign,
                     float pdx,
                     float pdy,
                     float rot)
Go through the raster produced in render recursively and paint. The recursive passthrough is the most convenient for vanishing-type views.


connect

protected void connect(int index,
                       int rdepth)