[vtk-developers] vtkSeedWidget proposed modifications

Dean Inglis dean.inglis at camris.ca
Wed Apr 16 17:28:32 EDT 2008


Hi Karthik,

and anyone else who might know how to fix this:

--------------------Configuration: vtkRenderingPythonD - Win32
Debug--------------------
Linking...
--------------------Configuration: vtkRenderingPython - Win32
Debug--------------------
--------------------Configuration: vtkWidgets - Win32
Debug--------------------
Compiling...
vtkSeedWidget.cxx
C:\Dashboards\My Tests\VTK\Widgets\vtkSeedWidget.cxx(75) : error C2065:
'advance' : undeclared identifier

Problem with Continuous build for  DASH3.kitware/Win32-vs60

is there a namespace for the STL advance method I am missing here?

Dean


 

-----Original Message-----
From: Karthik Krishnan [mailto:karthik.krishnan at kitware.com] 
Sent: April-15-08 7:36 PM
To: dean.inglis at camris.ca
Cc: vtk-developers at vtk.org
Subject: Re: [vtk-developers] vtkSeedWidget proposed modifications

Hi Dean,

Thanks for improving the behavior of the widget.

Is any API broken in the process, or is it restricted to an improvement in
behaviour ?

If so, please commit it.

Thanks

--
karthik

On Tue, Apr 15, 2008 at 6:30 PM, Dean Inglis <dean.inglis at sympatico.ca>
wrote:
> I've been working with vtkSeedWidget/Representation and noticed  some 
> (IMHO) odd behaviour. When the widget is activated and seeds  are 
> placed, the cursor is set to VTK_CURSOR_HAND.  When the  widget is 
> deactivated, the cursor is not reset to default.
>  Also, if one defines a set of seeds, disables the widget,  then the 
> seeds (vtkHandleWidgets) are disabled. If one  re-enables the seed 
> widget, the seeds are NOT re-enabled.
>  Finally, if one presses the delete key, the seeds are deleted  from 
> most recently added back to first added.  I would like  to propose the 
> following changes, which I have implemented and  am prepared to commit 
> if there are no objections:
>  1) on disable, reset the cursor to VTK_CURSOR_DEFAULT
>  2) on enable, if there are seeds already defined, re-enable those
>    seeds and display them
>  3) seeds can only be deleted by delete key
>  4) if the user clicks on a seed, thereby setting the ActiveSeed in
>    the seed rep, then that seed is deleted.  This required changing
>    the stl container types in the widget and its representation to
stl::list
>    from stl::vector.
>
>  Dean
>
>  _______________________________________________
>  vtk-developers mailing list
>  vtk-developers at vtk.org
>  http://www.vtk.org/mailman/listinfo/vtk-developers



More information about the vtk-developers mailing list