parameters: (self,visibility)
docstring: Set whether to display visual objects or not
docstring_summary: Set whether to display visual objects or not
docstring_tokens: Set whether to display visual objects or not
function: def displayVisuals(self,visibility):
          """Set whether to display visual objects or not"""
          gui = self.viewer.gui
          self.display_visuals = visibility
          if self.visual_model is None: return
  
          if visibility:
              visibility_mode = "ON"
          else:
              visibility_mode = "OFF"
  
          for visual in self.visual_model.geometryObjects:
              nodeName = self.getViewerNodeName(visual,pin.GeometryType.VISUAL)
              gui.setVisibility(nodeName,visibility_mode)
function_tokens: def displayVisuals ( self , visibility ) : gui = self . viewer . gui self . display_visuals = visibility if self . visual_model is None : return if visibility : visibility_mode = "ON" else : visibility_mode = "OFF" for visual in self . visual_model . geometryObjects : nodeName = self . getViewerNodeName ( visual , pin . GeometryType . VISUAL ) gui . setVisibility ( nodeName , visibility_mode )