[vtkusers] vtkSeedWidget and vtkImageViewer2 bug in visualization?

Jothybasu K Selvaraj jothybasu at gmail.com
Tue Apr 13 12:06:28 EDT 2010


What if you set seedactor.SetPosition(x,y,z), where z is the same as your
setZslice or +/- 1 setZSlice. In this case you don't need to hide the seed
actors. viewer2 will automatically hide them.But it would take some time for
you to figure out the correct Z values for axial sagitall and coronal.

For me this seems to be a more faster and simpler approach.

Jothy

On Tue, Apr 13, 2010 at 5:00 PM, Nicolas Rannou <
nicolas_rannou at hms.harvard.edu> wrote:

>  Thanks Jothy,
>
> I'm afraid that at some point "manually" hiding actors which are out of the
> current slice takes too much time (if thousands of actors).
> But the strange thing is that after moving through a few slices the actor
> "disappears" from my view so what I see is not just a projection of the 3d
> seed actors.
>
> Thanks,
>
>     Nicolas
>
>
> On 04/13/2010 10:06 AM, Jothybasu K Selvaraj wrote:
>
> It seems to be a depth problem.vtkImageViewer2 displays all the actors
> whicher is above the image.To check ,comment the setupInteractor and see it
> in 3D.
>
> I would suggest you to hide the actors which ever is out of current slice.
>
> Jothy
>
> On Tue, Apr 13, 2010 at 2:49 PM, Nicolas Rannou <
> nicolas_rannou at hms.harvard.edu> wrote:
>
>> Hello,
>>
>> I'm experimenting some troubles using vtkSeedWidget.
>>
>> I visualize a volume (*.mhd) in a vtkImageViewer2.
>> Then I use vtkSeedWidget to select some points through the volume.
>>
>> The problem is that when I select one point in one slice, then move to
>> another slice to select another point, I can see the actor of the first
>> selected point even if I am not on the same slice anymore.
>> If I move further, the first point will not be visible after some more
>> slices...
>> The coordinates (real world coordinates) of all the created points are
>> good.
>>
>> The problem must be in the visualization/actors somewhere...
>>
>> I tried to use vtkConstrainedPointHandleRepresentation and
>> vtkImageActorPointPlacer without success.
>>
>> Did somebody already face this issue or have any advice?
>>
>>
>> Thanks for your help,
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100413/5b12e928/attachment.htm>


More information about the vtkusers mailing list