[IGSTK-Users] Cross Hairs
sebastian ordas
sebastian.ordas at gmail.com
Wed Jul 27 13:47:01 EDT 2011
Hi Ashwath,
what do you mean by 3D model? In your code,
m_ImageRepresentation3D and m_ImageSpatialObject refer to an image, right?
if you want to draw an ellipse on your clicked position in the 2D view, you should look into the crosshair spatial object and representation
these classes are deficient in IGSTK since they work for orthogonally aligned images only
(such as typical CT images) ; but you can see how the two lines are drawn using vtkLine
you may also look into "snap" http://www.itksnap.org/pmwiki/pmwiki.php or in VTK itself (e.g. http://www.vtk.org/doc/nightly/html/classvtkResliceCursor.html), how to draw other geometries (such as your ellipse) in a vtk viewport (like the one you have in IGSTK)
sorry, we don´t have much visualization routines in IGSTK
kind regards,
sebastian
More information about the IGSTK-Users
mailing list