parameters: (self)
docstring: Connected to 'create path' button. It allows to:
        - compute the path
        - create the associated model
docstring_summary: Connected to 'create path' button. It allows to:
        - compute the path
        - create the associated model
docstring_tokens: Connected to create path button . It allows to : - compute the path - create the associated model
function: def onCreatePathButtonClicked(self):
      """Connected to 'create path' button. It allows to:
        - compute the path
        - create the associated model"""
  
      fiducialsNode = self.inputFiducialsNodeSelector.currentNode()
      outputPathNode = self.outputPathNodeSelector.currentNode()
      print("Calculating Path...")
      result = EndoscopyComputePath(fiducialsNode)
      print("-> Computed path contains %d elements" % len(result.path))
  
      print("Create Model...")
      model = EndoscopyPathModel(result.path, fiducialsNode, outputPathNode)
      print("-> Model created")
  
      # Update frame slider range
      self.frameSlider.maximum = len(result.path) - 2
  
      # Update flythrough variables
      self.camera = self.camera
      self.transform = model.transform
      self.pathPlaneNormal = model.planeNormal
      self.path = result.path
  
      # Enable / Disable flythrough button
      self.flythroughCollapsibleButton.enabled = len(result.path) > 0
function_tokens: def onCreatePathButtonClicked ( self ) : fiducialsNode = self . inputFiducialsNodeSelector . currentNode ( ) outputPathNode = self . outputPathNodeSelector . currentNode ( ) print ( "Calculating Path..." ) result = EndoscopyComputePath ( fiducialsNode ) print ( "-> Computed path contains %d elements" % len ( result . path ) ) print ( "Create Model..." ) model = EndoscopyPathModel ( result . path , fiducialsNode , outputPathNode ) print ( "-> Model created" ) # Update frame slider range self . frameSlider . maximum = len ( result . path ) - 2 # Update flythrough variables self . camera = self . camera self . transform = model . transform self . pathPlaneNormal = model . planeNormal self . path = result . path # Enable / Disable flythrough button self . flythroughCollapsibleButton . enabled = len ( result . path ) > 0