[vtkusers] Draw line with vtk

Sankhesh Jhaveri sankhesh.jhaveri at kitware.com
Fri Sep 15 08:45:34 EDT 2017


Hi,

You should use the widget if you think you would like to *interactively*
place/draw and edit the line. If your goal is to just display a line given
a set of parameters and update it without interaction, a simple cell based
approach should work. See
https://lorensen.github.io/VTKExamples/site/Cxx/GeometricObjects/LongLine/

Hope that helps.
Sankhesh
​

On Fri, Sep 15, 2017 at 7:19 AM K O ranjith <kor1581 at gmail.com> wrote:

> Hello,
> I need to draw a couple of lines in an image viewer (vtkImageViewer2) for
> MRI slice planning application. Also should have to perform few operations
> (move, roatate)on the lines with mouse interactions and need to retrieve
> line properties (new coordinates after movement, width etc).
> I have found examples with  two methods while searching
> with vtkLineWidget2 and with vtkLine
> which approach will be more suitable?
>  what is the difference?have any difficulties for manipulation operations
>  if use vtkLineWidget2?
> Please help
>
> _______________________________________________
> 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
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
-- 
Sankhesh Jhaveri *Sr. Research & Development Engineer* | Kitware
<http://www.kitware.com/> | (518) 881-4417
​
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20170915/9c4a356c/attachment.html>


More information about the vtkusers mailing list