32 |
|
|
33 |
from vob.putil.demokeys import * |
from vob.putil.demokeys import * |
34 |
|
|
35 |
|
from org.fenfire.spanimages.gl import papermakers |
36 |
|
|
37 |
pool = org.nongnu.storm.impl.TransientPool(java.util.HashSet()) |
pool = org.nongnu.storm.impl.TransientPool(java.util.HashSet()) |
38 |
myalph = alph.impl.StormAlph(pool) |
myalph = alph.impl.StormAlph(pool) |
39 |
sc = myalph.addFile(java.io.File('../alph/testdata/test1.pdf'), 'application/pdf') |
sc = myalph.addFile(java.io.File('../alph/testdata/test1.pdf'), 'application/pdf') |
41 |
|
|
42 |
class Scene: |
class Scene: |
43 |
def __init__(self): |
def __init__(self): |
44 |
|
w = vob.putil.demowindow.w |
45 |
|
self.types = [ |
46 |
|
papermakers.white(w), |
47 |
|
papermakers.fancyBlend(w), |
48 |
|
papermakers.fancyHalo(w), |
49 |
|
papermakers.fancyBlur(w), |
50 |
|
] |
51 |
self.key = KeyPresses( |
self.key = KeyPresses( |
52 |
self, |
self, |
53 |
Toggle("blur", 0, "Blur bg", "b"), |
ListIndex("type", "types", 0, "Papermaker", "P", "p"), |
54 |
SlideLin("x", 0, 50, "x coord", "Right", "Left"), |
SlideLin("x", 0, 50, "x coord", "Right", "Left"), |
55 |
SlideLin("y", 0, 50, "y coord", "Down", "Up"), |
SlideLin("y", 0, 50, "y coord", "Down", "Up"), |
56 |
SlideLog("scale", 1, "scale", "-", "+"), |
SlideLog("scale", 1, "scale", "-", "+"), |
60 |
|
|
61 |
scaled = vs.orthoCS(0, "X", 0, self.x, self.y, self.scale, self.scale) |
scaled = vs.orthoCS(0, "X", 0, self.x, self.y, self.scale, self.scale) |
62 |
|
|
63 |
layout = ff.view.PageSpanLayout(enfMaker.makeEnfilade(sc.getCurrent())) |
layout = ff.view.PageSpanLayout( |
64 |
ff.util.PageSpanPaper.paperMill = vob.gl.PaperMill.getInstance() |
sc.getCurrent(), |
65 |
ff.util.PageSpanPaper.paperMillWindow = vob.putil.demowindow.w |
self.types[self.type] |
66 |
|
) |
67 |
#layout.useBg = 0 |
#layout.useBg = 0 |
68 |
|
|
69 |
ff.util.PageSpanPaper.withBlur = self.blur |
ff.util.PageSpanPaper.withBlur = self.blur |