parameters: (self, **kwargs)
docstring: Converts timestamp to a text string for display. (override)
docstring_summary: Converts timestamp to a text string for display. (override)
docstring_tokens: Converts timestamp to a text string for display . ( override )
function: def update(self, **kwargs):
          """
          Converts timestamp to a text string for display. (override)
          """
          super(TimeAnnotationSource, self).update(**kwargs)
  
          # The time to display
          time = self.getOption('time')
  
          # Build the text string
          text = []
          if self.isOptionValid('prefix'):
              text.append(self.getOption('prefix'))
  
          if self.isOptionValid('timedelta') and self.getOption('timedelta'):
              t = datetime.timedelta(seconds=time)
              text.append(str(t))
          else:
              text.append(str(time))
  
          if self.isOptionValid('suffix'):
              text.append(self.getOption('suffix'))
  
          self._vtkmapper.GetTextProperty().Modified()
          self._vtkmapper.SetInput(' '.join(text))
function_tokens: def update ( self , * * kwargs ) : super ( TimeAnnotationSource , self ) . update ( * * kwargs ) # The time to display time = self . getOption ( 'time' ) # Build the text string text = [ ] if self . isOptionValid ( 'prefix' ) : text . append ( self . getOption ( 'prefix' ) ) if self . isOptionValid ( 'timedelta' ) and self . getOption ( 'timedelta' ) : t = datetime . timedelta ( seconds = time ) text . append ( str ( t ) ) else : text . append ( str ( time ) ) if self . isOptionValid ( 'suffix' ) : text . append ( self . getOption ( 'suffix' ) ) self . _vtkmapper . GetTextProperty ( ) . Modified ( ) self . _vtkmapper . SetInput ( ' ' . join ( text ) )