00001 00002 #include "wxVTKRenderWindowInteractorPlus.h" 00003 #include "vtkInteractorStyleBaseView.h" 00004 00005 BEGIN_EVENT_TABLE( wxVTKRenderWindowInteractorPlus, wxVTKRenderWindowInteractor ) 00006 EVT_LEFT_DCLICK( wxVTKRenderWindowInteractorPlus::OnLeftDClick ) 00007 EVT_RIGHT_DCLICK( wxVTKRenderWindowInteractorPlus::OnRightDClick ) 00008 EVT_MIDDLE_DCLICK( wxVTKRenderWindowInteractorPlus::OnMiddleDClick ) 00009 EVT_MOUSEWHEEL( wxVTKRenderWindowInteractorPlus::OnMouseWheel ) 00010 END_EVENT_TABLE( ); 00011 00012 //------------------------------------------------------------------- 00013 wxVTKRenderWindowInteractorPlus::wxVTKRenderWindowInteractorPlus() 00014 : wxVTKRenderWindowInteractor() 00015 { 00016 } 00017 00018 00019 //------------------------------------------------------------------- 00020 wxVTKRenderWindowInteractorPlus::wxVTKRenderWindowInteractorPlus(wxWindow *parent, wxVtkBaseView *wxvtkbaseview) 00021 : wxVTKRenderWindowInteractor(parent, -1) 00022 { 00023 _wxvtkbaseview = wxvtkbaseview; 00024 } 00025 00026 //------------------------------------------------------------------- 00027 wxVTKRenderWindowInteractorPlus::~wxVTKRenderWindowInteractorPlus() 00028 { 00029 } 00030 00031 //--------------------------------------------------------------------------- 00032 wxVTKRenderWindowInteractorPlus * wxVTKRenderWindowInteractorPlus::New() 00033 { 00034 // we don't make use of the objectfactory, because we're not registered 00035 return new wxVTKRenderWindowInteractorPlus; 00036 } 00037 00038 //------------------------------------------------------------------- 00039 void wxVTKRenderWindowInteractorPlus::OnLeftDClick( wxMouseEvent& event ) 00040 { 00045 ((vtkInteractorStyleBaseView*)_wxvtkbaseview->GetInteractorStyleBaseView())->OnLeftDClick(); 00046 } 00047 //------------------------------------------------------------------- 00048 void wxVTKRenderWindowInteractorPlus::OnRightDClick( wxMouseEvent& event ) 00049 { 00054 ((vtkInteractorStyleBaseView*)_wxvtkbaseview->GetInteractorStyleBaseView())->OnRightDClick(); 00055 } 00056 //------------------------------------------------------------------- 00057 void wxVTKRenderWindowInteractorPlus::OnMiddleDClick( wxMouseEvent& event ) 00058 { 00064 ((vtkInteractorStyleBaseView*)_wxvtkbaseview->GetInteractorStyleBaseView())->OnMiddleDClick(); 00065 } 00066 //------------------------------------------------------------------- 00067 void wxVTKRenderWindowInteractorPlus::OnMouseWheel( wxMouseEvent& event ) 00068 { 00074 ((vtkInteractorStyleBaseView*)_wxvtkbaseview->GetInteractorStyleBaseView())->OnMouseWheel(); 00075 } 00076 00077