Skip to content
  • Robert M. O'Bara's avatar
    ENH: Added Ternary Visibility Badge Support · 5fcc7c52
    Robert M. O'Bara authored
    Created two new badges - one for controlling a phrase's geometric visibility
    and another for controlling / displaying the visibility of the phrase's
    children, i.e. hierarchy.
    
    The :smtk:`geometric visibility badge <smtk::extension::paraview::appcomponents::GeometricVisibilityBadge>`
    is binary and can have the following values:
    
      * *Visible* if the object's geometry is visible
      * *Invisible* if the object's geometry is invisible
    
    The :smtk:`hierarchical visibility badge <smtk::extension::paraview::appcomponents::HierarchicalVisibilityBadge>`is
    ternary and can have the following values:
    
      * *Visible* if all of its children are visible
      * *Invisible* if all of its children are invisible
      * *Neither* if some of its children are marked *Neither* and/or not all of its children are visible
    
    The user can set all of the phrase's descendants' visibilities by toggling the Hierarchical Badge.
    
    **Note:** The geometric visibility badge of phrase that corresponds to a resource will
    effect the ParaView Representation Visibility.
    
    **Note:** The hierarchical visibility badge of an object does not affect the geometric visibility of the object itself.
    
    Also made the following changes:
    
    * Replaced uses of cerr with Logger in qtUIManager
    * Put `PhraseModel::triggerDataChanged()` on a timer in order to prevent overly frequent redraws by rate-limiting observers to be fired at most 10 times per second.
    * Fixed Mac Chrono Issue - Needed to replace std::this_thread::sleep_for(100ms); with std::this_thread::sleep_for(std::chrono::milliseconds(100));
    5fcc7c52