[vtkusers] Draw polygon around vtkImageSlice?
Sophonet
vtk at kant.sophonet.de
Mon Aug 1 11:08:27 EDT 2016
Okay, I managed this myself by cutting the extracted outline of the
input image with the viewing plane (using vtkCutter).
Thanks,
Sophonet
Am 2016-08-01 13:54, schrieb Sophonet:
> Hi list,
>
> in my previous VTK code I was successfully using
> vtkImageActor::GetDisplayBounds() and vtkOutlineSource etc. to draw an
> outline around the currently shown 2D slice. After refactoring to
> vtkImageResliceMapper and vtkImageSlice, I have not found a matching
> function: vtkImageResliceMapper::GetBounds() contains a comment
> "Modify to give just the slice bounds" and indeed always returns the
> bounds of the 3D input image.
>
> Any suggestions?
>
> Thanks,
>
> Sophonet
>
>
> _______________________________________________
> 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
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
More information about the vtkusers
mailing list