[vtkusers] How to change the behaviour of the vtkContourWidget class...??

Shashwath T.R. trshash at gmail.com
Wed Jul 21 07:15:58 EDT 2010


Hi,

As of now, this is only possible by sub-classing vtkContourWidget and
reimplementing the actions you want (in other words, it's probably more
trouble than it's worth).

We've done the sub-classing, but it's really painful.

Regards,
Shash

On Wed, Jul 21, 2010 at 3:37 PM, Rakesh Patil <rakeshthp at in.com> wrote:

> Hello users,
>
> I want to implement the following functionalities:
>
> I am using vtkContourWidget to draw a single contour. So there are set of
> buttons.
>
> One button to create a contour using this class.
> Another button to select this contour.
> One button to add intermediate nodes on the contour
> And another button to select and move the intermediate nodes.
>
> Thus i want to Implement this features. Now by default the contour is drawn
> as expected.
> Now once i click on the contour, instead of creating a new node i want the
> contour to get selected and should be highlighted.
>
> Similary, a new node should be inserted on the contour only when i click
> add intermediate button and click on the contour.
>
> and when i say select intermediate nodes, it should get selected and
> highlighted.
>
> Can anyone please help me how to do this.?? Basically, i feel some changes
> need to be done by changing the events of the widget.
>
> Thanks in advance
>
> Rakesh Patil
>
>
> Dear *vtkusers !* Get Yourself a cool, short *@in.com* Email ID now!<http://mail.in.com/mails/new_reg.php?utm_source=invite&utm_medium=outgoing>
>
> _______________________________________________
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100721/7fd222da/attachment.htm>


More information about the vtkusers mailing list