91 |
End |
End |
92 |
Enable TEXTURE_2D |
Enable TEXTURE_2D |
93 |
""" % { "w": screensize[0], "h": screensize[1] } ) ) |
""" % { "w": screensize[0], "h": screensize[1] } ) ) |
94 |
fps = vs.coords.ortho(0, 10, 10, 20, 30.5, 30.5) |
#fps = vs.coords.ortho(0, 10, 10, 20, 30.5, 30.5) |
95 |
vs.matcher.add(fps, "FPS") |
#vs.matcher.add(fps, "FPS") |
96 |
vs.map.put(fps_text, fps, 0) |
#vs.map.put(fps_text, fps, 0) |
97 |
|
|
98 |
style = gzz.client.GraphicsAPI.getInstance().getTextStyle("SansSerif", java.awt.Font.PLAIN, 10) |
style = gzz.client.GraphicsAPI.getInstance().getTextStyle("SansSerif", java.awt.Font.PLAIN, 10) |
99 |
contview = gzz.view.LinebrokenCellContentView(style) |
contview = gzz.view.LinebrokenCellContentView(style) |
155 |
pass |
pass |
156 |
|
|
157 |
self.eye = 0.2 |
self.eye = 0.2 |
158 |
self.buoyscale = 800 |
self.buoyscale = 1300 |
159 |
|
|
160 |
def add(self, vs, importance, floater, |
def add(self, vs, importance, floater, |
161 |
maincs, globalview = None, |
maincs, globalview = None, |
204 |
vs.matcher.addSub(cs1, cs1_nad, "N") |
vs.matcher.addSub(cs1, cs1_nad, "N") |
205 |
cs1 = cs1_nad |
cs1 = cs1_nad |
206 |
|
|
|
|
|
|
# Then, make the buoy coordsys |
|
|
|
|
|
# cs1 = vs.coords.buoyOnCircle(main_end_cs, *buoyparams) |
|
|
# vs.matcher.add(cs1, cell.getId()+"__buo") |
|
|
|
|
207 |
if hasattr(self, 'pctr'): |
if hasattr(self, 'pctr'): |
208 |
cs1_zoom= vs.coords.distort(cs1, 0, 0, self.eye, self.eye, self.buoyscale, self.buoyscale) |
cs1_zoom= vs.coords.distort(cs1, 0, 0, self.eye, self.eye, self.buoyscale, self.buoyscale) |
209 |
vs.matcher.add(cs1_zoom, cell.getId()+"__bulg") |
vs.matcher.add(cs1_zoom, cell.getId()+"__bulg") |
244 |
""")) |
""")) |
245 |
|
|
246 |
vs.map.put(lineconn, main_end_cs, link_end_cs) |
vs.map.put(lineconn, main_end_cs, link_end_cs) |
247 |
vs.map.put(filletconn, main_whole_cs, link_whole_cs) |
|
248 |
|
# vs.map.put(filletconn, main_whole_cs, link_whole_cs) |
249 |
|
|
250 |
vs.map.put(GLCache.getCallList(""" |
vs.map.put(GLCache.getCallList(""" |
251 |
PopAttrib |
PopAttrib |