Changeset 2195
- Timestamp:
- Jan 10, 2006, 4:36:37 PM (19 years ago)
- Location:
- inundation/pyvolution
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/pyvolution/shallow_water.py
r2194 r2195 120 120 self.visualiser.coloring['stage'] = True 121 121 self.visualiser.qcolor['stage'] = (0.0, 0.0, 0.8) 122 self.visualiser.start()123 122 124 123 def check_integrity(self): … … 205 204 #Initial update of vertex and edge values before any storage 206 205 #and or visualisation 207 #self.distribute_to_vertices_and_edges()208 s = '''for x in range(5):209 self.distribute_to_vertices_and_edges()'''210 global profiler211 profiler = profiler.runctx(s, globals(), locals())206 self.distribute_to_vertices_and_edges() 207 #s = '''for x in range(5): 208 # self.distribute_to_vertices_and_edges()''' 209 # global profiler 210 # profiler = profiler.runctx(s, globals(), locals()) 212 211 213 212 #Initialise real time viz if requested 214 if self.visualise is True and self.time == 0.0 :213 if self.visualise is True and self.time == 0.0 and self.visualiser is None: 215 214 #pass 216 215 #import realtime_visualisation_new as visualise 217 216 #visualise.create_surface(self) 218 #self.initialise_visualiser() 219 self.visualiser.setup_all() 220 self.visualiser.update_timer() 217 self.initialise_visualiser() 218 #self.visualiser.update_timer() 219 print "Warning: Enabling the visualiser with domain.visualise is not" 220 print "recommended. Controlling the visualiser manually allows for much better" 221 print "control over visualiser parameters." 222 223 if self.visualise is True: 224 self.visualiser.start() 221 225 222 226 #Store model data, e.g. for visualisation -
inundation/pyvolution/vtk_realtime_visualiser.py
r2194 r2195 164 164 165 165 self.renderer.AddActor(actor) 166 167 def update_all(self):168 pass169 170 def update_timer(self):171 pass172 166 173 167 def handle_messages(self):
Note: See TracChangeset
for help on using the changeset viewer.