[vtkusers] tile of renderers

José M. Rodriguez Bacallao jmrbcu at gmail.com
Fri Jun 22 10:23:50 EDT 2012


well, I know that I could have a list of renderers, the problem is
that I don't know how to select an specific slice for that renderer
from a 3D vtkImageData and if there is a simple way of synchrionizing
all the renderers when I change from one slice to another.

answering your question about achieving other orientations with
ViewUp, well, right now I can achieve axial, coronal and sagital
orientations using methods from vtkInteractorStyleImage, for example:

        style = vtk.vtkInteractorStyleImage()
        style.SetInteractionModeToImageSlicing()
        style.SetZViewRightVector((1, 0, 0))
        style.SetZViewUpVector((0, -1, 0))
        style.SetXViewRightVector((0, 1, 0))
        style.SetXViewUpVector((0, 0, 1))
        style.SetYViewRightVector((1, 0, 0))
        style.SetYViewUpVector((0, 0, 1))

this are my vectors when I am reading dicom images with gdcm and it's
original orientations (the reader is not flipping images)
I don't now if I can achieve other orientations using this methods but
I think that if you user vtkImageResliceMapper or vtkImageSlice you
can do it.

On Fri, Jun 22, 2012 at 9:45 AM, Jothybasu Selvaraj <jothybasu at gmail.com> wrote:
> You could create a vector (std::vector) of renderers then you could add
> actors by calling renderersVector[x]->AddActor().....
>
> something like this.
>
> May I ask you a question(off topic)
>
> By using proper viewUpVecto and psotion of the camera I can display axial,
> sag 7 coronal images properly for HFS case. I nver attemped to do that for
> other orientations.
>
> Do we need to apply any other transformation for other orientations?
>
> if so how?
>
>
> Thanks
>
> Jothy
>
> On Fri, Jun 22, 2012 at 2:36 PM, José M. Rodriguez Bacallao
> <jmrbcu at gmail.com> wrote:
>>
>> hi folks, right now I have developed a dicom viewer with vtk, I can
>> display almost any dicom modality but, one of my requierements is to
>> show several layouts of series and images, for example, 1x1 series
>> horizontally, 2x2 series, etc. The way I do this for series is with a
>> grid layout (yes, I am using qt4) but, I need to support images too. I
>> know how to tile several renderers in a render window but, my problem
>> is how to assign a specific slice from a 3D vtkImageData to a specific
>> renderer. Any suggestions on this?
>> _______________________________________________
>> 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
>



More information about the vtkusers mailing list