_refresh_waiting = false;
_parent_refresh_waiting = false;
_blockRefresh = false;
+
+ //EED27Juillet2011
+ SetMouseWheelMotionFactor(0.5);
}
//---------------------------------------------------------------------------
vtkInteractorStyleBaseView::~vtkInteractorStyleBaseView()
{
CallLstInteractorStyleMaracas( 12 );
}
-//---------------------------------------------------------------------------
-void vtkInteractorStyleBaseView::OnMouseWheel() // virtual
+
+
+void vtkInteractorStyleBaseView::OnMouseWheelForward() // virtual
{
- CallLstInteractorStyleMaracas( 14 );
+ CallLstInteractorStyleMaracas( 15 );
}
+
+void vtkInteractorStyleBaseView::OnMouseWheelBackward() // virtual
+{
+ CallLstInteractorStyleMaracas( 16 );
+}
+
+
+
+
//---------------------------------------------------------------------------
void vtkInteractorStyleBaseView::AddInteractorStyleMaracas(InteractorStyleMaracas* interactorStyleMaracas)
{
for (i=0;i<size;i++)
{
- if (i < _lstInteractorStyleMaracas.size() )
+ if (i < (int)_lstInteractorStyleMaracas.size() )
{
intStyMar = _lstInteractorStyleMaracas[i];
} else {
i=size;
}
}
- if (type==14)
- { // OnMouseWheel
- if (intStyMar->OnMouseWheel()==false)
+ // 14 ... old OnMouseWheelFordward
+ if (type==15)
+ { // OnMouseWheelForward
+ if (intStyMar->OnMouseWheelForward()==false)
+ {
+ i=size;
+ }
+ }
+ if (type==16)
+ { // OnMouseWheelBackward
+ if (intStyMar->OnMouseWheelBackward()==false)
{
i=size;
}
}
+
+
} // if active
} // for