[vtkusers] coordinates of point in renderer window
Podariu, Silviu
spodariu at unmc.edu
Tue Dec 17 12:16:17 EST 2013
Greg,
I managed to run the ImagePlaneWidget example found on-line, but that is not offering more functionality than what FSL provides ( it slices data along the sides of the box ( so, only 3 directions, not an arbitrary cutting plane ), and it gives the coordinates of points in any of the three slices as well as the integer value at that location ).
I am not pursuing this anymore at present, but i am trying to see what use i can make of events and handling them ( like clicking various keys and making a little 'probe' move in space and report its coordinates ).
I also got a reply to a question about that from Jorge Perez ( see "location of movable component" question posted last week ).
Silviu
________________________________
From: greg aiken [gregaiken at hotmail.com]
Sent: Tuesday, December 17, 2013 9:32 AM
To: Podariu, Silviu
Subject: RE: [vtkusers] coordinates of point in renderer window
did you ever figure out how to do this.
if so, i was wondering if i could ask you a few questions...
greg
________________________________
From: spodariu at unmc.edu
To: vtkusers at vtk.org
Date: Wed, 13 Nov 2013 20:37:36 +0000
Subject: [vtkusers] coordinates of point in renderer window
Hello,
I am an older but still elementary user of vtk. I found among the examples
a useful one with the vtkRenderer which i could adjust to my needs to add
a few 3D volumes ( each broken in 2D slices ) using a vtkVolume16Reader
and the vtkContourFilter to generate an iso-surface to be shown in the
rendering window for each volume. Additionally, i include sometimes other
standard shapes ( usually spheres, to indicate some particular points, or
different default shapes ).
The problem i am facing now is the following. When i view these volumes in
a viewer like FSLView, i can get the FSL coordinates of a certain voxel i
am singling out by placing the cross-bar on it ( actually these are the NIFTI
format coordinates, different from the VTK volume coordinates, but this is
less important ) and i would very much like to be able to do a similar thing
in the VTK renderer, i.e. to somehow single out a point and get a visual
display somewhere ( could be in the terminal from which i am launching the
renderer, or anywhere i can see it ) of the VTK coordinates of that point, so
i could connect better the visual info the two displays provide...
Is there a not too difficult, :), solution to my problem anybody is aware of?
Thank you,
Silviu
The information in this e-mail may be privileged and confidential, intended only for the use of the addressee(s) above. Any unauthorized use or disclosure of this information is prohibited. If you have received this e-mail by mistake, please delete it and immediately contact the sender.
_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ Follow this link to subscribe/unsubscribe: http://www.vtk.org/mailman/listinfo/vtkusers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20131217/1d866390/attachment.htm>
More information about the vtkusers
mailing list