[vtkusers] vtkPointPicker and Tcl interface,..
Miguel Angel Rodriguez Florido
marf at ctm.ulpgc.es
Fri Jun 27 08:48:55 EDT 2008
Resolved!!.
It was due to the Tcl wrapper!.
I was passing under Tcl a float value to the GetScalarComponentAsFloat
method, and the picker was giving me a generic error like that, and not
a clue to resolve it.
Best.
Miguel Angel Rodriguez Florido wrote:
> Hi vtkusers,
>
> I've done a simple example with a tcl procedure that reads a tiff
> image (vtkTIFFReader) and a vtkPointPicker joined to the
> vtkTkRenderWidget where I display this image.
>
> The picker works well, but when I tried to access to any information
> of the image (i.e. "puts [myImage GetCenter]" or "puts [myImage
> GetDimensions]) in the tcl function associated to the picker (Mypicker
> AddObserver EndPickEvent PickRegion) I got this message:
> ----------
> Generic Warning: In
> /usr/local/vtk-5.1.0/VisualizationToolkit-5.1.0/Common/vtkTclUtil.cxx,
> line 723
> Error returned from vtk/tcl callback:
> PickRegion
> at line number 1
> ----------
> without any more information, so its so difficult to trace what's
> happening.
>
> Any idea?.
>
> Thank you very much in advance.
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
--
Miguel Angel Rodriguez Florido
Center for Technology in Medicine-ULPGC-Gran Canaria-CanaryIslands,Spain
Emails:marf@{ctm.ulpgc.es,bwh.harvard.edu}-http://www.ctm.ulpgc.es/
Tfnos:+34 928 451253, +34 928 452956 - Fax:+34 928 451243
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3250 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20080627/a2d64227/attachment.bin>
More information about the vtkusers
mailing list