-
- if ( _vtkInteractorStyleBaseView!=NULL )
- {
- int X,Y;
- wxVTKRenderWindowInteractor *wxVTKiren;
- wxVTKiren = _vtkInteractorStyleBaseView->GetWxVtk3DBaseView()->GetWxVTKRenderWindowInteractor();
- wxVTKiren->GetEventPosition(X,Y);
-
- int state = _view->getState();
-
- //Evaluate new state
- if( state==HIGHLIGHTED)
- {
- _view->isStartDragging(true);
- _view->setState(DRAG);
- }
-
- if( state == SELECTED)
- {
- if(_view->isPointInside(X,Y))
- {
- _view->isStartDragging(true);
- _view->setState(DRAG);
- }
- }