[vtkusers] Draw line with vtk
K O ranjith
kor1581 at gmail.com
Mon Sep 18 06:36:52 EDT 2017
Hello,
Thanks very much for the help.
What is the difference between vtk line widgets "vtkLineWidget" and
"vtkLineWidget2 "?
I have to draw the lines above a dicom image displayed in an
vtkImageViewer2
On Fri, Sep 15, 2017 at 6:15 PM, Sankhesh Jhaveri <
sankhesh.jhaveri at kitware.com> wrote:
> 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/20170918/aeb09dff/attachment.html>
More information about the vtkusers
mailing list