Ignore:
Timestamp:
Nov 21, 2006, 8:36:47 PM (18 years ago)
Author:
jack
Message:

Moved the vpython visualiser to obsolete_code and cleared out things that call it from other code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/advection/advection.py

    r3928 r4026  
    7979        self.default_order = self.order = 1
    8080
    81         #Realtime visualisation
    82         self.visualiser = None
    83         self.visualise  = False
    84         self.visualise_color_stage = False
    85         self.visualise_stage_range = 1.0
    86         self.visualise_timer = True
    87         self.visualise_range_z = None
    88 
    89 
    9081        self.smooth = True
    91 
    92     def initialise_visualiser(self,scale_z=1.0,rect=None):
    93         #Realtime visualisation
    94         if self.visualiser is None:
    95             from realtime_visualisation_new import Visualiser
    96  #           from vtk_realtime_visualiser import Visualiser
    97             self.visualiser = Visualiser(self,scale_z,rect)
    98         self.visualise = True
    99 
    10082
    10183    def check_integrity(self):
     
    373355        """
    374356
    375         #Initialise real time viz if requested
    376         if self.visualise is True and self.time == 0.0:
    377             #pass
    378             #import realtime_visualisation_new as visualise
    379             #visualise.create_surface(self)
    380             self.initialise_visualiser()
    381             self.visualiser.setup_all()
    382             self.visualiser.update_timer()
    383 
    384 
    385357        #Call basic machinery from parent class
    386358        for t in Generic_domain.evolve(self,
     
    390362                                       skip_initial_step=skip_initial_step):
    391363
    392 
    393 
    394 
    395             #Real time viz
    396             if self.visualise is True:
    397                 #pass
    398                 self.visualiser.update_all()
    399                 self.visualiser.update_timer()
    400 
    401 
    402364            #Pass control on to outer loop for more specific actions
    403365            yield(t)
Note: See TracChangeset for help on using the changeset viewer.