[vtkusers] Picking question

Frank-André Siebert siebert at onco.uni-kiel.de
Mon Oct 13 04:51:36 EDT 2003


Dear vtk users, 

I have written a small software in tcl/tk 4.3 and vtk 4.2.1 for the visualization of X-ray images.

I am using 


        vtkTkImageViewerWidget .picFrame -width $viewportWidth -height $viewportHeight -iv viewer


for the creation of the images.
Further there are some additional objects like lines onto them:


        vtkLineSource myLine($i)
        myLine($i) SetPoint1 $x1 $y1 0
        myLine($i) SetPoint2 $x2 $y2 0


Exists there an easy way in vtk to pick these objects and move them over the X-ray image or change only one point of them ?

Until now I have written my own picking procedure but it is quite slow to check the mouse position against every object position in the viewport. 

As far as I know the vtk-picking procedures are not for the use with vtkTkImageViewerWidget.



Any help is welcome


Frank-André




--------------------------------------------------
Frank-André Siebert (PhD)
Universitätsklinikum Schleswig-Holstein
Campus Kiel
Klinik für Strahlentherapie (Radioonkologie)
Direktor Prof. Dr. Dr. Kimmig
Arnold-Heller-Str. 9
24105 Kiel, Germany
--------------------------------------------------
Email: siebert at onco.uni-kiel.de
Tel: 0431/597-3022
Fax: 0431/597-3110





More information about the vtkusers mailing list