[vtkusers] VTK 2D Control Points example
Jothybasu Selvaraj
jothybasu at gmail.com
Tue Jun 26 08:15:27 EDT 2012
Since yuo mentioned about vtkContourWidget, I thought you are not doing it
with charts.
As far as I know , vtkCharts do not have that functionality.
Jothy
On Tue, Jun 26, 2012 at 1:11 PM, Gishara Indeewarie <gish.777 at gmail.com>wrote:
> I have used vtkCharts. I need to give the user the ability to change the
> position of some points.
> (like in the example)
> Can I do it with vtkCharts?
> Thanks.
>
>
> On Tue, Jun 26, 2012 at 5:37 PM, Jothybasu Selvaraj <jothybasu at gmail.com>wrote:
>
>> If you are using vtkCharts for plotting then it can handle 2D plots just
>> by mentioning (X,Y).
>>
>> Are you using vtkCharts?
>>
>>
>>
>>
>> On Tue, Jun 26, 2012 at 1:04 PM, Gishara Indeewarie <gish.777 at gmail.com>wrote:
>>
>>> ok.Thanks. Is this true to do 2d plot also?
>>> Because my problem is that I only need to show the 2D one.
>>> Users should not be given the ability to rotate the contour.
>>> Is there any way of adding control points to a 2D plot?
>>> Thanks again for the help.
>>>
>>> On Tue, Jun 26, 2012 at 5:30 PM, Jothybasu Selvaraj <jothybasu at gmail.com
>>> > wrote:
>>>
>>>> Any point in 3D requires (X,Y,Z). You can't define a contour with just
>>>> (X,Y) values.
>>>>
>>>> Consider a circle with 10 mm radius, you may be happy with the (X,Y)
>>>> values but VTK should be told where it should be positioned in the Z axis.
>>>>
>>>>
>>>> Jothy
>>>>
>>>>
>>>> On Tue, Jun 26, 2012 at 12:47 PM, Gishara Indeewarie <
>>>> gish.777 at gmail.com> wrote:
>>>>
>>>>> Hi Jothy, Thanks for the reply.
>>>>> Can you explain me it further?
>>>>> I want just a 2D contour, which means that I do not have the ability
>>>>> to rotate it.
>>>>>
>>>>>
>>>>> On Tue, Jun 26, 2012 at 4:35 PM, Jothybasu Selvaraj <
>>>>> jothybasu at gmail.com> wrote:
>>>>>
>>>>>> You could simply set the z value to the z value of the plane on which
>>>>>> you are drawing.
>>>>>>
>>>>>> Jothy
>>>>>>
>>>>>> On Tue, Jun 26, 2012 at 12:02 PM, Gishara Indeewarie <
>>>>>> gish.777 at gmail.com> wrote:
>>>>>>
>>>>>>> I just have only x and y values to draw the contour.
>>>>>>> My requirement is that I need to add some control points to the
>>>>>>> contour, so the
>>>>>>> user can adjust the shape using control points. The example works
>>>>>>> fine (
>>>>>>> http://www.cmake.org/Wiki/VTK/Examples/Cxx/Widgets/ContourWidget)
>>>>>>> unless it uses x,y,z data. I only want to have x,y data.
>>>>>>> How can I do this?
>>>>>>> Please help me.
>>>>>>>
>>>>>>> On Tue, Jun 26, 2012 at 10:52 AM, Gishara Indeewarie <
>>>>>>> gish.777 at gmail.com> wrote:
>>>>>>>
>>>>>>>> Dear all,
>>>>>>>>
>>>>>>>> I want to do a 2d contour with some control points in vtk.
>>>>>>>> I have found the example below:
>>>>>>>> http://www.cmake.org/Wiki/VTK/Examples/Cxx/Widgets/ContourWidget
>>>>>>>>
>>>>>>>> This is good, but the problem is I only want a 2D one.
>>>>>>>> Is there any way to do something like this for 2d data?
>>>>>>>> Thanks in advance.
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> 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
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Jothybasu Selvaraj
>>>>>> PhD Student
>>>>>> University of Liverpool
>>>>>> UK
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Gish
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Jothybasu Selvaraj
>>>> PhD Student
>>>> University of Liverpool
>>>> UK
>>>>
>>>>
>>>
>>>
>>> --
>>> 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/20120626/9db86e08/attachment.htm>
More information about the vtkusers
mailing list