Changeset 2195


Ignore:
Timestamp:
Jan 10, 2006, 4:36:37 PM (19 years ago)
Author:
jack
Message:

Fixed problems with an alternate way of accessing the visualiser.

Location:
inundation/pyvolution
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • inundation/pyvolution/shallow_water.py

    r2194 r2195  
    120120            self.visualiser.coloring['stage'] = True
    121121            self.visualiser.qcolor['stage'] = (0.0, 0.0, 0.8)
    122         self.visualiser.start()
    123122
    124123    def check_integrity(self):
     
    205204        #Initial update of vertex and edge values before any storage
    206205        #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 profiler
    211         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())
    212211
    213212        #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:
    215214            #pass
    216215            #import realtime_visualisation_new as visualise
    217216            #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()
    221225
    222226        #Store model data, e.g. for visualisation
  • inundation/pyvolution/vtk_realtime_visualiser.py

    r2194 r2195  
    164164
    165165            self.renderer.AddActor(actor)
    166 
    167     def update_all(self):
    168         pass
    169 
    170     def update_timer(self):
    171         pass
    172166
    173167    def handle_messages(self):
Note: See TracChangeset for help on using the changeset viewer.