[vtkusers] VTK 2D Control Points example

Jothybasu Selvaraj jothybasu at gmail.com
Thu Jun 28 05:19:26 EDT 2012


Once you have drawn the contour, you can get the (x,y,z) of each point
drawn by accessing its representation and GetPoints().

Jothy

On Thu, Jun 28, 2012 at 4:34 AM, Gishara Indeewarie <gish.777 at gmail.com>wrote:

> Thanks Jothy and John for the great help.
> I have decided to use  vtkContourWidget with vtkInteractorStyleImage so
> the users will see 2D control points.
> And one more question, how do I get the z coordinates of the plane I am
> drawing?
> Because as per Jothy, :" You could simply set the z value to the z value
> of the plane on which you are drawing. "
> How can I access the plane? Do I need to declare a plane seperately?
> Thanks in advance.
>
> On Wed, Jun 27, 2012 at 3:38 PM, Jothybasu Selvaraj <jothybasu at gmail.com>wrote:
>
>> with vtkContourWidget you can manipulate the contour points by mouse.
>>
>> Jothy
>>
>>
>> On Wed, Jun 27, 2012 at 3:23 AM, Gishara Indeewarie <gish.777 at gmail.com>wrote:
>>
>>> Thanks Jothy and John.
>>> @Jothy: I have not used vtk charts for this purpose, because I could not
>>> find ant example with control points.
>>> My requirement is to display control points in x,y coordinates so the
>>> user can change the points as he wants. Is there
>>> any way to do this with vtk charts?
>>>
>>> @John:Thanks for the example,I will try to test it with my code.
>>> Thanks again.
>>>
>>> On Tue, Jun 26, 2012 at 5:54 PM, John Drescher <drescherjm at gmail.com>wrote:
>>>
>>>> On Tue, Jun 26, 2012 at 8:14 AM, Gishara Indeewarie <gish.777 at gmail.com>
>>>> wrote:
>>>> > Thanks John. Can you please explain me about how to stop the rotation
>>>> by
>>>> > setting the interactor style?
>>>> >
>>>> I think the following example shows how to set the interactor style on
>>>> an image. The technique will be the same for your purpose.
>>>>
>>>> http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/InteractWithImage
>>>>
>>>> John
>>>>
>>>
>>>
>>>
>>> --
>>> Gish
>>>
>>
>>
>>
>> --
>> Jothybasu Selvaraj
>> PhD Student
>> University of Liverpool
>> UK
>>
>>
>
>
> --
> Gish
>



-- 
Jothybasu Selvaraj
PhD Student
University of Liverpool
UK
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120628/acb33443/attachment.htm>


More information about the vtkusers mailing list