parameters: (self)
return_statement: return parameterNode
docstring: Return the first available parameter node for this module
      If no parameter nodes are available for this module then a new one is created.
docstring_summary: Return the first available parameter node for this module
      If no parameter nodes are available for this module then a new one is created.
docstring_tokens: Return the first available parameter node for this module If no parameter nodes are available for this module then a new one is created .
function: def getParameterNode(self):
      """
      Return the first available parameter node for this module
      If no parameter nodes are available for this module then a new one is created.
      """
      numberOfScriptedModuleNodes =  slicer.mrmlScene.GetNumberOfNodesByClass("vtkMRMLScriptedModuleNode")
      for nodeIndex in range(numberOfScriptedModuleNodes):
        parameterNode  = slicer.mrmlScene.GetNthNodeByClass( nodeIndex, "vtkMRMLScriptedModuleNode" )
        if parameterNode.GetAttribute("ModuleName") == self.moduleName:
          return parameterNode
      # no parameter node was found for this module, therefore we add a new one now
      parameterNode = self.createParameterNode()
      slicer.mrmlScene.AddNode(parameterNode)
      return parameterNode
function_tokens: def getParameterNode ( self ) : numberOfScriptedModuleNodes = slicer . mrmlScene . GetNumberOfNodesByClass ( "vtkMRMLScriptedModuleNode" ) for nodeIndex in range ( numberOfScriptedModuleNodes ) : parameterNode = slicer . mrmlScene . GetNthNodeByClass ( nodeIndex , "vtkMRMLScriptedModuleNode" ) if parameterNode . GetAttribute ( "ModuleName" ) == self . moduleName : return parameterNode # no parameter node was found for this module, therefore we add a new one now parameterNode = self . createParameterNode ( ) slicer . mrmlScene . AddNode ( parameterNode ) return parameterNode