[vtkusers] How to use vtkTransform with vtkImageViewer2
Uril Yakubov
uyakubov at rotman-baycrest.on.ca
Thu Oct 16 16:27:55 EDT 2008
Hi ,
Does any now why my function getting slow and slow every time after I am
pushing pitch button(rotation around X).
proc Pitch_Command { } {
// viewer is instance of vtkImageViewer2
global viewer
set transform [vtkTransform New]
$transform PostMultiply
eval $transform Identity
eval $transform RotateX 1
#VTK reslicer
set reslice [vtkImageReslice New]
eval $reslice SetResliceTransform $transform
eval $reslice SetInput [$viewer GetInput]
eval $reslice SetOutputDimensionality 3
eval $reslice InterpolateOn
eval $reslice SetInterpolationModeToCubic
eval $viewer SetInput [$reslice GetOutput]
eval $viewer Render
$transform Delete
$reslice Delete
}
Thanks,
Uril.
More information about the vtkusers
mailing list