[vtkusers] Compute zoom level (VTK)
nihel
nihel-turki at hotmail.fr
Tue Dec 8 11:16:03 EST 2015
I'm using VTK to manipulate DICOM images series en 3D. I used this mouse
listener to zoom the image :
ML_Zoom = new MouseListener() {
@Override
public void mouseClicked(MouseEvent e) {
}
@Override
public void mousePressed(MouseEvent e) {
button = (int) e.getButton();
if (button == 1) {
for (int i = 0; i < 3; i++) {
style[i].EndSpin();
style[i].EndPan();
style[i].EndDolly();
style[i] = new vtkInteractorStyleImage();
iren[i].SetInteractorStyle(style[i]);
style[i].StartDolly();
}
}
}
@Override
public void mouseReleased(MouseEvent e) {
for (int i = 0; i < 3; i++) {
style[i].EndDolly();
}
}
@Override
public void mouseEntered(MouseEvent e) {
}
@Override
public void mouseExited(MouseEvent e) {
}
};
How can I compute zoom level ?
--
View this message in context: http://vtk.1045678.n5.nabble.com/Compute-zoom-level-VTK-tp5735395.html
Sent from the VTK - Users mailing list archive at Nabble.com.
More information about the vtkusers
mailing list