#include <vtkInteractorManualPaint.h>
Public Member Functions | |
vtkInteractorManualPaint (ManualPaintControler *mpc) | |
virtual | ~vtkInteractorManualPaint () |
virtual bool | OnMouseMove () |
virtual bool | OnLeftButtonDown () |
virtual bool | OnLeftButtonUp () |
virtual InteractorStyleMaracas * | Clone () |
void | CopyAttributesTo (InteractorStyleMaracas *cloneObject) |
virtual bool | OnChar () |
virtual bool | OnMiddleButtonDown () |
virtual bool | OnMiddleButtonUp () |
virtual bool | OnRightButtonDown () |
virtual bool | OnRightButtonUp () |
virtual bool | OnLeftDClick () |
virtual bool | OnRightDClick () |
virtual bool | OnMiddleDClick () |
virtual bool | OnMouseWheel () |
void | SetVtkInteractorStyleBaseView (vtkInteractorStyleBaseView *_vtkInteractorStyleBaseView) |
void | RemoveVtkInteractorStyleBaseView () |
void | SetActive (bool active) |
bool | GetActive () |
Protected Attributes | |
vtkInteractorStyleBaseView * | _vtkInteractorStyleBaseView |
Private Attributes | |
bool | _state |
ManualPaintControler * | _manualPaintControler |
Definition at line 7 of file vtkInteractorManualPaint.h.
vtkInteractorManualPaint::vtkInteractorManualPaint | ( | ManualPaintControler * | mpc | ) |
Definition at line 9 of file vtkInteractorManualPaint.cpp.
References _manualPaintControler, and _state.
00010 { 00011 _manualPaintControler = mpc; 00012 _state = false; 00013 // _auxZ = 0; 00014 }
vtkInteractorManualPaint::~vtkInteractorManualPaint | ( | ) | [virtual] |
Definition at line 17 of file vtkInteractorManualPaint.cpp.
InteractorStyleMaracas * InteractorStyleMaracas::Clone | ( | ) | [virtual, inherited] |
Reimplemented in manualCircleControler, manualContour3DControler, manualContour3V3DControler, manualContour3VControler, manualContourBaseControler, manualContourControler, manualContourPerpPlaneControler, manualLineControler, manualRoiControler, and manualRotationToolControler.
Definition at line 18 of file InteractorStyleMaracas.cxx.
References InteractorStyleMaracas::CopyAttributesTo(), and InteractorStyleMaracas::InteractorStyleMaracas().
00019 { 00020 InteractorStyleMaracas * clone = new InteractorStyleMaracas(); 00021 CopyAttributesTo(clone); 00022 return clone; 00023 }
void InteractorStyleMaracas::CopyAttributesTo | ( | InteractorStyleMaracas * | cloneObject | ) | [inherited] |
Reimplemented in manualCircleControler, manualContour3DControler, manualContour3V3DControler, manualContour3VControler, manualContourBaseControler, manualContourControler, manualContourPerpPlaneControler, manualLineControler, manualRoiControler, and manualRotationToolControler.
Definition at line 27 of file InteractorStyleMaracas.cxx.
References InteractorStyleMaracas::GetActive(), and InteractorStyleMaracas::SetActive().
Referenced by InteractorStyleMaracas::Clone().
00028 { 00029 // Fathers object 00030 //<FATHERCLASS>::CopyAttributesTo(cloneObject); 00031 00032 cloneObject->SetActive( this->GetActive() ); 00033 }
bool InteractorStyleMaracas::GetActive | ( | ) | [inherited] |
Definition at line 116 of file InteractorStyleMaracas.cxx.
References InteractorStyleMaracas::_active.
Referenced by vtkInteractorStyleBaseView::CallLstInteractorStyleMaracas(), and InteractorStyleMaracas::CopyAttributesTo().
00117 { 00118 return _active; 00119 }
bool InteractorStyleMaracas::OnChar | ( | ) | [virtual, inherited] |
Reimplemented in manualContour3DControler, manualContour3V3DControler, manualContour3VControler, manualContourBaseControler, and manualContourPerpPlaneControler.
Definition at line 37 of file InteractorStyleMaracas.cxx.
Referenced by vtkInteractorStyleBaseView::CallLstInteractorStyleMaracas().
bool vtkInteractorManualPaint::OnLeftButtonDown | ( | ) | [virtual] |
Reimplemented from InteractorStyleMaracas.
Definition at line 22 of file vtkInteractorManualPaint.cpp.
References _state, and InteractorStyleMaracas::_vtkInteractorStyleBaseView.
00023 { 00024 vtkRenderWindowInteractor *interactor = _vtkInteractorStyleBaseView->GetInteractor(); 00025 if ((interactor->GetControlKey()==1) || (interactor->GetShiftKey()==1) ){ 00026 _state = true; 00027 // wxVtk2DBaseView *wxvtk2Dbaseview = (wxVtk2DBaseView*)_vtkInteractorStyleBaseView->GetWxVtk2DBaseView(); 00028 // _Z = wxvtk2Dbaseview->GetActualSlice(); 00029 } 00030 return true; 00031 }
bool vtkInteractorManualPaint::OnLeftButtonUp | ( | ) | [virtual] |
Reimplemented from InteractorStyleMaracas.
Definition at line 34 of file vtkInteractorManualPaint.cpp.
References _state.
00035 { 00036 _state = false; 00037 return true; 00038 }
bool InteractorStyleMaracas::OnLeftDClick | ( | ) | [virtual, inherited] |
Reimplemented in manualContourBaseControler, manualContourPerpPlaneControler, vtkInteractorStyle3DView, vtkInteractorStyleMPRView, and vtkInteractorStylePlane2D.
Definition at line 57 of file InteractorStyleMaracas.cxx.
Referenced by vtkInteractorStyleBaseView::CallLstInteractorStyleMaracas(), and manualContourPerpPlaneControler::MouseDLeft().
bool InteractorStyleMaracas::OnMiddleButtonDown | ( | ) | [virtual, inherited] |
Reimplemented in manualContourBaseControler, and manualInteractorWindowLevel.
Definition at line 62 of file InteractorStyleMaracas.cxx.
Referenced by vtkInteractorStyleBaseView::CallLstInteractorStyleMaracas().
bool InteractorStyleMaracas::OnMiddleButtonUp | ( | ) | [virtual, inherited] |
Reimplemented in manualContourBaseControler, and manualInteractorWindowLevel.
Definition at line 67 of file InteractorStyleMaracas.cxx.
Referenced by vtkInteractorStyleBaseView::CallLstInteractorStyleMaracas().
bool InteractorStyleMaracas::OnMiddleDClick | ( | ) | [virtual, inherited] |
Definition at line 72 of file InteractorStyleMaracas.cxx.
bool vtkInteractorManualPaint::OnMouseMove | ( | ) | [virtual] |
Reimplemented from InteractorStyleMaracas.
Definition at line 41 of file vtkInteractorManualPaint.cpp.
References _manualPaintControler, _state, InteractorStyleMaracas::_vtkInteractorStyleBaseView, wxVtk2DBaseView::GetActualSlice(), vtkInteractorStyleBaseView::GetWxVtk2DBaseView(), wxVtkBaseView::GetWxVTKRenderWindowInteractor(), ManualPaintControler::PaintImage(), and wxVtkBaseView::TransFromCoordScreenToWorld().
00042 { 00043 printf("EED vtkInteractorManualPaint::OnMouseMove \n"); 00044 if (_state==true) 00045 { 00046 wxVtk2DBaseView *wxvtk2Dbaseview = (wxVtk2DBaseView*)_vtkInteractorStyleBaseView->GetWxVtk2DBaseView(); 00047 wxVTKRenderWindowInteractor *wxVTKiren = wxvtk2Dbaseview->GetWxVTKRenderWindowInteractor(); 00048 int px,py; 00049 wxVTKiren->GetEventPosition(px,py); 00050 00051 int typeView = 2; 00052 double X = (double)px; 00053 double Y = (double)py; 00054 double Z = wxvtk2Dbaseview->GetActualSlice(); 00055 wxvtk2Dbaseview->TransFromCoordScreenToWorld(X, Y, Z,false, typeView); 00056 00057 // int px = _vtkInteractorStyleBaseView->GetInteractor()->GetEventPosition()[0]; 00058 // int py = _vtkInteractorStyleBaseView->GetInteractor()->GetEventPosition()[1]; 00059 printf("EED vtkInteractorManualPaint::OnMouseMove ----------------- %f %f %f\n", X,Y,Z); 00060 00061 _manualPaintControler->PaintImage((int)X,(int)Y,(int)Z); 00062 00063 /* 00064 wxvtk2Dbaseview->_imageViewer2XYZ->GetVtkImageViewer2()->Modified(); 00065 wxvtk2Dbaseview->_imageViewer2XYZ->GetVtkImageViewer2()->GetImageActor()->Modified(); 00066 wxvtk2Dbaseview->_imageViewer2XYZ->GetVtkImageViewer2()->GetImageActor()->SetDisplayExtent(0, 50+_auxZ, 0, 50,_Z, _Z ); 00067 wxvtk2Dbaseview->Refresh(); 00068 wxvtk2Dbaseview->RefreshView(); 00069 // wxvtk2Dbaseview->SetActualSlice(_Z+_auxZ); 00070 _auxZ=(_auxZ+1)%2; 00071 wxvtk2Dbaseview->_imageViewer2XYZ->GetVtkImageViewer2()->GetRenderer()->Render(); 00072 this->_vtkInteractorStyleBaseView->SetParent_refresh_waiting(); 00073 */ 00074 }// if _state 00075 return true; 00076 }
bool InteractorStyleMaracas::OnMouseWheel | ( | ) | [virtual, inherited] |
Definition at line 92 of file InteractorStyleMaracas.cxx.
Referenced by vtkInteractorStyleBaseView::CallLstInteractorStyleMaracas().
bool InteractorStyleMaracas::OnRightButtonDown | ( | ) | [virtual, inherited] |
Reimplemented in manualContourBaseControler, vtkInteractorScrollZ, and vtkInteractorStyleSphere.
Definition at line 77 of file InteractorStyleMaracas.cxx.
Referenced by vtkInteractorStyleBaseView::CallLstInteractorStyleMaracas().
bool InteractorStyleMaracas::OnRightButtonUp | ( | ) | [virtual, inherited] |
Reimplemented in manualContourBaseControler, vtkInteractorScrollZ, vtkInteractorStylePlane2D, and vtkInteractorStyleSphere.
Definition at line 82 of file InteractorStyleMaracas.cxx.
Referenced by vtkInteractorStyleBaseView::CallLstInteractorStyleMaracas().
bool InteractorStyleMaracas::OnRightDClick | ( | ) | [virtual, inherited] |
Definition at line 87 of file InteractorStyleMaracas.cxx.
Referenced by vtkInteractorStyleBaseView::CallLstInteractorStyleMaracas().
void InteractorStyleMaracas::RemoveVtkInteractorStyleBaseView | ( | ) | [inherited] |
Definition at line 106 of file InteractorStyleMaracas.cxx.
References InteractorStyleMaracas::_vtkInteractorStyleBaseView.
Referenced by vtkInteractorStyleBaseView::RemoveInteractorStyleMaracas().
00107 { 00108 _vtkInteractorStyleBaseView = NULL; 00109 }
void InteractorStyleMaracas::SetActive | ( | bool | active | ) | [inherited] |
Definition at line 111 of file InteractorStyleMaracas.cxx.
References InteractorStyleMaracas::_active.
Referenced by wxWidgetMesure2D::ActiveMessureTool(), wxWidgetMesure2D::ConfigureA(), wxEmptyPanel_3_Widget::ConfigureVTK(), ContourVOIWidget::ConfigureVTK(), wxMaracasCoutourTool::ConfigureVTK(), wxImageViewerWidget::ConstructVTK(), InteractorStyleMaracas::CopyAttributesTo(), manualContourContainer::createLumenContour(), wxImageViewerWidget::CreateNewManualContour(), manualContourContainer::createWallContour(), wxMaracasImageBrowser02::LoadData(), wxMaracasImageBrowser02::OnBtnResetRoi(), manualContourContainer::refreshLumen(), manualContourContainer::refreshWall(), manualContourContainer::restartLumenContour(), manualContourContainer::restartWallContour(), vtkInteractorStyleBaseView::SetActiveAllInteractors(), and wxMaracasImageBrowser02::SetROI().
00112 { 00113 _active = active; 00114 }
void InteractorStyleMaracas::SetVtkInteractorStyleBaseView | ( | vtkInteractorStyleBaseView * | _vtkInteractorStyleBaseView | ) | [inherited] |
Definition at line 99 of file InteractorStyleMaracas.cxx.
References InteractorStyleMaracas::_vtkInteractorStyleBaseView.
Referenced by vtkInteractorStyleBaseView::AddInteractorStyleMaracas(), and vtkInteractorStyleBaseView::InsertInteractorStyleMaracas().
00100 { 00101 _vtkInteractorStyleBaseView = vtkInteractorStyleBaseView; 00102 }
Definition at line 18 of file vtkInteractorManualPaint.h.
Referenced by OnMouseMove(), and vtkInteractorManualPaint().
bool vtkInteractorManualPaint::_state [private] |
Definition at line 17 of file vtkInteractorManualPaint.h.
Referenced by OnLeftButtonDown(), OnLeftButtonUp(), OnMouseMove(), and vtkInteractorManualPaint().
vtkInteractorStyleBaseView* InteractorStyleMaracas::_vtkInteractorStyleBaseView [protected, inherited] |
Definition at line 45 of file InteractorStyleMaracas.h.
Referenced by manualContour3VControler::AddPoint_Others(), manualContour3VControler::DeleteActualMousePoint_Others(), manualContour3VControler::InsertPoint_Others(), InteractorStyleMaracas::InteractorStyleMaracas(), manualContourControler::MouseClickLeft(), manualContour3DControler::MouseClickLeft(), manualContourPerpPlaneControler::MouseDLeft(), manualContourControler::MouseDLeft(), manualContourPerpPlaneControler::MouseMove(), manualContourControler::MouseMove(), manualContour3V3DControler::MouseMove(), manualContour3VControler::MouseMove_Others(), manualContourBaseControler::OnChar(), manualContour3DControler::OnChar(), manualContour3VControler::OnChar_Others(), vtkInteractorStyleSphere::OnLeftButtonDown(), vtkInteractorStylePlane2D::OnLeftButtonDown(), vtkInteractorStyleMPRView::OnLeftButtonDown(), OnLeftButtonDown(), manualContourBaseControler::OnLeftButtonDown(), manualContour3DControler::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(), OnMouseMove(), manualInteractorWindowLevel::OnMouseMove(), manualContourBaseControler::OnMouseMove(), vtkInteractorStyleSphere::OnRightButtonDown(), vtkInteractorScrollZ::OnRightButtonDown(), manualContourBaseControler::OnRightButtonDown(), vtkInteractorStyleSphere::OnRightButtonUp(), InteractorStyleMaracas::RemoveVtkInteractorStyleBaseView(), vtkInteractorStyle3DView::SelectMarchibCubePoint(), and InteractorStyleMaracas::SetVtkInteractorStyleBaseView().