parameters: ()
docstring: Like it says, just a simple example
docstring_summary: Like it says, just a simple example
docstring_tokens: Like it says just a simple example
function: def vtkRenderWidgetConeExample():
      """Like it says, just a simple example
      """
  
      from vtkmodules.vtkFiltersSources import vtkConeSource
      from vtkmodules.vtkRenderingCore import vtkActor, vtkPolyDataMapper, vtkRenderer
      # load implementations for rendering and interaction factory classes
      import vtkmodules.vtkRenderingOpenGL2
      import vtkmodules.vtkInteractionStyle
  
      # create root window
      root = tkinter.Tk()
  
      # create vtkTkRenderWidget
      pane = vtkTkRenderWidget(root,width=300,height=300)
  
      ren = vtkRenderer()
      pane.GetRenderWindow().AddRenderer(ren)
  
      cone = vtkConeSource()
      cone.SetResolution(8)
  
      coneMapper = vtkPolyDataMapper()
      coneMapper.SetInputConnection(cone.GetOutputPort())
  
      coneActor = vtkActor()
      coneActor.SetMapper(coneMapper)
  
      ren.AddActor(coneActor)
  
      # pack the pane into the tk root
      pane.pack()
  
      # start the tk mainloop
      root.mainloop()
function_tokens: def vtkRenderWidgetConeExample ( ) : from vtkmodules . vtkFiltersSources import vtkConeSource from vtkmodules . vtkRenderingCore import vtkActor , vtkPolyDataMapper , vtkRenderer # load implementations for rendering and interaction factory classes import vtkmodules . vtkRenderingOpenGL2 import vtkmodules . vtkInteractionStyle # create root window root = tkinter . Tk ( ) # create vtkTkRenderWidget pane = vtkTkRenderWidget ( root , width = 300 , height = 300 ) ren = vtkRenderer ( ) pane . GetRenderWindow ( ) . AddRenderer ( ren ) cone = vtkConeSource ( ) cone . SetResolution ( 8 ) coneMapper = vtkPolyDataMapper ( ) coneMapper . SetInputConnection ( cone . GetOutputPort ( ) ) coneActor = vtkActor ( ) coneActor . SetMapper ( coneMapper ) ren . AddActor ( coneActor ) # pack the pane into the tk root pane . pack ( ) # start the tk mainloop root . mainloop ( )