#include <manualCircleControler.h>
Public Member Functions | |
manualCircleControler () | |
virtual | ~manualCircleControler () |
virtual manualCircleControler * | Clone () |
void | CopyAttributesTo (manualCircleControler *cloneObject) |
virtual void | MouseClickLeft (int x, int y) |
virtual void | MouseMove (int x, int y) |
virtual void | DeleteActualMousePoint (int x, int y) |
void | InitRoi (int ww, int hh, double porcentage) |
virtual void | Configure () |
virtual void | MouseDLeft (int x, int y) |
void | SetEasyCreation (bool easyCreation) |
bool | GetEasyCreation () |
virtual bool | OnChar () |
virtual bool | OnMouseMove () |
virtual bool | OnLeftButtonDown () |
virtual bool | OnLeftButtonUp () |
virtual bool | OnLeftDClick () |
virtual bool | OnMiddleButtonDown () |
virtual bool | OnMiddleButtonUp () |
virtual bool | OnRightButtonDown () |
virtual bool | OnRightButtonUp () |
void | SetModelView (manualBaseModel *manContModel, manualViewBaseContour *manViewBaseCont) |
manualBaseModel * | GetManualContourModel () |
manualViewBaseContour * | GetManualViewBaseContour () |
virtual void | MouseClickRight (int x, int y) |
virtual void | MouseReleaseLeft (int x, int y) |
void | SetState (int state) |
int | GetState () |
bool | IsEditable () |
virtual void | SetEditable (bool condition) |
bool | GetPosibleToMove () |
void | SetPosibleToMove (bool condition) |
bool | IsMoving () |
void | SetMoving (bool condition) |
void | SetCompleteCreation (bool condition) |
bool | GetIfCompleteCreation () |
void | SetKeyBoardMoving (bool condition) |
bool | GetKeyBoardMoving () |
void | CreateNewManualContour () |
int | GetNumberOfPointsManualContour () |
int | GetNumberOfPointsSplineManualContour () |
void | DeleteContour () |
double * | GetVectorPointsXManualContour () |
double * | GetVectorPointsYManualContour () |
void | SetZ (int z) |
virtual int | GetZ () |
virtual void | AddPoint (int x, int y, int z) |
virtual void | InsertPoint (int x, int y, int z) |
virtual void | SetPoint (int id, int x, int y, int z) |
void | SetPointX (int id, int x) |
void | SetPointY (int id, int y) |
void | SetPointZ (int id, int z) |
void | Magnet (int x, int y) |
virtual void | ResetContour () |
virtual bool | OnRightDClick () |
virtual bool | OnMiddleDClick () |
virtual bool | OnMouseWheel () |
void | SetVtkInteractorStyleBaseView (vtkInteractorStyleBaseView *_vtkInteractorStyleBaseView) |
void | RemoveVtkInteractorStyleBaseView () |
void | SetActive (bool active) |
bool | GetActive () |
Public Attributes | |
int | _bakIdPoint |
Protected Attributes | |
bool | _easyCreation |
manualViewBaseContour * | _manViewBaseCont |
manualBaseModel * | _manContModel |
int | _z |
int | _state |
bool | _editable |
bool | _posibleToMove |
bool | _moving |
bool | _created |
bool | _keyBoardMoving |
vtkInteractorStyleBaseView * | _vtkInteractorStyleBaseView |
Private Attributes | |
int | bakIdPoint |
Definition at line 11 of file manualCircleControler.h.
manualCircleControler::manualCircleControler | ( | ) |
Definition at line 14 of file manualCircleControler.cpp.
Referenced by Clone().
manualCircleControler::~manualCircleControler | ( | ) | [virtual] |
Definition at line 18 of file manualCircleControler.cpp.
void manualContourBaseControler::AddPoint | ( | int | x, | |
int | y, | |||
int | z | |||
) | [virtual, inherited] |
Reimplemented in manualContour3V3DControler, manualContour3VControler, and manualContourPerpPlaneControler.
Definition at line 454 of file manualContourBaseControler.cpp.
References manualViewBaseContour::AddPoint(), manualBaseModel::AddPoint(), manualContourBaseControler::GetManualContourModel(), manualContourBaseControler::GetManualViewBaseContour(), and manualViewBaseContour::TransfromCoordViewWorld().
Referenced by manualRotationToolControler::InitRoi(), manualRoiControler::InitRoi(), manualLineControler::InitRoi(), InitRoi(), manualRotationToolControler::MouseClickLeft(), manualRoiControler::MouseClickLeft(), manualLineControler::MouseClickLeft(), manualContourControler::MouseClickLeft(), and MouseClickLeft().
00455 { 00456 if (GetManualContourModel()!=NULL){ 00457 double xx = x; 00458 double yy = y; 00459 double zz = z; 00460 00461 GetManualViewBaseContour()->TransfromCoordViewWorld(xx,yy,zz); 00462 GetManualContourModel()->AddPoint(xx,yy,zz); 00463 GetManualViewBaseContour()->AddPoint(); 00464 // GetManualViewBaseContour()->UpdateViewPoint(id); 00465 } 00466 }
manualCircleControler * manualCircleControler::Clone | ( | ) | [virtual] |
Reimplemented from manualContourControler.
Definition at line 22 of file manualCircleControler.cpp.
References CopyAttributesTo(), and manualCircleControler().
00023 { 00024 manualCircleControler * clone = new manualCircleControler(); 00025 CopyAttributesTo(clone); 00026 return clone; 00027 }
void manualCircleControler::Configure | ( | ) | [virtual] |
Reimplemented from manualContourControler.
Definition at line 37 of file manualCircleControler.cpp.
void manualCircleControler::CopyAttributesTo | ( | manualCircleControler * | cloneObject | ) |
Reimplemented from manualContourControler.
Definition at line 30 of file manualCircleControler.cpp.
Referenced by Clone().
00031 { 00032 // Fathers object 00033 manualContourBaseControler::CopyAttributesTo(cloneObject); 00034 }
void manualContourBaseControler::CreateNewManualContour | ( | ) | [inherited] |
Definition at line 378 of file manualContourBaseControler.cpp.
References manualContourBaseControler::_manViewBaseCont, and manualViewBaseContour::CreateNewContour().
Referenced by wxWidgetMesure2D::ConfigureA(), wxEmptyPanel_3_Widget::ConfigureVTK(), ContourVOIWidget::ConfigureVTK(), wxMaracasCoutourTool::ConfigureVTK(), manualContourContainer::createLumenContour(), wxImageViewerWidget::CreateNewManualContour(), manualContourContainer::createWallContour(), wxMaracasImageBrowser02::LoadData(), manualContourContainer::refreshLumen(), manualContourContainer::refreshWall(), manualContourContainer::restartLumenContour(), and manualContourContainer::restartWallContour().
00378 { 00379 _manViewBaseCont->CreateNewContour(); 00380 }
void manualCircleControler::DeleteActualMousePoint | ( | int | x, | |
int | y | |||
) | [virtual] |
Reimplemented from manualContourBaseControler.
Definition at line 108 of file manualCircleControler.cpp.
void manualContourBaseControler::DeleteContour | ( | ) | [inherited] |
Definition at line 402 of file manualContourBaseControler.cpp.
References manualContourBaseControler::_manContModel, manualContourBaseControler::_manViewBaseCont, manualBaseModel::DeleteAllPoints(), and manualViewBaseContour::DeleteContour().
Referenced by wxImageViewerWidget::EraseManualContour(), and manualContourBaseControler::ResetContour().
00402 { 00403 _manViewBaseCont->DeleteContour(); 00404 _manContModel->DeleteAllPoints(); 00405 }
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 manualContourControler::GetEasyCreation | ( | ) | [inherited] |
Definition at line 161 of file manualContourControler.cpp.
References manualContourControler::_easyCreation.
Referenced by manualContourControler::CopyAttributesTo().
00162 { 00163 return _easyCreation; 00164 }
bool manualContourBaseControler::GetIfCompleteCreation | ( | ) | [inherited] |
Definition at line 363 of file manualContourBaseControler.cpp.
References manualContourBaseControler::_created.
Referenced by manualContourBaseControler::CopyAttributesTo(), and manualContourBaseControler::MouseReleaseLeft().
00364 { 00365 return _created; 00366 }
bool manualContourBaseControler::GetKeyBoardMoving | ( | ) | [inherited] |
Definition at line 373 of file manualContourBaseControler.cpp.
References manualContourBaseControler::_keyBoardMoving.
Referenced by manualContourBaseControler::CopyAttributesTo(), and manualContourBaseControler::OnChar().
00374 { 00375 return _keyBoardMoving; 00376 }
manualBaseModel * manualContourBaseControler::GetManualContourModel | ( | ) | [inherited] |
Definition at line 243 of file manualContourBaseControler.cpp.
References manualContourBaseControler::_manContModel.
Referenced by manualContourBaseControler::AddPoint(), manualContour3VControler::AddPoint(), manualRoiControler::Configure(), manualRotationToolControler::InitRoi(), manualRoiControler::InitRoi(), manualLineControler::InitRoi(), InitRoi(), manualContourBaseControler::InsertPoint(), manualContour3VControler::InsertPoint(), manualContourBaseControler::Magnet(), manualContourControler::MouseClickLeft(), manualContour3DControler::MouseClickLeft(), manualContourBaseControler::MouseClickRight(), manualContourContainer::refreshLumen(), manualContourContainer::refreshWall(), manualContourPerpPlaneControler::ResetOrientationPlane(), manualContour3DControler::ResetOrientationPlane(), manualContour3VControler::SetPoint(), and manualRoiControler::SetRoi().
00244 { 00245 return _manContModel; 00246 }
manualViewBaseContour * manualContourBaseControler::GetManualViewBaseContour | ( | ) | [inherited] |
Definition at line 248 of file manualContourBaseControler.cpp.
References manualContourBaseControler::_manViewBaseCont.
Referenced by manualContourBaseControler::AddPoint(), manualContour3VControler::AddPoint(), manualContourPerpPlaneControler::DeleteActualMousePoint(), manualContour3VControler::DeleteActualMousePoint(), manualContour3V3DControler::DeleteActualMousePoint(), manualRotationToolControler::InitRoi(), manualRoiControler::InitRoi(), manualLineControler::InitRoi(), InitRoi(), manualContourBaseControler::InsertPoint(), manualContour3VControler::InsertPoint(), manualContourBaseControler::Magnet(), manualRotationToolControler::MouseClickLeft(), manualRoiControler::MouseClickLeft(), manualLineControler::MouseClickLeft(), manualContourControler::MouseClickLeft(), manualContour3DControler::MouseClickLeft(), MouseClickLeft(), manualContourPerpPlaneControler::MouseDLeft(), manualContourControler::MouseDLeft(), manualRotationToolControler::MouseMove(), manualRoiControler::MouseMove(), manualLineControler::MouseMove(), manualContourPerpPlaneControler::MouseMove(), manualContourControler::MouseMove(), manualContour3VControler::MouseMove(), manualContour3V3DControler::MouseMove(), MouseMove(), manualContour3VControler::MouseMove_Others(), manualContourBaseControler::MouseReleaseLeft(), manualContourBaseControler::OnChar(), manualContourBaseControler::OnMiddleButtonDown(), manualContourContainer::refreshLumen(), manualContourContainer::refreshWall(), manualContourBaseControler::ResetContour(), manualContourBaseControler::SetEditable(), manualContourBaseControler::SetPoint(), manualContour3VControler::SetPoint(), manualContourBaseControler::SetPointX(), manualContourBaseControler::SetPointY(), manualContourBaseControler::SetPointZ(), and manualRoiControler::SetRoi().
00249 { 00250 return _manViewBaseCont; 00251 }
int manualContourBaseControler::GetNumberOfPointsManualContour | ( | ) | [inherited] |
Definition at line 382 of file manualContourBaseControler.cpp.
References manualContourBaseControler::_manViewBaseCont, and manualViewBaseContour::GetNumberOfPoints().
Referenced by manualContourControler::MouseClickLeft().
00382 { 00383 return _manViewBaseCont->GetNumberOfPoints(); 00384 }
int manualContourBaseControler::GetNumberOfPointsSplineManualContour | ( | ) | [inherited] |
Definition at line 388 of file manualContourBaseControler.cpp.
References manualContourBaseControler::_manContModel, and manualBaseModel::GetNumberOfPointsSpline().
Referenced by manualContourContainer::getNumberOfLumenContourPoints(), wxImageViewerWidget::GetNumberOfPointsSplineManualContour(), and manualContourContainer::getNumberOfWallContourPoints().
00388 { 00389 //return _manViewBaseCont->GetNumberOfPointsSpline(); 00390 return _manContModel->GetNumberOfPointsSpline(); 00391 }
bool manualContourBaseControler::GetPosibleToMove | ( | ) | [inherited] |
Definition at line 338 of file manualContourBaseControler.cpp.
References manualContourBaseControler::_posibleToMove.
Referenced by manualContourBaseControler::CopyAttributesTo(), and manualContourControler::MouseMove().
00339 { 00340 return _posibleToMove; 00341 }
int manualContourBaseControler::GetState | ( | ) | [inherited] |
Definition at line 315 of file manualContourBaseControler.cpp.
References manualContourBaseControler::_state.
Referenced by manualContourBaseControler::CopyAttributesTo(), manualRotationToolControler::MouseClickLeft(), manualRoiControler::MouseClickLeft(), manualLineControler::MouseClickLeft(), manualContourControler::MouseClickLeft(), manualContour3DControler::MouseClickLeft(), MouseClickLeft(), manualRotationToolControler::MouseMove(), manualRoiControler::MouseMove(), manualLineControler::MouseMove(), manualContourPerpPlaneControler::MouseMove(), manualContourControler::MouseMove(), manualContour3V3DControler::MouseMove(), and MouseMove().
00316 { 00317 return _state; 00318 }
double * manualContourBaseControler::GetVectorPointsXManualContour | ( | ) | [inherited] |
Definition at line 394 of file manualContourBaseControler.cpp.
References manualContourBaseControler::_manViewBaseCont, and manualViewBaseContour::GetVectorPointsXManualContour().
Referenced by wxImageViewerWidget::GetVectorPointsXManualContour(), manualContourContainer::getXVectorLumenPoints(), and manualContourContainer::getXVectorWallPoints().
00394 { 00395 return _manViewBaseCont->GetVectorPointsXManualContour(); 00396 }
double * manualContourBaseControler::GetVectorPointsYManualContour | ( | ) | [inherited] |
Definition at line 398 of file manualContourBaseControler.cpp.
References manualContourBaseControler::_manViewBaseCont, and manualViewBaseContour::GetVectorPointsYManualContour().
Referenced by wxImageViewerWidget::GetVectorPointsYManualContour(), manualContourContainer::getYVectorLumenPoints(), and manualContourContainer::getYVectorWallPoints().
00398 { 00399 return _manViewBaseCont->GetVectorPointsYManualContour(); 00400 }
int manualContourBaseControler::GetZ | ( | ) | [virtual, inherited] |
Definition at line 449 of file manualContourBaseControler.cpp.
References manualContourBaseControler::_z.
Referenced by manualContourBaseControler::CopyAttributesTo(), manualContourPerpPlaneControler::DeleteActualMousePoint(), manualContourBaseControler::DeleteActualMousePoint(), manualContour3VControler::DeleteActualMousePoint(), manualContour3V3DControler::DeleteActualMousePoint(), manualRotationToolControler::InitRoi(), manualRoiControler::InitRoi(), manualLineControler::InitRoi(), InitRoi(), manualContourBaseControler::Magnet(), manualRotationToolControler::MouseClickLeft(), manualRoiControler::MouseClickLeft(), manualLineControler::MouseClickLeft(), manualContourControler::MouseClickLeft(), MouseClickLeft(), manualContourBaseControler::MouseDLeft(), manualRotationToolControler::MouseMove(), manualRoiControler::MouseMove(), manualLineControler::MouseMove(), manualContourPerpPlaneControler::MouseMove(), manualContourControler::MouseMove(), manualContour3VControler::MouseMove(), manualContour3V3DControler::MouseMove(), MouseMove(), manualContourBaseControler::MouseReleaseLeft(), and manualContourBaseControler::OnMiddleButtonDown().
00450 { 00451 return _z; 00452 }
void manualCircleControler::InitRoi | ( | int | ww, | |
int | hh, | |||
double | porcentage | |||
) |
Definition at line 113 of file manualCircleControler.cpp.
References manualContourBaseControler::AddPoint(), manualContourBaseControler::GetManualContourModel(), manualBaseModel::GetManualPoint(), manualContourBaseControler::GetManualViewBaseContour(), manualPoint::GetZ(), manualContourBaseControler::GetZ(), manualViewBaseContour::Refresh(), manualPoint::SetPoint(), manualContourBaseControler::SetState(), and manualViewBaseContour::UpdateViewPoint().
00114 { 00115 int zz; 00116 manualPoint *mp; 00117 00118 if (GetManualContourModel()->GetSizeLstPoints() ==0) 00119 { 00120 zz = GetZ(); 00121 AddPoint(0,0,zz); 00122 AddPoint(0,0,zz); 00123 // AddPoint(0,0,zz); 00124 // AddPoint(0,0,zz); 00125 } 00126 00127 double pp1=porcentage; 00128 double pp2=1-porcentage; 00129 00130 // mp = GetManualContourModel()->GetManualPoint(2); 00131 // zz=(int)mp->GetZ(); 00132 // mp->SetPoint(ww*pp1,hh*pp1,zz); 00133 00134 mp = GetManualContourModel()->GetManualPoint(1); 00135 zz=(int)mp->GetZ(); 00136 mp->SetPoint(ww*pp2,hh*pp1,zz); 00137 00138 mp = GetManualContourModel()->GetManualPoint(0); 00139 zz=(int)mp->GetZ(); 00140 mp->SetPoint(ww*pp2,hh*pp2,zz); 00141 00142 // mp = GetManualContourModel()->GetManualPoint(3); 00143 // zz=(int)mp->GetZ(); 00144 // mp->SetPoint(ww*pp1,hh*pp2,zz); 00145 00146 GetManualViewBaseContour() ->UpdateViewPoint(0); 00147 GetManualViewBaseContour() ->UpdateViewPoint(1); 00148 // GetManualViewBaseContour() ->UpdateViewPoint(2); 00149 // GetManualViewBaseContour() ->UpdateViewPoint(3); 00150 00151 SetState(0); 00152 GetManualViewBaseContour()->Refresh(); 00153 }
void manualContourBaseControler::InsertPoint | ( | int | x, | |
int | y, | |||
int | z | |||
) | [virtual, inherited] |
Reimplemented in manualContour3DControler, manualContour3V3DControler, manualContour3VControler, and manualContourPerpPlaneControler.
Definition at line 468 of file manualContourBaseControler.cpp.
References manualViewBaseContour::AddPoint(), manualBaseModel::AddPoint(), manualContourBaseControler::GetManualContourModel(), manualContourBaseControler::GetManualViewBaseContour(), manualViewBaseContour::InsertPoint(), manualBaseModel::InsertPoint(), and manualViewBaseContour::TransfromCoordViewWorld().
Referenced by manualContourControler::MouseClickLeft().
00469 { 00470 //EEDzz 00471 int id=-1; 00472 if (GetManualContourModel()!=NULL){ 00473 double xx = x; 00474 double yy = y; 00475 double zz = z; 00476 GetManualViewBaseContour()->TransfromCoordViewWorld(xx,yy,zz); 00477 if (GetManualContourModel()->GetSizeLstPoints()>1){ 00478 id = GetManualContourModel()->InsertPoint(xx,yy,zz); 00479 GetManualViewBaseContour()->InsertPoint(id); 00480 // GetManualViewBaseContour()->UpdateViewPoint(id); 00481 } else { 00482 GetManualContourModel()->AddPoint(xx,yy,zz); 00483 GetManualViewBaseContour()->AddPoint(); 00484 // AddPoint(x,y,z); 00485 // GetManualViewBaseContour()->UpdateViewPoint(id); 00486 } 00487 } 00488 }
bool manualContourBaseControler::IsEditable | ( | ) | [inherited] |
Definition at line 320 of file manualContourBaseControler.cpp.
References manualContourBaseControler::_editable.
Referenced by manualContourBaseControler::CopyAttributesTo(), manualContourBaseControler::Magnet(), manualRotationToolControler::MouseClickLeft(), manualRoiControler::MouseClickLeft(), manualLineControler::MouseClickLeft(), manualContourControler::MouseClickLeft(), MouseClickLeft(), manualContourControler::MouseDLeft(), manualContourControler::MouseMove(), manualContourBaseControler::MouseReleaseLeft(), and manualContourBaseControler::OnChar().
00321 { 00322 return _editable; 00323 }
bool manualContourBaseControler::IsMoving | ( | ) | [inherited] |
Definition at line 348 of file manualContourBaseControler.cpp.
References manualContourBaseControler::_moving.
Referenced by manualContourBaseControler::CopyAttributesTo(), and manualContourControler::MouseMove().
00349 { 00350 return _moving; 00351 }
void manualContourBaseControler::Magnet | ( | int | x, | |
int | y | |||
) | [inherited] |
Definition at line 421 of file manualContourBaseControler.cpp.
References manualContourBaseControler::_manViewBaseCont, manualContourBaseControler::_state, manualBaseModel::GetIdPoint(), manualViewBaseContour::GetIdPoint(), manualContourBaseControler::GetManualContourModel(), manualBaseModel::GetManualPoint(), manualContourBaseControler::GetManualViewBaseContour(), manualContourBaseControler::GetZ(), manualContourBaseControler::IsEditable(), manualPoint::SetPoint(), and manualViewBaseContour::TransfromCoordViewWorld().
Referenced by manualContourBaseControler::OnChar().
00422 { 00423 if( IsEditable()) 00424 { 00425 /*int id= */ _manViewBaseCont->GetIdPoint(x,y,GetZ()); // JPRx 00426 if (GetManualContourModel()!=NULL){ 00427 double xx = x; 00428 double yy = y; 00429 double zz = GetZ(); 00430 GetManualViewBaseContour()->TransfromCoordViewWorld(xx,yy,zz); 00431 int id = GetManualContourModel()->GetIdPoint(xx,yy,zz,32000,-1); 00432 if (id!=-1) 00433 { 00434 manualPoint *mp = GetManualContourModel()->GetManualPoint(id); 00435 mp->SetPoint(xx,yy,zz); 00436 } 00437 // GetManualViewBaseContour()->UpdateViewPoint(id); 00438 } 00439 _state = 0; 00440 } 00441 }
void manualCircleControler::MouseClickLeft | ( | int | x, | |
int | y | |||
) | [virtual] |
Reimplemented from manualContourControler.
Definition at line 43 of file manualCircleControler.cpp.
References manualContourBaseControler::AddPoint(), bakIdPoint, manualViewBaseContour::GetIdPoint(), manualContourBaseControler::GetManualViewBaseContour(), manualViewBaseContour::GetNumberOfPoints(), manualContourBaseControler::GetState(), manualContourBaseControler::GetZ(), manualViewBaseContour::InitMove(), manualContourBaseControler::IsEditable(), manualViewBaseContour::Refresh(), and manualContourBaseControler::SetState().
00043 { 00044 int z = GetZ(); 00045 00046 if( IsEditable() ) 00047 { // move control point 00048 if ( (GetState()==0) && (GetManualViewBaseContour()->GetIdPoint(x,y,z)!=-1 ) ){ 00049 bakIdPoint = GetManualViewBaseContour()->GetIdPoint(x,y,z); 00050 SetState(5); 00051 } 00052 }// IsEditable 00053 00054 // move contour 00055 if ((GetState()==0) && (GetManualViewBaseContour()->GetPosibleSelected()==true)) { 00056 GetManualViewBaseContour()->InitMove(x,y,z); 00057 SetState(6); 00058 } 00059 00060 // firstime create 2 control points and move one control point 00061 int size=GetManualViewBaseContour()->GetNumberOfPoints(); 00062 if (GetState()==0) { 00063 if (size==0){ 00064 AddPoint(x,y,z); 00065 AddPoint(x,y,z); 00066 bakIdPoint = GetManualViewBaseContour()->GetIdPoint(x,y,z); 00067 SetState(1); 00068 } 00069 } 00070 00071 /*EED 21 Avril 2009 00072 if (GetState()==0) { 00073 if (size==0){ 00074 AddPoint(x,y,z); 00075 AddPoint(x,y,z); 00076 } else { 00077 SetPoint(0,x,y,z); 00078 SetPoint(1,x,y,z); 00079 } 00080 bakIdPoint = GetManualViewBaseContour()->GetIdPoint(x,y,z); 00081 SetState(5); 00082 } 00083 */ 00084 00085 GetManualViewBaseContour()->Refresh(); 00086 }
void manualContourBaseControler::MouseClickRight | ( | int | x, | |
int | y | |||
) | [virtual, inherited] |
Definition at line 258 of file manualContourBaseControler.cpp.
References manualContourBaseControler::_state, manualContourBaseControler::GetManualContourModel(), manualBaseModel::SetCloseContour(), manualContourBaseControler::SetCompleteCreation(), manualContourBaseControler::SetEditable(), manualContourBaseControler::SetKeyBoardMoving(), and manualContourBaseControler::SetPosibleToMove().
Referenced by wxImageViewerWidget::ExecuteEvent2(), and manualContourBaseControler::OnRightButtonDown().
00259 { 00260 SetCompleteCreation( true ); 00261 SetKeyBoardMoving( false ); 00262 this->GetManualContourModel()->SetCloseContour(true); 00263 00264 // if (_state==1) 00265 // { 00266 // _state=0; 00267 // } 00268 SetEditable( false ); 00269 SetPosibleToMove( false ); 00270 _state = 0; 00271 00272 //EED 24Avril2009 _state=7; 00273 }
void manualContourControler::MouseDLeft | ( | int | x, | |
int | y | |||
) | [virtual, inherited] |
Reimplemented from manualContourBaseControler.
Reimplemented in manualContourPerpPlaneControler.
Definition at line 143 of file manualContourControler.cpp.
References InteractorStyleMaracas::_vtkInteractorStyleBaseView, manualViewBaseContour::AddControlPoints(), manualViewBaseContour::AddTextActor(), manualContourBaseControler::GetManualViewBaseContour(), manualContourBaseControler::IsEditable(), manualViewBaseContour::Refresh(), and vtkInteractorStyleBaseView::SetRefresh_waiting().
Referenced by wxImageViewerWidget::ExecuteEvent2().
00144 { 00145 manualContourBaseControler::MouseDLeft( x, y); 00146 if ( IsEditable() ) 00147 { 00148 00149 GetManualViewBaseContour()->AddControlPoints(); 00150 GetManualViewBaseContour()->AddTextActor(); 00151 GetManualViewBaseContour()->Refresh(); 00152 this->_vtkInteractorStyleBaseView->SetRefresh_waiting(); 00153 } 00154 }
void manualCircleControler::MouseMove | ( | int | x, | |
int | y | |||
) | [virtual] |
Reimplemented from manualContourControler.
Definition at line 89 of file manualCircleControler.cpp.
References bakIdPoint, manualContourBaseControler::GetManualViewBaseContour(), manualContourBaseControler::GetState(), manualContourBaseControler::GetZ(), manualViewBaseContour::MoveContour(), manualViewBaseContour::Refresh(), manualViewBaseContour::SelectPosibleContour(), manualViewBaseContour::SelectPosiblePoint(), and manualContourBaseControler::SetPoint().
00090 { 00091 int z=GetZ(); 00092 // this->_vtkInteractorStyleBaseView-> 00093 00094 GetManualViewBaseContour()->SelectPosibleContour(x,y,z); 00095 GetManualViewBaseContour()->SelectPosiblePoint(x,y,z); 00096 00097 if (GetState()==1){ SetPoint( bakIdPoint , x , y ,z); } 00098 if (GetState()==5){ SetPoint( bakIdPoint , x , y ,z); } 00099 00100 if (GetState()==6){ 00101 GetManualViewBaseContour()->MoveContour(x,y,z); 00102 } 00103 GetManualViewBaseContour()->Refresh(); 00104 }
void manualContourBaseControler::MouseReleaseLeft | ( | int | x, | |
int | y | |||
) | [virtual, inherited] |
Definition at line 275 of file manualContourBaseControler.cpp.
References manualContourBaseControler::_state, manualContourBaseControler::GetIfCompleteCreation(), manualContourBaseControler::GetManualViewBaseContour(), manualContourBaseControler::GetZ(), manualContourBaseControler::IsEditable(), manualViewBaseContour::SelectPosibleContour(), manualContourBaseControler::SetEditable(), manualContourBaseControler::SetMoving(), and manualContourBaseControler::SetPosibleToMove().
Referenced by wxImageViewerWidget::ExecuteEvent2(), and manualContourBaseControler::OnLeftButtonUp().
00276 { 00277 if (_state==5){ _state = 0; } 00278 if (_state==6){ _state = 0; } 00279 if (_state==7){ _state = 0; } 00280 SetMoving( false ); 00281 GetManualViewBaseContour()->SelectPosibleContour(x,y,GetZ()); 00282 if( GetIfCompleteCreation() && IsEditable() && !GetManualViewBaseContour()->GetPosibleSelected() && (GetManualViewBaseContour()->GetIdPoint(x,y,GetZ())==-1) ) 00283 { 00284 SetEditable( false ); 00285 SetPosibleToMove( false ); 00286 } 00287 }
bool manualContourBaseControler::OnChar | ( | ) | [virtual, inherited] |
Reimplemented from InteractorStyleMaracas.
Reimplemented in manualContour3DControler, manualContour3V3DControler, manualContour3VControler, and manualContourPerpPlaneControler.
Definition at line 54 of file manualContourBaseControler.cpp.
References InteractorStyleMaracas::_vtkInteractorStyleBaseView, manualContourBaseControler::DeleteActualMousePoint(), manualContourBaseControler::GetKeyBoardMoving(), manualContourBaseControler::GetManualViewBaseContour(), vtkInteractorStyleBaseView::GetWxVtk2DBaseView(), wxVtkBaseView::GetWxVTKRenderWindowInteractor(), manualContourBaseControler::IsEditable(), manualContourBaseControler::Magnet(), manualViewBaseContour::MoveContour(), manualViewBaseContour::Refresh(), manualContourBaseControler::SetKeyBoardMoving(), and vtkInteractorStyleBaseView::SetRefresh_waiting().
Referenced by manualContourPerpPlaneControler::OnChar().
00055 { 00056 if ( _vtkInteractorStyleBaseView!=NULL ) 00057 { 00058 char keyCode = _vtkInteractorStyleBaseView->GetInteractor()-> GetKeyCode(); 00059 00060 int X,Y; 00061 wxVTKRenderWindowInteractor *_wxVTKiren; 00062 _wxVTKiren= _vtkInteractorStyleBaseView->GetWxVtk2DBaseView()->GetWxVTKRenderWindowInteractor(); 00063 _wxVTKiren->GetEventPosition(X, Y); 00064 //int Z = GetZ(); // JPRx 00065 // Delete Point 00066 if ((keyCode==8) || (keyCode==127)) 00067 { 00068 00069 if (!GetManualViewBaseContour()->GetPosibleSelected()==true) 00070 { 00071 DeleteActualMousePoint(X,Y); 00072 } 00073 GetManualViewBaseContour()->Refresh(); 00074 this->_vtkInteractorStyleBaseView->SetRefresh_waiting(); 00075 } 00076 else 00077 { 00078 // Magnet 00079 if (keyCode==32) 00080 { 00081 Magnet(X,Y); 00082 GetManualViewBaseContour()->Refresh(); 00083 this->_vtkInteractorStyleBaseView->SetRefresh_waiting(); 00084 } 00085 else if( !IsEditable() ) 00086 { 00087 if ( keyCode == 'L' ) 00088 { 00089 GetManualViewBaseContour()->MoveContour( -1, 0 ); 00090 SetKeyBoardMoving( true ); 00091 } 00092 else if ( keyCode == 'R' ) 00093 { 00094 GetManualViewBaseContour()->MoveContour( 1, 0 ); 00095 SetKeyBoardMoving( true ); 00096 } 00097 else if ( keyCode == 'U' ) 00098 { 00099 GetManualViewBaseContour()->MoveContour( 0, -1 ); 00100 SetKeyBoardMoving( true ); 00101 } 00102 else if ( keyCode == 'D' ) 00103 { 00104 GetManualViewBaseContour()->MoveContour( 0, 1 ); 00105 SetKeyBoardMoving( true ); 00106 } 00107 else if ( keyCode == 'W' )//Diagonal left down 00108 { 00109 GetManualViewBaseContour()->MoveContour( -1, 1 ); 00110 SetKeyBoardMoving( true ); 00111 } 00112 else if ( keyCode == 'Q' )//Diagonal left up 00113 { 00114 GetManualViewBaseContour()->MoveContour( -1, -1 ); 00115 SetKeyBoardMoving( true ); 00116 } 00117 else if( keyCode == 'P' )//Diagonal right up 00118 { 00119 GetManualViewBaseContour()->MoveContour( 1, -1 ); 00120 SetKeyBoardMoving( true ); 00121 } 00122 else if( keyCode == 'M' )//Diagonal right down 00123 { 00124 GetManualViewBaseContour()->MoveContour( 1, 1 ); 00125 SetKeyBoardMoving( true ); 00126 } 00127 if( GetKeyBoardMoving() ) 00128 { 00129 GetManualViewBaseContour()->Refresh(); 00130 this->_vtkInteractorStyleBaseView->SetRefresh_waiting(); 00131 } 00132 } 00133 } 00134 } 00135 return true; 00136 }
bool manualContourBaseControler::OnLeftButtonDown | ( | ) | [virtual, inherited] |
Reimplemented from InteractorStyleMaracas.
Reimplemented in manualContour3DControler.
Definition at line 157 of file manualContourBaseControler.cpp.
References InteractorStyleMaracas::_vtkInteractorStyleBaseView, vtkInteractorStyleBaseView::GetWxVtk2DBaseView(), wxVtkBaseView::GetWxVTKRenderWindowInteractor(), manualContourBaseControler::MouseClickLeft(), and manualContourBaseControler::SetKeyBoardMoving().
00158 { 00159 SetKeyBoardMoving( false ); 00160 if ( _vtkInteractorStyleBaseView!=NULL ) 00161 { 00162 int X,Y; 00163 wxVTKRenderWindowInteractor *wxVTKiren; 00164 wxVTKiren = _vtkInteractorStyleBaseView->GetWxVtk2DBaseView()->GetWxVTKRenderWindowInteractor(); 00165 wxVTKiren->GetEventPosition(X,Y); 00166 00167 MouseClickLeft(X,Y); 00168 } 00169 return true; 00170 }
bool manualContourBaseControler::OnLeftButtonUp | ( | ) | [virtual, inherited] |
Reimplemented from InteractorStyleMaracas.
Definition at line 172 of file manualContourBaseControler.cpp.
References InteractorStyleMaracas::_vtkInteractorStyleBaseView, vtkInteractorStyleBaseView::GetWxVtk2DBaseView(), wxVtkBaseView::GetWxVTKRenderWindowInteractor(), and manualContourBaseControler::MouseReleaseLeft().
00173 { 00174 if ( _vtkInteractorStyleBaseView!=NULL ) 00175 { 00176 int X,Y; 00177 wxVTKRenderWindowInteractor *wxVTKiren; 00178 wxVTKiren = _vtkInteractorStyleBaseView->GetWxVtk2DBaseView()->GetWxVTKRenderWindowInteractor(); 00179 wxVTKiren->GetEventPosition(X,Y); 00180 MouseReleaseLeft(X,Y); 00181 } 00182 return true; 00183 }
bool manualContourBaseControler::OnLeftDClick | ( | ) | [virtual, inherited] |
Reimplemented from InteractorStyleMaracas.
Reimplemented in manualContourPerpPlaneControler.
Definition at line 185 of file manualContourBaseControler.cpp.
References InteractorStyleMaracas::_vtkInteractorStyleBaseView, vtkInteractorStyleBaseView::GetWxVtk2DBaseView(), wxVtkBaseView::GetWxVTKRenderWindowInteractor(), and manualContourBaseControler::MouseDLeft().
00186 { 00187 if ( _vtkInteractorStyleBaseView!=NULL ) 00188 { 00189 int X,Y; 00190 wxVTKRenderWindowInteractor *wxVTKiren; 00191 wxVTKiren = _vtkInteractorStyleBaseView->GetWxVtk2DBaseView()->GetWxVTKRenderWindowInteractor(); 00192 wxVTKiren->GetEventPosition(X,Y); 00193 00194 this->MouseDLeft(X,Y); 00195 } 00196 return true; 00197 }
bool manualContourBaseControler::OnMiddleButtonDown | ( | ) | [virtual, inherited] |
Reimplemented from InteractorStyleMaracas.
Definition at line 199 of file manualContourBaseControler.cpp.
References InteractorStyleMaracas::_vtkInteractorStyleBaseView, manualContourBaseControler::GetManualViewBaseContour(), vtkInteractorStyleBaseView::GetWxVtk2DBaseView(), wxVtkBaseView::GetWxVTKRenderWindowInteractor(), manualContourBaseControler::GetZ(), and manualViewBaseContour::InitMove().
00200 { 00201 // SetKeyBoardMoving( false ); 00202 if ( _vtkInteractorStyleBaseView!=NULL ) 00203 { 00204 int X,Y; 00205 wxVTKRenderWindowInteractor *wxVTKiren; 00206 wxVTKiren = _vtkInteractorStyleBaseView->GetWxVtk2DBaseView()->GetWxVTKRenderWindowInteractor(); 00207 wxVTKiren->GetEventPosition(X,Y); 00208 GetManualViewBaseContour()->InitMove( X, Y,GetZ()); 00209 } 00210 return true; 00211 }
bool manualContourBaseControler::OnMiddleButtonUp | ( | ) | [virtual, inherited] |
Reimplemented from InteractorStyleMaracas.
Definition at line 213 of file manualContourBaseControler.cpp.
bool InteractorStyleMaracas::OnMiddleDClick | ( | ) | [virtual, inherited] |
Definition at line 72 of file InteractorStyleMaracas.cxx.
bool manualContourBaseControler::OnMouseMove | ( | ) | [virtual, inherited] |
Reimplemented from InteractorStyleMaracas.
Reimplemented in manualContourPerpPlaneControler.
Definition at line 138 of file manualContourBaseControler.cpp.
References InteractorStyleMaracas::_vtkInteractorStyleBaseView, vtkInteractorStyleBaseView::GetWxVtk2DBaseView(), wxVtkBaseView::GetWxVTKRenderWindowInteractor(), and manualContourBaseControler::MouseMove().
00139 { 00140 if ( _vtkInteractorStyleBaseView!=NULL) 00141 { 00142 int X,Y; 00143 wxVTKRenderWindowInteractor *_wxVTKiren; 00144 _wxVTKiren= _vtkInteractorStyleBaseView->GetWxVtk2DBaseView()->GetWxVTKRenderWindowInteractor(); 00145 _wxVTKiren->GetEventPosition( X , Y ); 00146 00147 printf("EED manualContourBaseControler::OnMouseMove %d %d\n",X,Y); 00148 00149 if ( (_vtkInteractorStyleBaseView->GetInteractor()->GetControlKey()==0) && 00150 (_vtkInteractorStyleBaseView->GetInteractor()->GetShiftKey()==0) ) { 00151 MouseMove(X,Y); 00152 } 00153 } 00154 return true; 00155 }
bool InteractorStyleMaracas::OnMouseWheel | ( | ) | [virtual, inherited] |
Definition at line 92 of file InteractorStyleMaracas.cxx.
Referenced by vtkInteractorStyleBaseView::CallLstInteractorStyleMaracas().
bool manualContourBaseControler::OnRightButtonDown | ( | ) | [virtual, inherited] |
Reimplemented from InteractorStyleMaracas.
Definition at line 218 of file manualContourBaseControler.cpp.
References InteractorStyleMaracas::_vtkInteractorStyleBaseView, vtkInteractorStyleBaseView::GetWxVtk2DBaseView(), wxVtkBaseView::GetWxVTKRenderWindowInteractor(), and manualContourBaseControler::MouseClickRight().
00219 { 00220 if( _vtkInteractorStyleBaseView!= NULL ) 00221 { 00222 int X,Y; 00223 wxVTKRenderWindowInteractor *wxVTKiren; 00224 wxVTKiren = _vtkInteractorStyleBaseView->GetWxVtk2DBaseView()->GetWxVTKRenderWindowInteractor(); 00225 wxVTKiren->GetEventPosition(X, Y); 00226 00227 MouseClickRight(X,Y); 00228 } 00229 return true; 00230 }
bool manualContourBaseControler::OnRightButtonUp | ( | ) | [virtual, inherited] |
Reimplemented from InteractorStyleMaracas.
Definition at line 232 of file manualContourBaseControler.cpp.
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 manualContourBaseControler::ResetContour | ( | ) | [virtual, inherited] |
Reimplemented in manualContour3V3DControler, manualContour3VControler, and manualContourPerpPlaneControler.
Definition at line 540 of file manualContourBaseControler.cpp.
References manualViewBaseContour::CreateNewContour(), manualContourBaseControler::DeleteContour(), manualContourBaseControler::GetManualViewBaseContour(), and manualContourBaseControler::SetState().
00541 { 00542 this->DeleteContour(); 00543 GetManualViewBaseContour()->CreateNewContour(); 00544 this->SetState(0); 00545 }
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 manualContourBaseControler::SetCompleteCreation | ( | bool | condition | ) | [inherited] |
Definition at line 358 of file manualContourBaseControler.cpp.
References manualContourBaseControler::_created.
Referenced by manualContourBaseControler::CopyAttributesTo(), and manualContourBaseControler::MouseClickRight().
00359 { 00360 _created = condition; 00361 }
void manualContourControler::SetEasyCreation | ( | bool | easyCreation | ) | [inherited] |
Definition at line 156 of file manualContourControler.cpp.
References manualContourControler::_easyCreation.
Referenced by manualContourControler::CopyAttributesTo().
00157 { 00158 _easyCreation=easyCreation; 00159 }
void manualContourBaseControler::SetEditable | ( | bool | condition | ) | [virtual, inherited] |
Definition at line 325 of file manualContourBaseControler.cpp.
References manualContourBaseControler::_editable, manualContourBaseControler::GetManualViewBaseContour(), manualViewBaseContour::RemoveControlPoints(), and manualViewBaseContour::SetSelected().
Referenced by manualContourBaseControler::CopyAttributesTo(), manualContourBaseControler::MouseClickRight(), and manualContourBaseControler::MouseReleaseLeft().
00326 { 00327 if (GetManualViewBaseContour()!=NULL) { 00328 if( !condition ) 00329 { 00330 GetManualViewBaseContour()->RemoveControlPoints(); 00331 } 00332 GetManualViewBaseContour()->SetSelected( condition ); 00333 } 00334 _editable = condition; 00335 }
void manualContourBaseControler::SetKeyBoardMoving | ( | bool | condition | ) | [inherited] |
Definition at line 368 of file manualContourBaseControler.cpp.
References manualContourBaseControler::_keyBoardMoving.
Referenced by manualContourBaseControler::CopyAttributesTo(), manualContourBaseControler::MouseClickRight(), manualContourBaseControler::OnChar(), and manualContourBaseControler::OnLeftButtonDown().
00369 { 00370 _keyBoardMoving = condition; 00371 }
void manualContourBaseControler::SetModelView | ( | manualBaseModel * | manContModel, | |
manualViewBaseContour * | manViewBaseCont | |||
) | [inherited] |
Definition at line 237 of file manualContourBaseControler.cpp.
References manualContourBaseControler::_editable, manualContourBaseControler::_manContModel, manualContourBaseControler::_manViewBaseCont, and manualViewBaseContour::SetEditable().
Referenced by wxWidgetMesure2D::ConfigureA(), wxEmptyPanel_3_Widget::ConfigureVTK(), ContourVOIWidget::ConfigureVTK(), wxMaracasCoutourTool::ConfigureVTK(), wxImageViewerWidget::ConstructVTK(), manualContourContainer::createLumenContour(), manualContourContainer::createWallContour(), wxMaracasImageBrowser02::LoadData(), manualContourContainer::restartLumenContour(), and manualContourContainer::restartWallContour().
00237 { 00238 _manContModel = manContModel; 00239 _manViewBaseCont = manViewBaseCont; 00240 _manViewBaseCont->SetEditable( &_editable ); 00241 }
void manualContourBaseControler::SetMoving | ( | bool | condition | ) | [inherited] |
Definition at line 353 of file manualContourBaseControler.cpp.
References manualContourBaseControler::_moving.
Referenced by manualContourBaseControler::CopyAttributesTo(), manualContourControler::MouseClickLeft(), and manualContourBaseControler::MouseReleaseLeft().
00354 { 00355 _moving = condition; 00356 }
void manualContourBaseControler::SetPoint | ( | int | id, | |
int | x, | |||
int | y, | |||
int | z | |||
) | [virtual, inherited] |
Reimplemented in manualContour3VControler.
Definition at line 491 of file manualContourBaseControler.cpp.
References manualContourBaseControler::_manContModel, manualBaseModel::GetManualPoint(), manualContourBaseControler::GetManualViewBaseContour(), manualPoint::SetPoint(), manualViewBaseContour::TransfromCoordViewWorld(), and manualViewBaseContour::UpdateViewPoint().
Referenced by manualRotationToolControler::MouseMove(), manualRoiControler::MouseMove(), manualLineControler::MouseMove(), manualContourControler::MouseMove(), and MouseMove().
00491 { // virtual 00492 if ((GetManualViewBaseContour()!=NULL) && (id>=0)){ 00493 double xx = x; 00494 double yy = y; 00495 double zz = z; 00496 00497 GetManualViewBaseContour()->TransfromCoordViewWorld(xx,yy,zz); 00498 manualPoint *mp = _manContModel->GetManualPoint(id); 00499 mp->SetPoint(xx,yy,zz); 00500 GetManualViewBaseContour()->UpdateViewPoint(id); 00501 } 00502 }
void manualContourBaseControler::SetPointX | ( | int | id, | |
int | x | |||
) | [inherited] |
Definition at line 504 of file manualContourBaseControler.cpp.
References manualContourBaseControler::_manContModel, manualBaseModel::GetManualPoint(), manualContourBaseControler::GetManualViewBaseContour(), manualPoint::SetPointX(), manualViewBaseContour::TransfromCoordViewWorld(), and manualViewBaseContour::UpdateViewPoint().
Referenced by manualRoiControler::MouseMove().
00504 { 00505 if ((GetManualViewBaseContour()!=NULL) && (id>=0)){ 00506 double xx = x; 00507 double yy = 0; 00508 double zz = 0; 00509 GetManualViewBaseContour()->TransfromCoordViewWorld(xx,yy,zz); 00510 manualPoint *mp = _manContModel->GetManualPoint(id); 00511 mp->SetPointX(xx); 00512 GetManualViewBaseContour()->UpdateViewPoint(id); 00513 } 00514 }
void manualContourBaseControler::SetPointY | ( | int | id, | |
int | y | |||
) | [inherited] |
Definition at line 516 of file manualContourBaseControler.cpp.
References manualContourBaseControler::_manContModel, manualBaseModel::GetManualPoint(), manualContourBaseControler::GetManualViewBaseContour(), manualPoint::SetPointY(), manualViewBaseContour::TransfromCoordViewWorld(), and manualViewBaseContour::UpdateViewPoint().
Referenced by manualRoiControler::MouseMove().
00516 { 00517 if ((GetManualViewBaseContour()!=NULL) && (id>=0)){ 00518 double xx = 0; 00519 double yy = y; 00520 double zz = 0; 00521 GetManualViewBaseContour()->TransfromCoordViewWorld(xx,yy,zz); 00522 manualPoint *mp = _manContModel->GetManualPoint(id); 00523 mp->SetPointY(yy); 00524 GetManualViewBaseContour()->UpdateViewPoint(id); 00525 } 00526 }
void manualContourBaseControler::SetPointZ | ( | int | id, | |
int | z | |||
) | [inherited] |
Definition at line 528 of file manualContourBaseControler.cpp.
References manualContourBaseControler::_manContModel, manualBaseModel::GetManualPoint(), manualContourBaseControler::GetManualViewBaseContour(), manualPoint::SetPointZ(), manualViewBaseContour::TransfromCoordViewWorld(), and manualViewBaseContour::UpdateViewPoint().
00528 { 00529 if ((GetManualViewBaseContour()!=NULL) && (id>=0)){ 00530 double xx = 0; 00531 double yy = 0; 00532 double zz = z; 00533 GetManualViewBaseContour()->TransfromCoordViewWorld(xx,yy,zz); 00534 manualPoint *mp = _manContModel->GetManualPoint(id); 00535 mp->SetPointZ(zz); 00536 GetManualViewBaseContour()->UpdateViewPoint(id); 00537 } 00538 }
void manualContourBaseControler::SetPosibleToMove | ( | bool | condition | ) | [inherited] |
Definition at line 343 of file manualContourBaseControler.cpp.
References manualContourBaseControler::_posibleToMove.
Referenced by manualContourBaseControler::CopyAttributesTo(), manualContourControler::MouseClickLeft(), manualContourBaseControler::MouseClickRight(), and manualContourBaseControler::MouseReleaseLeft().
00344 { 00345 _posibleToMove = condition; 00346 }
void manualContourBaseControler::SetState | ( | int | state | ) | [inherited] |
Definition at line 310 of file manualContourBaseControler.cpp.
References manualContourBaseControler::_state.
Referenced by manualContourBaseControler::CopyAttributesTo(), manualRotationToolControler::InitRoi(), manualRoiControler::InitRoi(), manualLineControler::InitRoi(), InitRoi(), wxMaracasImageBrowser02::LoadData(), manualRotationToolControler::MouseClickLeft(), manualRoiControler::MouseClickLeft(), manualLineControler::MouseClickLeft(), manualContourControler::MouseClickLeft(), MouseClickLeft(), manualContourBaseControler::ResetContour(), and wxImageViewerWidget::SetStateManualContour().
00311 { 00312 _state=state; 00313 }
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 }
void manualContourBaseControler::SetZ | ( | int | z | ) | [inherited] |
Definition at line 444 of file manualContourBaseControler.cpp.
References manualContourBaseControler::_z.
Referenced by wxWidgetMesure2D::ConfigureA(), wxImageViewerWidget::ConstructVTK(), and manualContourBaseControler::CopyAttributesTo().
00445 { 00446 _z=z; 00447 }
int manualContourControler::_bakIdPoint [inherited] |
Definition at line 27 of file manualContourControler.h.
Referenced by manualContourControler::MouseClickLeft(), and manualContourControler::MouseMove().
bool manualContourBaseControler::_created [protected, inherited] |
Definition at line 147 of file manualContourBaseControler.h.
Referenced by manualContourBaseControler::GetIfCompleteCreation(), manualContourBaseControler::manualContourBaseControler(), and manualContourBaseControler::SetCompleteCreation().
bool manualContourControler::_easyCreation [protected, inherited] |
Definition at line 30 of file manualContourControler.h.
Referenced by manualContourControler::GetEasyCreation(), manualContourControler::manualContourControler(), manualContourControler::MouseClickLeft(), and manualContourControler::SetEasyCreation().
bool manualContourBaseControler::_editable [protected, inherited] |
Definition at line 144 of file manualContourBaseControler.h.
Referenced by manualContourBaseControler::IsEditable(), manualContourBaseControler::manualContourBaseControler(), manualContourBaseControler::MouseDLeft(), manualContourBaseControler::SetEditable(), and manualContourBaseControler::SetModelView().
bool manualContourBaseControler::_keyBoardMoving [protected, inherited] |
Definition at line 148 of file manualContourBaseControler.h.
Referenced by manualContourBaseControler::GetKeyBoardMoving(), manualContourBaseControler::manualContourBaseControler(), and manualContourBaseControler::SetKeyBoardMoving().
manualBaseModel* manualContourBaseControler::_manContModel [protected, inherited] |
Definition at line 140 of file manualContourBaseControler.h.
Referenced by manualContourBaseControler::DeleteActualMousePoint(), manualContourBaseControler::DeleteContour(), manualContourBaseControler::GetManualContourModel(), manualContourBaseControler::GetNumberOfPointsSplineManualContour(), manualContourBaseControler::manualContourBaseControler(), manualContourBaseControler::SetModelView(), manualContourBaseControler::SetPoint(), manualContourBaseControler::SetPointX(), manualContourBaseControler::SetPointY(), and manualContourBaseControler::SetPointZ().
manualViewBaseContour* manualContourBaseControler::_manViewBaseCont [protected, inherited] |
Definition at line 137 of file manualContourBaseControler.h.
Referenced by manualContourBaseControler::CreateNewManualContour(), manualContourBaseControler::DeleteActualMousePoint(), manualContourBaseControler::DeleteContour(), manualContourBaseControler::GetManualViewBaseContour(), manualContourBaseControler::GetNumberOfPointsManualContour(), manualContourBaseControler::GetVectorPointsXManualContour(), manualContourBaseControler::GetVectorPointsYManualContour(), manualContourBaseControler::Magnet(), manualContourBaseControler::manualContourBaseControler(), manualContourBaseControler::MouseDLeft(), and manualContourBaseControler::SetModelView().
bool manualContourBaseControler::_moving [protected, inherited] |
Definition at line 146 of file manualContourBaseControler.h.
Referenced by manualContourBaseControler::IsMoving(), manualContourBaseControler::manualContourBaseControler(), and manualContourBaseControler::SetMoving().
bool manualContourBaseControler::_posibleToMove [protected, inherited] |
Definition at line 145 of file manualContourBaseControler.h.
Referenced by manualContourBaseControler::GetPosibleToMove(), manualContourBaseControler::manualContourBaseControler(), and manualContourBaseControler::SetPosibleToMove().
int manualContourBaseControler::_state [protected, inherited] |
Definition at line 143 of file manualContourBaseControler.h.
Referenced by manualContourBaseControler::DeleteActualMousePoint(), manualContourBaseControler::GetState(), manualContourBaseControler::Magnet(), manualContourBaseControler::manualContourBaseControler(), manualContourBaseControler::MouseClickRight(), manualContourBaseControler::MouseDLeft(), manualContourBaseControler::MouseReleaseLeft(), and manualContourBaseControler::SetState().
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(), vtkInteractorManualPaint::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(), vtkInteractorManualPaint::OnMouseMove(), manualInteractorWindowLevel::OnMouseMove(), manualContourBaseControler::OnMouseMove(), vtkInteractorStyleSphere::OnRightButtonDown(), vtkInteractorScrollZ::OnRightButtonDown(), manualContourBaseControler::OnRightButtonDown(), vtkInteractorStyleSphere::OnRightButtonUp(), InteractorStyleMaracas::RemoveVtkInteractorStyleBaseView(), vtkInteractorStyle3DView::SelectMarchibCubePoint(), and InteractorStyleMaracas::SetVtkInteractorStyleBaseView().
int manualContourBaseControler::_z [protected, inherited] |
Definition at line 142 of file manualContourBaseControler.h.
Referenced by manualContourBaseControler::GetZ(), manualContourBaseControler::manualContourBaseControler(), and manualContourBaseControler::SetZ().
int manualCircleControler::bakIdPoint [private] |
Definition at line 28 of file manualCircleControler.h.
Referenced by MouseClickLeft(), and MouseMove().