[vtkusers] How to access vtkAssemblyPath list after a pick

Daniel Sidobre daniel.sidobre at laas.fr
Wed May 25 12:09:52 EDT 2005


       Hi,

    I use a vtkCellPicker and get a vtkAssemblyPath but I can only
    acces the first and the last element. The getNextNode doesn't
    works for me. Does somebody know how to do in tcl ?

    A example :

    
vtk [~/VTK/VTK2/gb]picker Pick 710 600 0 ren2
 vtkTestCallBack: 
   assembly Robot
   GetPath vtkTemp45
vtk [~/VTK/VTK2/gb]vtkTemp45 Print
vtkAssemblyPath (0x9fa1120)
  Debug: Off
  Modified Time: 359903
  Reference Count: 2
  Registered Observers:
    vtkObserver (0x9f87128)
      Event: 2
      EventName: DeleteEvent
      Command: 0x9f95df0
      Priority: 0
      Tag: 1
  Number Of Items: 5

vtk [~/VTK/VTK2/gb]vtkTemp45 GetFirstNode
vtkTemp46
vtk [~/VTK/VTK2/gb]vtkTemp45 GetLastNode
vtkTemp47
vtk [~/VTK/VTK2/gb]vtkTemp46 GetProp
Robot
vtk [~/VTK/VTK2/gb]vtkTemp47 GetProp
matcam1Actor
vtk [~/VTK/VTK2/gb]vtkTemp45 GetNextNode
vtk [~/VTK/VTK2/gb]


Here I can't get an answer !

But as you can see below other nodes exist :

vtk [~/VTK/VTK2/gb]vtkTemp45 DeleteLastNode
vtk [~/VTK/VTK2/gb]vtkTemp45 GetLastNode
vtkTemp48
vtk [~/VTK/VTK2/gb]vtkTemp48 GetProp
Mat1

	Thanks,

	Daniel.
--
	SIDOBRE Daniel                    daniel at laas.fr
	CNRS - LAAS                       tel: +33 (0)5 61 33 69 68
	7 avenue du Colonel Roche         fax: +33 (0)5 61 33 64 55
	31077 Toulouse - FRANCE           http://www.laas.fr/~daniel/



More information about the vtkusers mailing list