#include <vtkInteractorStyleBaseView3D.h>
Definition at line 10 of file vtkInteractorStyleBaseView3D.h.
vtkInteractorStyleBaseView3D::vtkInteractorStyleBaseView3D | ( | ) |
Definition at line 9 of file vtkInteractorStyleBaseView3D.cxx.
vtkInteractorStyleBaseView3D::~vtkInteractorStyleBaseView3D | ( | ) |
Definition at line 12 of file vtkInteractorStyleBaseView3D.cxx.
void vtkInteractorStyleBaseView::AddInteractorStyleMaracas | ( | InteractorStyleMaracas * | interactorStyleMaracas | ) | [inherited] |
Definition at line 84 of file vtkInteractorStyleBaseView.cxx.
References vtkInteractorStyleBaseView::_lstInteractorStyleMaracas, and InteractorStyleMaracas::SetVtkInteractorStyleBaseView().
Referenced by vtkInteractorStyleBaseView2D::vtkInteractorStyleBaseView2D().
00085 { 00086 interactorStyleMaracas->SetVtkInteractorStyleBaseView(this); 00087 _lstInteractorStyleMaracas.push_back(interactorStyleMaracas); 00088 }
void vtkInteractorStyleBaseView::AddParentToReport | ( | wxEvtHandler * | parentToReport | ) | [inherited] |
Definition at line 364 of file vtkInteractorStyleBaseView.cxx.
References vtkInteractorStyleBaseView::_lstParentToReport.
Referenced by wxMaracasRenderTabbedPanel::addMPROptions().
00365 { 00366 _lstParentToReport.push_back(parentToReport); 00367 }
void vtkInteractorStyleBaseView::BlockRefresh | ( | ) | [inherited] |
Definition at line 343 of file vtkInteractorStyleBaseView.cxx.
References vtkInteractorStyleBaseView::_blockRefresh.
Referenced by vtkmyPWCallback_3DPointWidget::Execute().
00344 { 00345 _blockRefresh=true; 00346 }
void vtkInteractorStyleBaseView::CallLstInteractorStyleMaracas | ( | int | type | ) | [inherited] |
Definition at line 114 of file vtkInteractorStyleBaseView.cxx.
References vtkInteractorStyleBaseView::_lstInteractorStyleMaracas, vtkInteractorStyleBaseView::EvaluateToRefresh(), InteractorStyleMaracas::GetActive(), InteractorStyleMaracas::OnChar(), InteractorStyleMaracas::OnLeftButtonDown(), InteractorStyleMaracas::OnLeftButtonUp(), InteractorStyleMaracas::OnLeftDClick(), InteractorStyleMaracas::OnMiddleButtonDown(), InteractorStyleMaracas::OnMiddleButtonUp(), vtkInteractorStyleBaseView::OnMiddleDClick(), InteractorStyleMaracas::OnMouseMove(), InteractorStyleMaracas::OnMouseWheel(), InteractorStyleMaracas::OnRightButtonDown(), InteractorStyleMaracas::OnRightButtonUp(), and InteractorStyleMaracas::OnRightDClick().
Referenced by vtkInteractorStyleBaseView::OnChar(), vtkInteractorStyleBaseView::OnLeftButtonDown(), vtkInteractorStyleBaseView::OnLeftButtonUp(), vtkInteractorStyleBaseView::OnLeftDClick(), vtkInteractorStyleBaseView::OnMiddleButtonDown(), vtkInteractorStyleBaseView::OnMiddleButtonUp(), vtkInteractorStyleBaseView::OnMiddleDClick(), vtkInteractorStyleBaseView::OnMouseMove(), vtkInteractorStyleBaseView::OnMouseWheel(), vtkInteractorStyleBaseView::OnRightButtonDown(), vtkInteractorStyleBaseView::OnRightButtonUp(), and vtkInteractorStyleBaseView::OnRightDClick().
00115 { 00116 00117 InteractorStyleMaracas *intStyMar; 00118 00119 int i,size=_lstInteractorStyleMaracas.size(); 00120 00121 //EED Borrame 00122 //FILE *ff = fopen("c:/temp/wxVtkBaseView_SceneManagerStadistics.txt","a+"); 00123 //fprintf(ff,"EED vtkInteractorStyleBaseView::CallLstInteractorStyleMaracas \n" ); 00124 //for (i=0;i<size;i++) 00125 //{ 00126 //fprintf(ff," %p\n" , _lstInteractorStyleMaracas[i] ); 00127 //} 00128 //fclose(ff); 00129 00130 00131 00132 for (i=0;i<size;i++) 00133 { 00134 if (i < _lstInteractorStyleMaracas.size() ) 00135 { 00136 intStyMar = _lstInteractorStyleMaracas[i]; 00137 } else { 00138 intStyMar=NULL; 00139 } 00140 if (intStyMar!=NULL && intStyMar->GetActive()==true){ 00141 if (type ==1) 00142 { // OnRightButtonDown 00143 if (intStyMar->OnRightButtonDown()==false) 00144 { 00145 i=size; 00146 } 00147 } 00148 if (type ==2) 00149 { // OnRightButtonUp 00150 if (intStyMar->OnRightButtonUp()==false) 00151 { 00152 i=size; 00153 } 00154 } 00155 if (type==3) 00156 { // OnMouseMouve 00157 if (intStyMar->OnMouseMove()==false) 00158 { 00159 i=size; 00160 } 00161 } 00162 if (type==4) 00163 { // OnLeftButtonDown 00164 if (intStyMar->OnLeftButtonDown()==false) 00165 { 00166 i=size; 00167 } 00168 } 00169 if (type==5) 00170 { // OnLeftButtonUp 00171 if (intStyMar->OnLeftButtonUp()==false) 00172 { 00173 i=size; 00174 } 00175 } 00176 if (type==6) 00177 { // OnMiddleButtonDown 00178 if (intStyMar->OnMiddleButtonDown()==false) 00179 { 00180 i=size; 00181 } 00182 } 00183 if (type==7) 00184 { // OnMiddleButtonUp 00185 if (intStyMar->OnMiddleButtonUp()==false) 00186 { 00187 i=size; 00188 } 00189 } 00190 if (type==10) 00191 { // OnMiddleButtonUp 00192 if (intStyMar->OnChar()==false) 00193 { 00194 i=size; 00195 } 00196 } 00197 if (type==11) 00198 { // OnLeftDClick 00199 if (intStyMar->OnLeftDClick()==false) 00200 { 00201 i=size; 00202 } 00203 } 00204 if (type==12) 00205 { // OnRightDClick 00206 if (intStyMar->OnRightDClick()==false) 00207 { 00208 i=size; 00209 } 00210 } 00211 if (type==13) 00212 { // OnMiddleDClick 00213 if (intStyMar-> OnMiddleDClick()==false) 00214 { 00215 i=size; 00216 } 00217 } 00218 if (type==14) 00219 { // OnMouseWheel 00220 if (intStyMar->OnMouseWheel()==false) 00221 { 00222 i=size; 00223 } 00224 } 00225 } // if active 00226 } // for 00227 00228 EvaluateToRefresh(); 00229 }
void vtkInteractorStyleBaseView::EvaluateToRefresh | ( | ) | [inherited] |
Definition at line 317 of file vtkInteractorStyleBaseView.cxx.
References vtkInteractorStyleBaseView::_blockRefresh, vtkInteractorStyleBaseView::_lstParentToReport, vtkInteractorStyleBaseView::_parent_refresh_waiting, vtkInteractorStyleBaseView::_refresh_waiting, vtkInteractorStyleBaseView::_wxvtkbaseview, wxVtkBaseView::GetWxVTKRenderWindowInteractor(), and wxVtkBaseView::Refresh().
Referenced by vtkInteractorStyleBaseView::CallLstInteractorStyleMaracas(), and vtkmyPWCallback_3DPointWidget::Execute().
00318 { 00319 00320 if ( _blockRefresh==false ) 00321 { 00322 if ( (_refresh_waiting==true) && (_parent_refresh_waiting==false)) 00323 { 00324 _refresh_waiting = false; 00325 this->_wxvtkbaseview->Refresh(); 00326 } 00327 if (_parent_refresh_waiting==true) 00328 { 00329 _parent_refresh_waiting = false; 00330 wxCommandEvent newevent1(wxEVT_COMMAND_MENU_SELECTED,12121); // Refresh 00331 //CPR 13/01/2010 00332 this->_wxvtkbaseview->GetWxVTKRenderWindowInteractor()->GetParent()->ProcessEvent(newevent1); 00333 int i; 00334 int size = _lstParentToReport.size(); 00335 for(i = 0; i<size; i++) 00336 { 00337 _lstParentToReport[i]->ProcessEvent(newevent1); 00338 }//for 00339 }//if 00340 }//if _blockRefresh 00341 }
bool vtkInteractorStyleBaseView::GetParent_refresh_waiting | ( | ) | [inherited] |
Definition at line 312 of file vtkInteractorStyleBaseView.cxx.
References vtkInteractorStyleBaseView::_parent_refresh_waiting.
00313 { 00314 return _parent_refresh_waiting; 00315 }
wxEvtHandler * vtkInteractorStyleBaseView::GetParentToReport | ( | int | i | ) | [inherited] |
Definition at line 353 of file vtkInteractorStyleBaseView.cxx.
References vtkInteractorStyleBaseView::_lstParentToReport.
00354 { 00355 wxEvtHandler* parentToReport = NULL; 00356 if(i>=0 && i<_lstParentToReport.size()) 00357 { 00358 parentToReport = _lstParentToReport[i]; 00359 } 00360 return parentToReport; 00361 00362 }
bool vtkInteractorStyleBaseView::GetRefresh_waiting | ( | ) | [inherited] |
Definition at line 302 of file vtkInteractorStyleBaseView.cxx.
References vtkInteractorStyleBaseView::_refresh_waiting.
00303 { 00304 return _refresh_waiting; 00305 }
wxVtkBaseView * vtkInteractorStyleBaseView::GetWxVtk2DBaseView | ( | ) | [inherited] |
Definition at line 275 of file vtkInteractorStyleBaseView.cxx.
References vtkInteractorStyleBaseView::_wxvtkbaseview.
Referenced by manualContourBaseControler::OnChar(), vtkInteractorStylePlane2D::OnLeftButtonDown(), vtkInteractorStyleMPRView::OnLeftButtonDown(), manualContourBaseControler::OnLeftButtonDown(), vtkInteractorStyleSphere::OnLeftButtonUp(), vtkInteractorStylePlane2D::OnLeftButtonUp(), manualContourBaseControler::OnLeftButtonUp(), vtkInteractorStylePlane2D::OnLeftDClick(), vtkInteractorStyleMPRView::OnLeftDClick(), manualContourBaseControler::OnLeftDClick(), manualInteractorWindowLevel::OnMiddleButtonDown(), manualContourBaseControler::OnMiddleButtonDown(), vtkInteractorStyleSphere::OnMouseMove(), vtkInteractorStylePlane2D::OnMouseMove(), vtkInteractorStyleMPRView::OnMouseMove(), vtkInteractorScrollZ::OnMouseMove(), vtkInfoTextImageInteractorPlane2D::OnMouseMove(), vtkInfoTextImageInteractor::OnMouseMove(), manualInteractorWindowLevel::OnMouseMove(), manualContourBaseControler::OnMouseMove(), vtkInteractorStyleSphere::OnRightButtonDown(), vtkInteractorScrollZ::OnRightButtonDown(), manualContourBaseControler::OnRightButtonDown(), vtkInteractorStyleSphere::OnRightButtonUp(), vtkInteractorStyleBaseView::TransformCoordinate(), and wxVtkBaseView::TransFromCoordScreenToWorld().
00276 { 00277 return _wxvtkbaseview; 00278 }
wxVtkBaseView * vtkInteractorStyleBaseView::GetWxVtk3DBaseView | ( | ) | [inherited] |
Definition at line 280 of file vtkInteractorStyleBaseView.cxx.
References vtkInteractorStyleBaseView::_wxvtkbaseview.
Referenced by manualContour3DControler::OnLeftButtonDown(), and vtkInteractorStyle3DView::SelectMarchibCubePoint().
00281 { 00282 return _wxvtkbaseview; 00283 }
void vtkInteractorStyleBaseView::InsertInteractorStyleMaracas | ( | int | pos, | |
InteractorStyleMaracas * | interactorStyleMaracas | |||
) | [inherited] |
Definition at line 108 of file vtkInteractorStyleBaseView.cxx.
References vtkInteractorStyleBaseView::_lstInteractorStyleMaracas, and InteractorStyleMaracas::SetVtkInteractorStyleBaseView().
00109 { 00110 interactorStyleMaracas->SetVtkInteractorStyleBaseView(this); 00111 _lstInteractorStyleMaracas.insert(_lstInteractorStyleMaracas.begin()+pos,interactorStyleMaracas); 00112 }
static vtkInteractorStyleBaseView3D* vtkInteractorStyleBaseView3D::New | ( | ) | [static] |
Reimplemented from vtkInteractorStyleBaseView.
Referenced by wxVtk3DBaseView::Configure().
void vtkInteractorStyleBaseView::OnChar | ( | ) | [virtual, inherited] |
Definition at line 231 of file vtkInteractorStyleBaseView.cxx.
References vtkInteractorStyleBaseView::CallLstInteractorStyleMaracas().
00232 { 00233 // char a=GetInteractor()->GetKeyCode(); 00234 CallLstInteractorStyleMaracas(10); 00235 }
void vtkInteractorStyleBaseView3D::OnLeftButtonDown | ( | ) | [virtual] |
Reimplemented from vtkInteractorStyleBaseView.
Definition at line 106 of file vtkInteractorStyleBaseView3D.cxx.
00107 { 00108 vtkInteractorStyleBaseView::OnLeftButtonDown(); 00109 /* 00110 if (GetInteractor()->GetControlKey()==1 ){ 00111 this->vtkInteractorStyleTrackballCamera::OnMiddleButtonDown(); 00112 } else { 00113 this->vtkInteractorStyleTrackballCamera::OnLeftButtonDown(); 00114 } 00115 */ 00116 00117 00118 this->FindPokedRenderer(this->Interactor->GetEventPosition()[0], 00119 this->Interactor->GetEventPosition()[1]); 00120 if (this->CurrentRenderer == NULL) 00121 { 00122 return; 00123 } 00124 00125 if (this->Interactor->GetControlKey()) { 00126 this->StartPan(); 00127 } else { 00128 this->StartRotate(); 00129 } 00130 00131 /* 00132 if (this->Interactor->GetShiftKey()) 00133 { 00134 if (this->Interactor->GetControlKey()) 00135 { 00136 this->StartDolly(); 00137 } 00138 else 00139 { 00140 this->StartPan(); 00141 } 00142 } 00143 else 00144 { 00145 if (this->Interactor->GetControlKey()) 00146 { 00147 this->StartSpin(); 00148 } 00149 else 00150 { 00151 this->StartRotate(); 00152 } 00153 } 00154 */ 00155 00156 00157 }
void vtkInteractorStyleBaseView3D::OnLeftButtonUp | ( | ) | [virtual] |
Reimplemented from vtkInteractorStyleBaseView.
Definition at line 159 of file vtkInteractorStyleBaseView3D.cxx.
00160 { 00161 vtkInteractorStyleBaseView::OnLeftButtonUp(); 00162 00163 /* 00164 if (GetInteractor()->GetControlKey()==1 ){ 00165 this->vtkInteractorStyleTrackballCamera::OnMiddleButtonUp(); 00166 } else { 00167 this->vtkInteractorStyleTrackballCamera::OnLeftButtonUp(); 00168 } 00169 */ 00170 switch (this->State) 00171 { 00172 00173 case VTKIS_PAN: 00174 this->EndPan(); 00175 break; 00176 00177 case VTKIS_ROTATE: 00178 this->EndRotate(); 00179 break; 00180 } 00181 }
void vtkInteractorStyleBaseView::OnLeftDClick | ( | ) | [virtual, inherited] |
Definition at line 42 of file vtkInteractorStyleBaseView.cxx.
References vtkInteractorStyleBaseView::CallLstInteractorStyleMaracas().
00043 { 00044 CallLstInteractorStyleMaracas( 11 ); 00045 }
void vtkInteractorStyleBaseView3D::OnMiddleButtonDown | ( | ) | [virtual] |
Reimplemented from vtkInteractorStyleBaseView.
Definition at line 183 of file vtkInteractorStyleBaseView3D.cxx.
00184 { 00185 vtkInteractorStyleBaseView::OnMiddleButtonDown(); 00186 // this->vtkInteractorStyleTrackballCamera::OnMiddleButtonDown(); 00187 }
void vtkInteractorStyleBaseView3D::OnMiddleButtonUp | ( | ) | [virtual] |
Reimplemented from vtkInteractorStyleBaseView.
Definition at line 189 of file vtkInteractorStyleBaseView3D.cxx.
00190 { 00191 vtkInteractorStyleBaseView::OnMiddleButtonUp(); 00192 00193 // this->vtkInteractorStyleTrackballCamera::OnMiddleButtonUp(); 00194 }
void vtkInteractorStyleBaseView::OnMiddleDClick | ( | ) | [virtual, inherited] |
Definition at line 58 of file vtkInteractorStyleBaseView.cxx.
References vtkInteractorStyleBaseView::CallLstInteractorStyleMaracas().
Referenced by vtkInteractorStyleBaseView::CallLstInteractorStyleMaracas().
00059 { 00060 CallLstInteractorStyleMaracas( 13 ); 00061 }
void vtkInteractorStyleBaseView3D::OnMouseMove | ( | ) | [virtual] |
Reimplemented from vtkInteractorStyleBaseView.
Definition at line 57 of file vtkInteractorStyleBaseView3D.cxx.
00058 { 00059 vtkInteractorStyleBaseView::OnMouseMove(); 00060 00061 // this->vtkInteractorStyleTrackballCamera::OnMouseMove(); 00062 00063 // int x = this->Interactor->GetEventPosition()[0]; // JPRx 00064 // int y = this->Interactor->GetEventPosition()[1]; // JPRx 00065 00066 00067 // vtkRenderWindowInteractor *rwi = this->Interactor; 00068 00069 // int lx = rwi->GetLastEventPosition()[0]; // JPRx 00070 // int ly = rwi->GetLastEventPosition()[1]; // JPRx 00071 // int dx = rwi->GetEventPosition()[0] ; // JPRx 00072 // int dy = rwi->GetEventPosition()[1] ; // JPRx 00073 00074 00075 switch (this->State) 00076 { 00077 case VTKIS_ROTATE: 00078 // this->FindPokedRenderer(x, y); 00079 this->Rotate(); 00080 // this->InvokeEvent(vtkCommand::InteractionEvent, NULL); 00081 break; 00082 00083 case VTKIS_PAN: 00084 // this->FindPokedRenderer(x, y); 00085 this->Pan(); 00086 // this->InvokeEvent(vtkCommand::InteractionEvent, NULL); 00087 break; 00088 00089 case VTKIS_DOLLY: 00090 // this->FindPokedRenderer(x, y); 00091 this->Dolly(); 00092 // this->InvokeEvent(vtkCommand::InteractionEvent, NULL); 00093 break; 00094 00095 case VTKIS_SPIN: 00096 // this->FindPokedRenderer(x, y); 00097 this->Spin(); 00098 // this->InvokeEvent(vtkCommand::InteractionEvent, NULL); 00099 break; 00100 } 00101 00102 00103 00104 }
void vtkInteractorStyleBaseView::OnMouseWheel | ( | ) | [virtual, inherited] |
Definition at line 79 of file vtkInteractorStyleBaseView.cxx.
References vtkInteractorStyleBaseView::CallLstInteractorStyleMaracas().
00080 { 00081 CallLstInteractorStyleMaracas( 14 ); 00082 }
void vtkInteractorStyleBaseView3D::OnRightButtonDown | ( | ) | [virtual] |
Reimplemented from vtkInteractorStyleBaseView.
Definition at line 15 of file vtkInteractorStyleBaseView3D.cxx.
00016 { 00017 vtkInteractorStyleBaseView::OnRightButtonDown(); 00018 00019 /* 00020 if (GetInteractor()->GetControlKey()==1 ){ 00021 this->vtkInteractorStyleTrackballCamera::OnRightButtonDown(); 00022 } 00023 */ 00024 this->FindPokedRenderer(this->Interactor->GetEventPosition()[0], 00025 this->Interactor->GetEventPosition()[1]); 00026 00027 if (this->CurrentRenderer == NULL) 00028 { 00029 return; 00030 } 00031 00032 if (this->Interactor->GetControlKey()) { 00033 this->StartDolly(); 00034 } 00035 00036 }
void vtkInteractorStyleBaseView3D::OnRightButtonUp | ( | ) | [virtual] |
Reimplemented from vtkInteractorStyleBaseView.
Definition at line 38 of file vtkInteractorStyleBaseView3D.cxx.
00039 { 00040 vtkInteractorStyleBaseView::OnRightButtonUp(); 00041 00042 /* 00043 if (GetInteractor()->GetControlKey()==1 ){ 00044 this->vtkInteractorStyleTrackballCamera::OnRightButtonUp(); 00045 } 00046 */ 00047 00048 00049 switch (this->State) 00050 { 00051 case VTKIS_DOLLY: 00052 this->EndDolly(); 00053 break; 00054 } 00055 }
void vtkInteractorStyleBaseView::OnRightDClick | ( | ) | [virtual, inherited] |
Definition at line 74 of file vtkInteractorStyleBaseView.cxx.
References vtkInteractorStyleBaseView::CallLstInteractorStyleMaracas().
00075 { 00076 CallLstInteractorStyleMaracas( 12 ); 00077 }
void vtkInteractorStyleBaseView::RemoveInteractorStyleMaracas | ( | InteractorStyleMaracas * | interactorStyleMaracas | ) | [inherited] |
Definition at line 90 of file vtkInteractorStyleBaseView.cxx.
References vtkInteractorStyleBaseView::_lstInteractorStyleMaracas, and InteractorStyleMaracas::RemoveVtkInteractorStyleBaseView().
00091 { 00092 interactorStyleMaracas->RemoveVtkInteractorStyleBaseView(); 00093 int i, size = _lstInteractorStyleMaracas.size(); 00094 std::vector< InteractorStyleMaracas* >::iterator iter = _lstInteractorStyleMaracas.begin(); 00095 bool removed = false; 00096 for (i=0; !removed && i<size; i++) 00097 { 00098 if ( _lstInteractorStyleMaracas[i] == interactorStyleMaracas ) 00099 { 00100 _lstInteractorStyleMaracas.erase(iter); 00101 removed = true; 00102 } else { 00103 iter++; 00104 } 00105 } 00106 }
void vtkInteractorStyleBaseView::SetActiveAllInteractors | ( | bool | ok | ) | [inherited] |
Definition at line 285 of file vtkInteractorStyleBaseView.cxx.
References vtkInteractorStyleBaseView::_lstInteractorStyleMaracas, and InteractorStyleMaracas::SetActive().
00286 { 00287 InteractorStyleMaracas *intStyMar; 00288 int i,size=_lstInteractorStyleMaracas.size(); 00289 for (i=0;i<size;i++) 00290 { 00291 intStyMar = _lstInteractorStyleMaracas[i]; 00292 intStyMar->SetActive(ok); 00293 } 00294 00295 }
void vtkInteractorStyleBaseView::SetParent_refresh_waiting | ( | ) | [inherited] |
Definition at line 307 of file vtkInteractorStyleBaseView.cxx.
References vtkInteractorStyleBaseView::_parent_refresh_waiting.
Referenced by manualContour3VControler::AddPoint_Others(), manualContour3VControler::DeleteActualMousePoint_Others(), vtkmyPWCallback_3DPointWidget::Execute(), manualContour3VControler::InsertPoint_Others(), manualContour3DControler::MouseClickLeft(), manualContourPerpPlaneControler::MouseDLeft(), manualContour3VControler::MouseMove_Others(), manualContour3VControler::OnChar_Others(), vtkInteractorStylePlane2D::OnLeftDClick(), vtkInteractorStylePlane2D::OnMouseMove(), vtkInteractorStyleMPRView::OnMouseMove(), and vtkInteractorScrollZ::OnMouseMove().
00308 { 00309 _parent_refresh_waiting=true; 00310 }
void vtkInteractorStyleBaseView::SetRefresh_waiting | ( | ) | [inherited] |
Definition at line 297 of file vtkInteractorStyleBaseView.cxx.
References vtkInteractorStyleBaseView::_refresh_waiting.
Referenced by manualContourControler::MouseDLeft(), manualContourControler::MouseMove(), manualContourBaseControler::OnChar(), manualContour3DControler::OnChar(), vtkInfoTextImageInteractorPlane2D::OnMouseMove(), and vtkInfoTextImageInteractor::OnMouseMove().
00298 { 00299 _refresh_waiting=true; 00300 }
void vtkInteractorStyleBaseView::SetwxVtkBaseView | ( | wxVtkBaseView * | wxvtkbaseview | ) | [inherited] |
Definition at line 260 of file vtkInteractorStyleBaseView.cxx.
References vtkInteractorStyleBaseView::_wxvtkbaseview.
Referenced by wxVtk3DBaseView::Configure(), wxVtk2DView_TMP::Configure(), and wxVtk2DBaseView::SetInteractorStyleImage().
00261 { 00262 _wxvtkbaseview = wxvtkbaseview; 00263 }
void vtkInteractorStyleBaseView::TransformCoordinate | ( | double & | X, | |
double & | Y, | |||
double & | Z | |||
) | [virtual, inherited] |
Definition at line 237 of file vtkInteractorStyleBaseView.cxx.
References vtkInteractorStyleBaseView::GetWxVtk2DBaseView().
Referenced by vtkInteractorStyleMPRView::OnLeftButtonDown(), vtkInteractorStyleSphere::OnLeftButtonUp(), vtkInteractorStyleMPRView::OnLeftDClick(), and vtkInteractorStyleMPRView::OnMouseMove().
00238 { 00239 vtkImageViewer2 *imageViewer = ((wxVtk2DBaseView*)GetWxVtk2DBaseView())->_imageViewer2XYZ->GetVtkImageViewer2(); 00240 00241 imageViewer->GetRenderer()->SetDisplayPoint((int)X, (int)Y, (int)Z); 00242 imageViewer->GetRenderer()->DisplayToWorld(); 00243 double fP[4]; 00244 imageViewer->GetRenderer()->GetWorldPoint( fP ); 00245 00246 if ( fP[3] ){ 00247 fP[0] /= fP[3]; 00248 fP[1] /= fP[3]; 00249 fP[2] /= fP[3]; 00250 } 00251 00252 // EEDx5 00253 ((wxVtk2DBaseView*)GetWxVtk2DBaseView())->TransformCoordinate_spacing_ViewToModel(fP[0],fP[1],fP[2]); 00254 00255 X=fP[0]; 00256 Y=fP[1]; 00257 Z=fP[2]; 00258 }
void vtkInteractorStyleBaseView::UnBlockRefresh | ( | ) | [inherited] |
Definition at line 348 of file vtkInteractorStyleBaseView.cxx.
References vtkInteractorStyleBaseView::_blockRefresh.
Referenced by vtkmyPWCallback_3DPointWidget::Execute().
00349 { 00350 _blockRefresh=false; 00351 }
std::vector< InteractorStyleMaracas* > vtkInteractorStyleBaseView::_lstInteractorStyleMaracas [protected, inherited] |
Definition at line 62 of file vtkInteractorStyleBaseView.h.
Referenced by vtkInteractorStyleBaseView::AddInteractorStyleMaracas(), vtkInteractorStyleBaseView::CallLstInteractorStyleMaracas(), vtkInteractorStyleBaseView::InsertInteractorStyleMaracas(), vtkInteractorStyleBaseView::RemoveInteractorStyleMaracas(), and vtkInteractorStyleBaseView::SetActiveAllInteractors().