[vtkusers] vtkImageViewer2 do not fit my needs

sercani sercanimailgroups at gmail.com
Wed May 19 04:04:50 EDT 2010


18.05.2010 19:14, David Doria yazmış:
>> But this doesn't seem to work. Before I had StyleTrallbackActor, and when I
>> changed to ImageStyle, I can see the diferences. But seems like my overrides
>> do not want to work, it act just like I was using vtkInteractorStyleImage...
>> What am I doing wrong?
>>      
> There should be no difference. Note that vtkImageViewer2 simply tries
> to make life easier by packaging up some of the renderers/styles etc.
>
> http://www.vtk.org/doc/nightly/html/classvtkImageViewer2.html#_details
>
> It seems to cause more confusion than anything else though... :)
>
> David
>    

Yes, it causes more than confusion...If slice orientation is set another 
than 2 (xy plane or axial orientation), it changes the transform of 
camera instead of using an image transform or reslicing with 
vtkImageReslice...

Raul try this:

m_ImageViewer2->GetRenderWindow()->SetInteractor(m_Interactor);





More information about the vtkusers mailing list