gzz.view
Class PageSpanCellView.Layout

java.lang.Object
  |
  +--gzz.view.PageSpanCellView.Layout
Enclosing class:
PageSpanCellView

public class PageSpanCellView.Layout
extends java.lang.Object

A single enfilade laid out on the plane.


Field Summary
 float h
           
 float w
           
 
Constructor Summary
PageSpanCellView.Layout(Enfilade1D enf)
           
PageSpanCellView.Layout(PageSpan sp)
           
 
Method Summary
 float[] getExtents(PageSpan s, float[] xywh_out)
          Get the extents (in the output coordinates) of a given page span.
 void place(VobScene vs, int into, float importance, float pixelscale)
           
 void place(VobScene vs, int into, float importance, float pixelscale, int cullCS)
          Place this layout into the given coordinate system.
 void placeBoxed(VobScene vs, int into, float importance, float pixelscale)
          Place this layout strictly fitted into the given box.
 void request(float x, float y, float radius, float importanceAt, float importanceOutside, float pixelscale)
          Make a request for loading the textures into memory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

w

public float w

h

public float h
Constructor Detail

PageSpanCellView.Layout

public PageSpanCellView.Layout(Enfilade1D enf)

PageSpanCellView.Layout

public PageSpanCellView.Layout(PageSpan sp)
Method Detail

getExtents

public float[] getExtents(PageSpan s,
                          float[] xywh_out)
Get the extents (in the output coordinates) of a given page span. Currently, only the first intersecting page is used, but this may change.


place

public void place(VobScene vs,
                  int into,
                  float importance,
                  float pixelscale)

place

public void place(VobScene vs,
                  int into,
                  float importance,
                  float pixelscale,
                  int cullCS)
Place this layout into the given coordinate system. Note that the layout is not affected by the box size of the coordinate system.

Parameters:
cullCS - The coordinate system against which all objects should be culled.

placeBoxed

public void placeBoxed(VobScene vs,
                       int into,
                       float importance,
                       float pixelscale)
Place this layout strictly fitted into the given box. Note that this won't interpolate nicely to "place".


request

public void request(float x,
                    float y,
                    float radius,
                    float importanceAt,
                    float importanceOutside,
                    float pixelscale)
Make a request for loading the textures into memory.