135 |
plane = Nodes.get(paperA) |
plane = Nodes.get(paperA) |
136 |
|
|
137 |
mainNode = ff.view.buoy.MainNode2D(plane, irregu) |
mainNode = ff.view.buoy.MainNode2D(plane, irregu) |
138 |
|
mainNode2 = ff.view.buoy.MainNode2D(plane, irregu) |
139 |
#mainNode = ff.view.buoy.MainNode2D(plane, paperview) |
#mainNode = ff.view.buoy.MainNode2D(plane, paperview) |
140 |
|
|
141 |
#connector = ff.view.buoy.PPConnector(fen, paperviewonly) |
#connector = ff.view.buoy.PPConnector(fen, paperviewonly) |
156 |
tconnector.pageImageScrollNodeType = ff.view.buoy.NodeType2DFull(pagescroll2d, ff.view.buoy.FisheyeMainNode2D.FisheyeMainNode2DFactory()) |
tconnector.pageImageScrollNodeType = ff.view.buoy.NodeType2DFull(pagescroll2d, ff.view.buoy.FisheyeMainNode2D.FisheyeMainNode2DFactory()) |
157 |
|
|
158 |
|
|
159 |
|
class DoubleGeometer: |
160 |
|
def place(self, vs): |
161 |
|
ctrx = vs.size.width / 2 |
162 |
|
ctry = vs.size.height * .485 # A *little* above real ctr |
163 |
|
|
164 |
|
mainsize = vs.size.width * .6 |
165 |
|
|
166 |
|
buoywidth = vs.size.width * .5 |
167 |
|
buoyheight = vs.size.height * .8 |
168 |
|
|
169 |
|
into1 = vs.orthoBoxCS(0, "FocusFrame1", 0, |
170 |
|
ctrx -.5*mainsize, .5 * ctry -.25*mainsize, |
171 |
|
1, 1, mainsize, .5*mainsize) |
172 |
|
|
173 |
|
into2 = vs.orthoBoxCS(0, "FocusFrame2", 0, |
174 |
|
ctrx -.5*mainsize, 1.5 * ctry -.25*mainsize, |
175 |
|
1, 1, mainsize, .5*mainsize) |
176 |
|
|
177 |
|
buoyinto1 = vs.orthoBoxCS(0, "BuoyFrame1", 0, |
178 |
|
ctrx -buoywidth/2, .5 * ctry -buoyheight/2, 1, 1, |
179 |
|
buoywidth, buoyheight) |
180 |
|
|
181 |
|
buoyinto2 = vs.orthoBoxCS(0, "BuoyFrame2", 0, |
182 |
|
ctrx -buoywidth/2, 1.5 * ctry -buoyheight/2, 1, 1, |
183 |
|
buoywidth, buoyheight) |
184 |
|
|
185 |
|
return [(into1, buoyinto1), (into2, buoyinto2)] |
186 |
|
|
187 |
|
|
188 |
class Scene(vob.buoy.buoymanager.MultiBuoyManager): |
class Scene(vob.buoy.buoymanager.MultiBuoyManager): |
189 |
def __init__(self): |
def __init__(self): |
190 |
vob.buoy.buoymanager.MultiBuoyManager.__init__(self, [mainNode], [ppconnector, tconnector], |
vob.buoy.buoymanager.MultiBuoyManager.__init__(self, |
191 |
vob.buoy.buoymanager.SingleGeometer()) |
[mainNode, mainNode2], [ppconnector, tconnector], |
192 |
|
DoubleGeometer()) |
193 |
|
|
194 |
currentScene = Scene() |
currentScene = Scene() |
195 |
|
|