parameters: (self, pickFrustum)
return_statement: return results
docstring: Find closest point in scene rendered through 'pickFrustum'.
          Returns a sextuple:
            selectedPoint, selectedNormal, selectedPrimPath,
            selectedInstancerPath, selectedInstanceIndex, selectedInstancerContext
docstring_summary: Find closest point in scene rendered through 'pickFrustum'.
          Returns a sextuple:
            selectedPoint, selectedNormal, selectedPrimPath,
            selectedInstancerPath, selectedInstanceIndex, selectedInstancerContext
docstring_tokens: Find closest point in scene rendered through pickFrustum . Returns a sextuple : selectedPoint selectedNormal selectedPrimPath selectedInstancerPath selectedInstanceIndex selectedInstancerContext
function: def pick(self, pickFrustum):
          '''
          Find closest point in scene rendered through 'pickFrustum'.
          Returns a sextuple:
            selectedPoint, selectedNormal, selectedPrimPath,
            selectedInstancerPath, selectedInstanceIndex, selectedInstancerContext
          '''
          renderer = self._getRenderer()
          if not self._dataModel.stage or not renderer:
              # error has already been issued
              return None, None, Sdf.Path.emptyPath, None, None, None
  
          # this import is here to make sure the create_first_image stat doesn't
          # regress..
          from OpenGL import GL
  
          # Need a correct OpenGL Rendering context for FBOs
          self.makeCurrent()
  
          # update rendering parameters
          self._renderParams.frame = self._dataModel.currentFrame
          self._renderParams.complexity = self._dataModel.viewSettings.complexity.value
          self._renderParams.drawMode = self._renderModeDict[self._dataModel.viewSettings.renderMode]
          self._renderParams.showGuides = self._dataModel.viewSettings.displayGuide
          self._renderParams.showProxy = self._dataModel.viewSettings.displayProxy
          self._renderParams.showRender = self._dataModel.viewSettings.displayRender
          self._renderParams.forceRefresh = self._forceRefresh
          self._renderParams.cullStyle = \
              (UsdImagingGL.CullStyle.CULL_STYLE_BACK_UNLESS_DOUBLE_SIDED
                     if self._dataModel.viewSettings.cullBackfaces
                     else UsdImagingGL.CullStyle.CULL_STYLE_NOTHING)
          self._renderParams.gammaCorrectColors = False
          self._renderParams.enableIdRender = True
          self._renderParams.enableSampleAlphaToCoverage = False
          self._renderParams.enableSceneMaterials = self._dataModel.viewSettings.enableSceneMaterials
          self._renderParams.enableSceneLights = self._dataModel.viewSettings.enableSceneLights
  
          results = renderer.TestIntersection(
                  pickFrustum.ComputeViewMatrix(),
                  pickFrustum.ComputeProjectionMatrix(),
                  self._dataModel.stage.GetPseudoRoot(), self._renderParams)
          if Tf.Debug.IsDebugSymbolNameEnabled(DEBUG_CLIPPING):
              print("Pick results = {}".format(results))
  
          return results
function_tokens: def pick ( self , pickFrustum ) : renderer = self . _getRenderer ( ) if not self . _dataModel . stage or not renderer : # error has already been issued return None , None , Sdf . Path . emptyPath , None , None , None # this import is here to make sure the create_first_image stat doesn't # regress.. from OpenGL import GL # Need a correct OpenGL Rendering context for FBOs self . makeCurrent ( ) # update rendering parameters self . _renderParams . frame = self . _dataModel . currentFrame self . _renderParams . complexity = self . _dataModel . viewSettings . complexity . value self . _renderParams . drawMode = self . _renderModeDict [ self . _dataModel . viewSettings . renderMode ] self . _renderParams . showGuides = self . _dataModel . viewSettings . displayGuide self . _renderParams . showProxy = self . _dataModel . viewSettings . displayProxy self . _renderParams . showRender = self . _dataModel . viewSettings . displayRender self . _renderParams . forceRefresh = self . _forceRefresh self . _renderParams . cullStyle = ( UsdImagingGL . CullStyle . CULL_STYLE_BACK_UNLESS_DOUBLE_SIDED if self . _dataModel . viewSettings . cullBackfaces else UsdImagingGL . CullStyle . CULL_STYLE_NOTHING ) self . _renderParams . gammaCorrectColors = False self . _renderParams . enableIdRender = True self . _renderParams . enableSampleAlphaToCoverage = False self . _renderParams . enableSceneMaterials = self . _dataModel . viewSettings . enableSceneMaterials self . _renderParams . enableSceneLights = self . _dataModel . viewSettings . enableSceneLights results = renderer . TestIntersection ( pickFrustum . ComputeViewMatrix ( ) , pickFrustum . ComputeProjectionMatrix ( ) , self . _dataModel . stage . GetPseudoRoot ( ) , self . _renderParams ) if Tf . Debug . IsDebugSymbolNameEnabled ( DEBUG_CLIPPING ) : print ( "Pick results = {}" . format ( results ) ) return results