#include <manualRoiControler.h>
Public Member Functions | |
manualRoiControler () | |
virtual | ~manualRoiControler () |
virtual manualRoiControler * | Clone () |
void | CopyAttributesTo (manualRoiControler *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) |
void | SetRoi (int x1, int y1, int x2, int y2) |
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 () |
Protected Attributes | |
int | _bakIdPoint |
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 10 of file manualRoiControler.h.
manualRoiControler::manualRoiControler | ( | ) |
Definition at line 12 of file manualRoiControler.cpp.
Referenced by Clone().
manualRoiControler::~manualRoiControler | ( | ) | [virtual] |
Definition at line 16 of file manualRoiControler.cpp.
void manualContourBaseControler::AddPoint | ( | int | x, | |
int | y, | |||
int | z | |||
) | [virtual, inherited] |
Reimplemented in manualContour3V3DControler, manualContour3VControler, and manualContourPerpPlaneControler.
Definition at line 453 of file manualContourBaseControler.cpp.
References manualViewBaseContour::AddPoint(), manualBaseModel::AddPoint(), manualContourBaseControler::GetManualContourModel(), manualContourBaseControler::GetManualViewBaseContour(), and manualViewBaseContour::TransfromCoordViewWorld().
Referenced by manualRotationToolControler::InitRoi(), InitRoi(), manualLineControler::InitRoi(), manualCircleControler::InitRoi(), manualRotationToolControler::MouseClickLeft(), MouseClickLeft(), manualLineControler::MouseClickLeft(), manualContourControler::MouseClickLeft(), and manualCircleControler::MouseClickLeft().
00454 { 00455 if (GetManualContourModel()!=NULL){ 00456 double xx = x; 00457 double yy = y; 00458 double zz = z; 00459 GetManualViewBaseContour()->TransfromCoordViewWorld(xx,yy,zz); 00460 /*int id =*/ GetManualContourModel()->AddPoint(xx,yy,zz); // JPRx 00461 GetManualViewBaseContour()->AddPoint(); 00462 // GetManualViewBaseContour()->UpdateViewPoint(id); 00463 } 00464 }
manualRoiControler * manualRoiControler::Clone | ( | ) | [virtual] |
Reimplemented from manualContourControler.
Definition at line 20 of file manualRoiControler.cpp.
References CopyAttributesTo(), and manualRoiControler().
00021 { 00022 manualRoiControler * clone = new manualRoiControler(); 00023 CopyAttributesTo(clone); 00024 return clone; 00025 }
void manualRoiControler::Configure | ( | ) | [virtual] |
Reimplemented from manualContourControler.
Definition at line 35 of file manualRoiControler.cpp.
References manualContourBaseControler::GetManualContourModel(), and manualBaseModel::SetNumberOfPointsSpline().
00036 { 00037 this->GetManualContourModel()->SetNumberOfPointsSpline(5); 00038 }
void manualRoiControler::CopyAttributesTo | ( | manualRoiControler * | cloneObject | ) |
Reimplemented from manualContourControler.
Definition at line 28 of file manualRoiControler.cpp.
Referenced by Clone().
00029 { 00030 // Fathers object 00031 manualContourBaseControler::CopyAttributesTo(cloneObject); 00032 }
void manualContourBaseControler::CreateNewManualContour | ( | ) | [inherited] |
Definition at line 377 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().
00377 { 00378 _manViewBaseCont->CreateNewContour(); 00379 }
void manualRoiControler::DeleteActualMousePoint | ( | int | x, | |
int | y | |||
) | [virtual] |
Reimplemented from manualContourBaseControler.
Definition at line 134 of file manualRoiControler.cpp.
void manualContourBaseControler::DeleteContour | ( | ) | [inherited] |
Definition at line 401 of file manualContourBaseControler.cpp.
References manualContourBaseControler::_manContModel, manualContourBaseControler::_manViewBaseCont, manualBaseModel::DeleteAllPoints(), and manualViewBaseContour::DeleteContour().
Referenced by wxImageViewerWidget::EraseManualContour(), and manualContourBaseControler::ResetContour().
00401 { 00402 _manViewBaseCont->DeleteContour(); 00403 _manContModel->DeleteAllPoints(); 00404 }
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 160 of file manualContourControler.cpp.
References manualContourControler::_easyCreation.
Referenced by manualContourControler::CopyAttributesTo().
00161 { 00162 return _easyCreation; 00163 }
bool manualContourBaseControler::GetIfCompleteCreation | ( | ) | [inherited] |
Definition at line 362 of file manualContourBaseControler.cpp.
References manualContourBaseControler::_created.
Referenced by manualContourBaseControler::CopyAttributesTo(), and manualContourBaseControler::MouseReleaseLeft().
00363 { 00364 return _created; 00365 }
bool manualContourBaseControler::GetKeyBoardMoving | ( | ) | [inherited] |
Definition at line 372 of file manualContourBaseControler.cpp.
References manualContourBaseControler::_keyBoardMoving.
Referenced by manualContourBaseControler::CopyAttributesTo(), and manualContourBaseControler::OnChar().
00373 { 00374 return _keyBoardMoving; 00375 }
manualBaseModel * manualContourBaseControler::GetManualContourModel | ( | ) | [inherited] |
Definition at line 246 of file manualContourBaseControler.cpp.
References manualContourBaseControler::_manContModel.
Referenced by manualContourBaseControler::AddPoint(), manualContour3VControler::AddPoint(), Configure(), manualRotationToolControler::InitRoi(), InitRoi(), manualLineControler::InitRoi(), manualCircleControler::InitRoi(), manualContourBaseControler::InsertPoint(), manualContour3VControler::InsertPoint(), manualContourBaseControler::Magnet(), manualContourControler::MouseClickLeft(), manualContour3DControler::MouseClickLeft(), manualContourBaseControler::OnRightButtonDown(), manualContourContainer::refreshLumen(), manualContourContainer::refreshWall(), manualContourPerpPlaneControler::ResetOrientationPlane(), manualContour3DControler::ResetOrientationPlane(), manualContour3VControler::SetPoint(), and SetRoi().
00247 { 00248 return _manContModel; 00249 }
manualViewBaseContour * manualContourBaseControler::GetManualViewBaseContour | ( | ) | [inherited] |
Definition at line 251 of file manualContourBaseControler.cpp.
References manualContourBaseControler::_manViewBaseCont.
Referenced by manualContourBaseControler::AddPoint(), manualContour3VControler::AddPoint(), manualContourPerpPlaneControler::DeleteActualMousePoint(), manualContour3VControler::DeleteActualMousePoint(), manualContour3V3DControler::DeleteActualMousePoint(), manualRotationToolControler::InitRoi(), InitRoi(), manualLineControler::InitRoi(), manualCircleControler::InitRoi(), manualContourBaseControler::InsertPoint(), manualContour3VControler::InsertPoint(), manualContourBaseControler::Magnet(), manualRotationToolControler::MouseClickLeft(), MouseClickLeft(), manualLineControler::MouseClickLeft(), manualContourControler::MouseClickLeft(), manualContour3DControler::MouseClickLeft(), manualCircleControler::MouseClickLeft(), manualContourPerpPlaneControler::MouseDLeft(), manualContourControler::MouseDLeft(), manualRotationToolControler::MouseMove(), MouseMove(), manualLineControler::MouseMove(), manualContourPerpPlaneControler::MouseMove(), manualContourControler::MouseMove(), manualContour3VControler::MouseMove(), manualContour3V3DControler::MouseMove(), manualCircleControler::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 SetRoi().
00252 { 00253 return _manViewBaseCont; 00254 }
int manualContourBaseControler::GetNumberOfPointsManualContour | ( | ) | [inherited] |
Definition at line 381 of file manualContourBaseControler.cpp.
References manualContourBaseControler::_manViewBaseCont, and manualViewBaseContour::GetNumberOfPoints().
Referenced by manualContourControler::MouseClickLeft().
00381 { 00382 return _manViewBaseCont->GetNumberOfPoints(); 00383 }
int manualContourBaseControler::GetNumberOfPointsSplineManualContour | ( | ) | [inherited] |
Definition at line 387 of file manualContourBaseControler.cpp.
References manualContourBaseControler::_manContModel, and manualBaseModel::GetNumberOfPointsSpline().
Referenced by manualContourContainer::getNumberOfLumenContourPoints(), wxImageViewerWidget::GetNumberOfPointsSplineManualContour(), and manualContourContainer::getNumberOfWallContourPoints().
00387 { 00388 //return _manViewBaseCont->GetNumberOfPointsSpline(); 00389 return _manContModel->GetNumberOfPointsSpline(); 00390 }
bool manualContourBaseControler::GetPosibleToMove | ( | ) | [inherited] |
Definition at line 337 of file manualContourBaseControler.cpp.
References manualContourBaseControler::_posibleToMove.
Referenced by manualContourBaseControler::CopyAttributesTo(), and manualContourControler::MouseMove().
00338 { 00339 return _posibleToMove; 00340 }
int manualContourBaseControler::GetState | ( | ) | [inherited] |
Definition at line 314 of file manualContourBaseControler.cpp.
References manualContourBaseControler::_state.
Referenced by manualContourBaseControler::CopyAttributesTo(), manualRotationToolControler::MouseClickLeft(), MouseClickLeft(), manualLineControler::MouseClickLeft(), manualContourControler::MouseClickLeft(), manualContour3DControler::MouseClickLeft(), manualCircleControler::MouseClickLeft(), manualRotationToolControler::MouseMove(), MouseMove(), manualLineControler::MouseMove(), manualContourPerpPlaneControler::MouseMove(), manualContourControler::MouseMove(), manualContour3V3DControler::MouseMove(), and manualCircleControler::MouseMove().
00315 { 00316 return _state; 00317 }
double * manualContourBaseControler::GetVectorPointsXManualContour | ( | ) | [inherited] |
Definition at line 393 of file manualContourBaseControler.cpp.
References manualContourBaseControler::_manViewBaseCont, and manualViewBaseContour::GetVectorPointsXManualContour().
Referenced by wxImageViewerWidget::GetVectorPointsXManualContour(), manualContourContainer::getXVectorLumenPoints(), and manualContourContainer::getXVectorWallPoints().
00393 { 00394 return _manViewBaseCont->GetVectorPointsXManualContour(); 00395 }
double * manualContourBaseControler::GetVectorPointsYManualContour | ( | ) | [inherited] |
Definition at line 397 of file manualContourBaseControler.cpp.
References manualContourBaseControler::_manViewBaseCont, and manualViewBaseContour::GetVectorPointsYManualContour().
Referenced by wxImageViewerWidget::GetVectorPointsYManualContour(), manualContourContainer::getYVectorLumenPoints(), and manualContourContainer::getYVectorWallPoints().
00397 { 00398 return _manViewBaseCont->GetVectorPointsYManualContour(); 00399 }
int manualContourBaseControler::GetZ | ( | ) | [virtual, inherited] |
Definition at line 448 of file manualContourBaseControler.cpp.
References manualContourBaseControler::_z.
Referenced by manualContourBaseControler::CopyAttributesTo(), manualContourPerpPlaneControler::DeleteActualMousePoint(), manualContourBaseControler::DeleteActualMousePoint(), manualContour3VControler::DeleteActualMousePoint(), manualContour3V3DControler::DeleteActualMousePoint(), manualRotationToolControler::InitRoi(), InitRoi(), manualLineControler::InitRoi(), manualCircleControler::InitRoi(), manualContourBaseControler::Magnet(), manualRotationToolControler::MouseClickLeft(), MouseClickLeft(), manualLineControler::MouseClickLeft(), manualContourControler::MouseClickLeft(), manualCircleControler::MouseClickLeft(), manualContourBaseControler::MouseDLeft(), manualRotationToolControler::MouseMove(), MouseMove(), manualLineControler::MouseMove(), manualContourPerpPlaneControler::MouseMove(), manualContourControler::MouseMove(), manualContour3VControler::MouseMove(), manualContour3V3DControler::MouseMove(), manualCircleControler::MouseMove(), manualContourBaseControler::MouseReleaseLeft(), and manualContourBaseControler::OnMiddleButtonDown().
00449 { 00450 return _z; 00451 }
void manualRoiControler::InitRoi | ( | int | ww, | |
int | hh, | |||
double | porcentage | |||
) |
Definition at line 138 of file manualRoiControler.cpp.
References manualContourBaseControler::AddPoint(), manualContourBaseControler::GetManualContourModel(), manualBaseModel::GetManualPoint(), manualContourBaseControler::GetManualViewBaseContour(), manualPoint::GetZ(), manualContourBaseControler::GetZ(), manualViewBaseContour::Refresh(), manualPoint::SetPoint(), manualContourBaseControler::SetState(), and manualViewBaseContour::UpdateViewPoint().
Referenced by wxMaracasImageBrowser02::OnBtnResetRoi(), and SetRoi().
00139 { 00140 int zz; 00141 manualPoint *mp; 00142 00143 if (GetManualContourModel()->GetSizeLstPoints() ==0) 00144 { 00145 zz = GetZ(); 00146 AddPoint(0,0,zz); 00147 AddPoint(0,0,zz); 00148 AddPoint(0,0,zz); 00149 AddPoint(0,0,zz); 00150 } 00151 00152 double pp1=porcentage; 00153 double pp2=1-porcentage; 00154 00155 mp = GetManualContourModel()->GetManualPoint(2); 00156 zz=(int)mp->GetZ(); 00157 mp->SetPoint(ww*pp1,hh*pp1,zz); 00158 00159 mp = GetManualContourModel()->GetManualPoint(1); 00160 zz=(int)mp->GetZ(); 00161 mp->SetPoint(ww*pp2,hh*pp1,zz); 00162 00163 mp = GetManualContourModel()->GetManualPoint(0); 00164 zz=(int)mp->GetZ(); 00165 mp->SetPoint(ww*pp2,hh*pp2,zz); 00166 00167 mp = GetManualContourModel()->GetManualPoint(3); 00168 zz=(int)mp->GetZ(); 00169 mp->SetPoint(ww*pp1,hh*pp2,zz); 00170 00171 GetManualViewBaseContour() ->UpdateViewPoint(0); 00172 GetManualViewBaseContour() ->UpdateViewPoint(1); 00173 GetManualViewBaseContour() ->UpdateViewPoint(2); 00174 GetManualViewBaseContour() ->UpdateViewPoint(3); 00175 00176 SetState(0); 00177 GetManualViewBaseContour()->Refresh(); 00178 }
void manualContourBaseControler::InsertPoint | ( | int | x, | |
int | y, | |||
int | z | |||
) | [virtual, inherited] |
Reimplemented in manualContour3DControler, manualContour3V3DControler, manualContour3VControler, and manualContourPerpPlaneControler.
Definition at line 466 of file manualContourBaseControler.cpp.
References manualViewBaseContour::AddPoint(), manualBaseModel::AddPoint(), manualContourBaseControler::GetManualContourModel(), manualContourBaseControler::GetManualViewBaseContour(), manualViewBaseContour::InsertPoint(), manualBaseModel::InsertPoint(), and manualViewBaseContour::TransfromCoordViewWorld().
Referenced by manualContourControler::MouseClickLeft().
00467 { 00468 //EEDzz 00469 int id=-1; 00470 if (GetManualContourModel()!=NULL){ 00471 double xx = x; 00472 double yy = y; 00473 double zz = z; 00474 GetManualViewBaseContour()->TransfromCoordViewWorld(xx,yy,zz); 00475 if (GetManualContourModel()->GetSizeLstPoints()>1){ 00476 id = GetManualContourModel()->InsertPoint(xx,yy,zz); 00477 GetManualViewBaseContour()->InsertPoint(id); 00478 // GetManualViewBaseContour()->UpdateViewPoint(id); 00479 } else { 00480 GetManualContourModel()->AddPoint(xx,yy,zz); 00481 GetManualViewBaseContour()->AddPoint(); 00482 // AddPoint(x,y,z); 00483 // GetManualViewBaseContour()->UpdateViewPoint(id); 00484 } 00485 } 00486 }
bool manualContourBaseControler::IsEditable | ( | ) | [inherited] |
Definition at line 319 of file manualContourBaseControler.cpp.
References manualContourBaseControler::_editable.
Referenced by manualContourBaseControler::CopyAttributesTo(), manualContourBaseControler::Magnet(), manualRotationToolControler::MouseClickLeft(), MouseClickLeft(), manualLineControler::MouseClickLeft(), manualContourControler::MouseClickLeft(), manualCircleControler::MouseClickLeft(), manualContourControler::MouseDLeft(), manualContourControler::MouseMove(), manualContourBaseControler::MouseReleaseLeft(), and manualContourBaseControler::OnChar().
00320 { 00321 return _editable; 00322 }
bool manualContourBaseControler::IsMoving | ( | ) | [inherited] |
Definition at line 347 of file manualContourBaseControler.cpp.
References manualContourBaseControler::_moving.
Referenced by manualContourBaseControler::CopyAttributesTo(), and manualContourControler::MouseMove().
00348 { 00349 return _moving; 00350 }
void manualContourBaseControler::Magnet | ( | int | x, | |
int | y | |||
) | [inherited] |
Definition at line 420 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().
00421 { 00422 if( IsEditable()) 00423 { 00424 /*int id= */ _manViewBaseCont->GetIdPoint(x,y,GetZ()); // JPRx 00425 if (GetManualContourModel()!=NULL){ 00426 double xx = x; 00427 double yy = y; 00428 double zz = GetZ(); 00429 GetManualViewBaseContour()->TransfromCoordViewWorld(xx,yy,zz); 00430 int id = GetManualContourModel()->GetIdPoint(xx,yy,zz,32000,-1); 00431 if (id!=-1) 00432 { 00433 manualPoint *mp = GetManualContourModel()->GetManualPoint(id); 00434 mp->SetPoint(xx,yy,zz); 00435 } 00436 // GetManualViewBaseContour()->UpdateViewPoint(id); 00437 } 00438 _state = 0; 00439 } 00440 }
void manualRoiControler::MouseClickLeft | ( | int | x, | |
int | y | |||
) | [virtual] |
Reimplemented from manualContourControler.
Definition at line 42 of file manualRoiControler.cpp.
References manualContourBaseControler::AddPoint(), bakIdPoint, manualViewBaseContour::GetIdPoint(), manualContourBaseControler::GetManualViewBaseContour(), manualViewBaseContour::GetNumberOfPoints(), manualContourBaseControler::GetState(), manualContourBaseControler::GetZ(), manualViewBaseContour::InitMove(), manualContourBaseControler::IsEditable(), manualViewBaseContour::Refresh(), and manualContourBaseControler::SetState().
00042 { 00043 int z = GetZ(); 00044 00045 if( IsEditable() ) 00046 { // move control point 00047 if ( (GetState()==0) && (GetManualViewBaseContour()->GetIdPoint(x,y,z)!=-1 ) ){ 00048 bakIdPoint = GetManualViewBaseContour()->GetIdPoint(x,y,z); 00049 SetState(5); 00050 } 00051 } // IsEditable 00052 00053 // Move contour 00054 if ((GetState()==0) && (GetManualViewBaseContour()->GetPosibleSelected()==true)) { 00055 GetManualViewBaseContour()->InitMove(x,y,z); 00056 SetState(6); 00057 } 00058 00059 // if the firs time create 4 control points and move one point 00060 int size=GetManualViewBaseContour()->GetNumberOfPoints(); 00061 if (GetState()==0) { 00062 if (size==0){ 00063 AddPoint(x,y,z); 00064 AddPoint(x,y,z); 00065 AddPoint(x,y,z); 00066 AddPoint(x,y,z); 00067 bakIdPoint = GetManualViewBaseContour()->GetIdPoint(x,y,z); 00068 SetState(1); 00069 } 00070 } 00071 00072 /*EED 21 Avril 2009 00073 if (GetState()==0) { 00074 if (size==0){ 00075 AddPoint(x,y,z); 00076 AddPoint(x,y,z); 00077 AddPoint(x,y,z); 00078 AddPoint(x,y,z); 00079 } else { 00080 SetPoint(0,x,y,z); 00081 SetPoint(1,x,y,z); 00082 SetPoint(2,x,y,z); 00083 SetPoint(3,x,y,z); 00084 } 00085 bakIdPoint = GetManualViewBaseContour()->GetIdPoint(x,y,z); 00086 SetState(5); 00087 } 00088 */ 00089 00090 GetManualViewBaseContour()->Refresh(); 00091 }
void manualContourBaseControler::MouseClickRight | ( | int | x, | |
int | y | |||
) | [virtual, inherited] |
Definition at line 261 of file manualContourBaseControler.cpp.
References manualContourBaseControler::_state, manualContourBaseControler::SetEditable(), and manualContourBaseControler::SetPosibleToMove().
Referenced by wxImageViewerWidget::ExecuteEvent2(), and manualContourBaseControler::OnRightButtonDown().
00262 { 00263 // if (_state==1) 00264 // { 00265 // _state=0; 00266 // } 00267 SetEditable( false ); 00268 SetPosibleToMove( false ); 00269 _state = 0; 00270 00271 //EED 24Avril2009 _state=7; 00272 }
void manualContourControler::MouseDLeft | ( | int | x, | |
int | y | |||
) | [virtual, inherited] |
Reimplemented from manualContourBaseControler.
Reimplemented in manualContourPerpPlaneControler.
Definition at line 142 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().
00143 { 00144 manualContourBaseControler::MouseDLeft( x, y); 00145 if ( IsEditable() ) 00146 { 00147 00148 GetManualViewBaseContour()->AddControlPoints(); 00149 GetManualViewBaseContour()->AddTextActor(); 00150 GetManualViewBaseContour()->Refresh(); 00151 this->_vtkInteractorStyleBaseView->SetRefresh_waiting(); 00152 } 00153 }
void manualRoiControler::MouseMove | ( | int | x, | |
int | y | |||
) | [virtual] |
Reimplemented from manualContourControler.
Definition at line 94 of file manualRoiControler.cpp.
References bakIdPoint, manualContourBaseControler::GetManualViewBaseContour(), manualContourBaseControler::GetState(), manualContourBaseControler::GetZ(), manualViewBaseContour::MoveContour(), manualViewBaseContour::Refresh(), manualViewBaseContour::SelectPosibleContour(), manualViewBaseContour::SelectPosiblePoint(), manualContourBaseControler::SetPoint(), manualContourBaseControler::SetPointX(), and manualContourBaseControler::SetPointY().
00095 { 00096 int z=GetZ(); 00097 00098 // this->_vtkInteractorStyleBaseView-> 00099 00100 00101 GetManualViewBaseContour()->SelectPosibleContour(x,y,z); 00102 GetManualViewBaseContour()->SelectPosiblePoint(x,y,z); 00103 00104 00105 if ( (GetState()==5) || (GetState()==1) ){ 00106 SetPoint( bakIdPoint , x , y ,z); 00107 if (bakIdPoint==0) 00108 { 00109 SetPointX( 1 , x ); 00110 SetPointY( 3 , y ); 00111 } 00112 if (bakIdPoint==1) 00113 { 00114 SetPointX( 0 , x ); 00115 SetPointY( 2 , y ); 00116 } 00117 if (bakIdPoint==2) 00118 { 00119 SetPointX( 3 , x ); 00120 SetPointY( 1 , y ); 00121 } 00122 if (bakIdPoint==3) 00123 { 00124 SetPointX( 2 , x ); 00125 SetPointY( 0 , y ); 00126 } 00127 } 00128 if (GetState()==6){ 00129 GetManualViewBaseContour()->MoveContour(x,y,z); 00130 } 00131 GetManualViewBaseContour()->Refresh(); 00132 }
void manualContourBaseControler::MouseReleaseLeft | ( | int | x, | |
int | y | |||
) | [virtual, inherited] |
Definition at line 274 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().
00275 { 00276 if (_state==5){ _state = 0; } 00277 if (_state==6){ _state = 0; } 00278 if (_state==7){ _state = 0; } 00279 SetMoving( false ); 00280 GetManualViewBaseContour()->SelectPosibleContour(x,y,GetZ()); 00281 if( GetIfCompleteCreation() && IsEditable() && !GetManualViewBaseContour()->GetPosibleSelected() && (GetManualViewBaseContour()->GetIdPoint(x,y,GetZ())==-1) ) 00282 { 00283 SetEditable( false ); 00284 SetPosibleToMove( false ); 00285 } 00286 }
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 00141 if ( _vtkInteractorStyleBaseView!=NULL) 00142 { 00143 int X,Y; 00144 wxVTKRenderWindowInteractor *_wxVTKiren; 00145 _wxVTKiren= _vtkInteractorStyleBaseView->GetWxVtk2DBaseView()->GetWxVTKRenderWindowInteractor(); 00146 _wxVTKiren->GetEventPosition( X , Y ); 00147 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, manualContourBaseControler::GetManualContourModel(), vtkInteractorStyleBaseView::GetWxVtk2DBaseView(), wxVtkBaseView::GetWxVTKRenderWindowInteractor(), manualContourBaseControler::MouseClickRight(), manualBaseModel::SetCloseContour(), manualContourBaseControler::SetCompleteCreation(), and manualContourBaseControler::SetKeyBoardMoving().
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 SetCompleteCreation( true ); 00228 SetKeyBoardMoving( false ); 00229 this->GetManualContourModel()->SetCloseContour(true); 00230 MouseClickRight(X,Y); 00231 } 00232 return true; 00233 }
bool manualContourBaseControler::OnRightButtonUp | ( | ) | [virtual, inherited] |
Reimplemented from InteractorStyleMaracas.
Definition at line 235 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 537 of file manualContourBaseControler.cpp.
References manualViewBaseContour::CreateNewContour(), manualContourBaseControler::DeleteContour(), manualContourBaseControler::GetManualViewBaseContour(), and manualContourBaseControler::SetState().
00538 { 00539 this->DeleteContour(); 00540 GetManualViewBaseContour()->CreateNewContour(); 00541 this->SetState(0); 00542 }
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 357 of file manualContourBaseControler.cpp.
References manualContourBaseControler::_created.
Referenced by manualContourBaseControler::CopyAttributesTo(), and manualContourBaseControler::OnRightButtonDown().
00358 { 00359 _created = condition; 00360 }
void manualContourControler::SetEasyCreation | ( | bool | easyCreation | ) | [inherited] |
Definition at line 155 of file manualContourControler.cpp.
References manualContourControler::_easyCreation.
Referenced by manualContourControler::CopyAttributesTo().
00156 { 00157 _easyCreation=easyCreation; 00158 }
void manualContourBaseControler::SetEditable | ( | bool | condition | ) | [virtual, inherited] |
Definition at line 324 of file manualContourBaseControler.cpp.
References manualContourBaseControler::_editable, manualContourBaseControler::GetManualViewBaseContour(), manualViewBaseContour::RemoveControlPoints(), and manualViewBaseContour::SetSelected().
Referenced by manualContourBaseControler::CopyAttributesTo(), manualContourBaseControler::MouseClickRight(), and manualContourBaseControler::MouseReleaseLeft().
00325 { 00326 if (GetManualViewBaseContour()!=NULL) { 00327 if( !condition ) 00328 { 00329 GetManualViewBaseContour()->RemoveControlPoints(); 00330 } 00331 GetManualViewBaseContour()->SetSelected( condition ); 00332 } 00333 _editable = condition; 00334 }
void manualContourBaseControler::SetKeyBoardMoving | ( | bool | condition | ) | [inherited] |
Definition at line 367 of file manualContourBaseControler.cpp.
References manualContourBaseControler::_keyBoardMoving.
Referenced by manualContourBaseControler::CopyAttributesTo(), manualContourBaseControler::OnChar(), manualContourBaseControler::OnLeftButtonDown(), and manualContourBaseControler::OnRightButtonDown().
00368 { 00369 _keyBoardMoving = condition; 00370 }
void manualContourBaseControler::SetModelView | ( | manualBaseModel * | manContModel, | |
manualViewBaseContour * | manViewBaseCont | |||
) | [inherited] |
Definition at line 240 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().
00240 { 00241 _manContModel = manContModel; 00242 _manViewBaseCont = manViewBaseCont; 00243 _manViewBaseCont->SetEditable( &_editable ); 00244 }
void manualContourBaseControler::SetMoving | ( | bool | condition | ) | [inherited] |
Definition at line 352 of file manualContourBaseControler.cpp.
References manualContourBaseControler::_moving.
Referenced by manualContourBaseControler::CopyAttributesTo(), manualContourControler::MouseClickLeft(), and manualContourBaseControler::MouseReleaseLeft().
00353 { 00354 _moving = condition; 00355 }
void manualContourBaseControler::SetPoint | ( | int | id, | |
int | x, | |||
int | y, | |||
int | z | |||
) | [virtual, inherited] |
Reimplemented in manualContour3VControler.
Definition at line 489 of file manualContourBaseControler.cpp.
References manualContourBaseControler::_manContModel, manualBaseModel::GetManualPoint(), manualContourBaseControler::GetManualViewBaseContour(), manualPoint::SetPoint(), manualViewBaseContour::TransfromCoordViewWorld(), and manualViewBaseContour::UpdateViewPoint().
Referenced by manualRotationToolControler::MouseMove(), MouseMove(), manualLineControler::MouseMove(), manualContourControler::MouseMove(), and manualCircleControler::MouseMove().
00489 { // virtual 00490 if ((GetManualViewBaseContour()!=NULL) && (id>=0)){ 00491 double xx = x; 00492 double yy = y; 00493 double zz = z; 00494 GetManualViewBaseContour()->TransfromCoordViewWorld(xx,yy,zz); 00495 manualPoint *mp = _manContModel->GetManualPoint(id); 00496 mp->SetPoint(xx,yy,zz); 00497 GetManualViewBaseContour()->UpdateViewPoint(id); 00498 } 00499 }
void manualContourBaseControler::SetPointX | ( | int | id, | |
int | x | |||
) | [inherited] |
Definition at line 501 of file manualContourBaseControler.cpp.
References manualContourBaseControler::_manContModel, manualBaseModel::GetManualPoint(), manualContourBaseControler::GetManualViewBaseContour(), manualPoint::SetPointX(), manualViewBaseContour::TransfromCoordViewWorld(), and manualViewBaseContour::UpdateViewPoint().
Referenced by MouseMove().
00501 { 00502 if ((GetManualViewBaseContour()!=NULL) && (id>=0)){ 00503 double xx = x; 00504 double yy = 0; 00505 double zz = 0; 00506 GetManualViewBaseContour()->TransfromCoordViewWorld(xx,yy,zz); 00507 manualPoint *mp = _manContModel->GetManualPoint(id); 00508 mp->SetPointX(xx); 00509 GetManualViewBaseContour()->UpdateViewPoint(id); 00510 } 00511 }
void manualContourBaseControler::SetPointY | ( | int | id, | |
int | y | |||
) | [inherited] |
Definition at line 513 of file manualContourBaseControler.cpp.
References manualContourBaseControler::_manContModel, manualBaseModel::GetManualPoint(), manualContourBaseControler::GetManualViewBaseContour(), manualPoint::SetPointY(), manualViewBaseContour::TransfromCoordViewWorld(), and manualViewBaseContour::UpdateViewPoint().
Referenced by MouseMove().
00513 { 00514 if ((GetManualViewBaseContour()!=NULL) && (id>=0)){ 00515 double xx = 0; 00516 double yy = y; 00517 double zz = 0; 00518 GetManualViewBaseContour()->TransfromCoordViewWorld(xx,yy,zz); 00519 manualPoint *mp = _manContModel->GetManualPoint(id); 00520 mp->SetPointY(yy); 00521 GetManualViewBaseContour()->UpdateViewPoint(id); 00522 } 00523 }
void manualContourBaseControler::SetPointZ | ( | int | id, | |
int | z | |||
) | [inherited] |
Definition at line 525 of file manualContourBaseControler.cpp.
References manualContourBaseControler::_manContModel, manualBaseModel::GetManualPoint(), manualContourBaseControler::GetManualViewBaseContour(), manualPoint::SetPointZ(), manualViewBaseContour::TransfromCoordViewWorld(), and manualViewBaseContour::UpdateViewPoint().
00525 { 00526 if ((GetManualViewBaseContour()!=NULL) && (id>=0)){ 00527 double xx = 0; 00528 double yy = 0; 00529 double zz = z; 00530 GetManualViewBaseContour()->TransfromCoordViewWorld(xx,yy,zz); 00531 manualPoint *mp = _manContModel->GetManualPoint(id); 00532 mp->SetPointZ(zz); 00533 GetManualViewBaseContour()->UpdateViewPoint(id); 00534 } 00535 }
void manualContourBaseControler::SetPosibleToMove | ( | bool | condition | ) | [inherited] |
Definition at line 342 of file manualContourBaseControler.cpp.
References manualContourBaseControler::_posibleToMove.
Referenced by manualContourBaseControler::CopyAttributesTo(), manualContourControler::MouseClickLeft(), manualContourBaseControler::MouseClickRight(), and manualContourBaseControler::MouseReleaseLeft().
00343 { 00344 _posibleToMove = condition; 00345 }
void manualRoiControler::SetRoi | ( | int | x1, | |
int | y1, | |||
int | x2, | |||
int | y2 | |||
) |
Definition at line 181 of file manualRoiControler.cpp.
References manualContourBaseControler::GetManualContourModel(), manualBaseModel::GetManualPoint(), manualContourBaseControler::GetManualViewBaseContour(), InitRoi(), manualPoint::SetPointX(), manualPoint::SetPointY(), and manualViewBaseContour::UpdateViewPoint().
Referenced by wxMaracasImageBrowser02::SetROI().
00182 { 00183 manualPoint *mp; 00184 InitRoi( 0 , 0 , 0.2 ); 00185 mp = GetManualContourModel()->GetManualPoint(2); 00186 mp->SetPointX(x1); 00187 mp->SetPointY(y1); 00188 00189 mp = GetManualContourModel()->GetManualPoint(1); 00190 mp->SetPointX(x2); 00191 mp->SetPointY(y1); 00192 00193 mp = GetManualContourModel()->GetManualPoint(0); 00194 mp->SetPointX(x2); 00195 mp->SetPointY(y2); 00196 00197 mp = GetManualContourModel()->GetManualPoint(3); 00198 mp->SetPointX(x1); 00199 mp->SetPointY(y2); 00200 00201 GetManualViewBaseContour() ->UpdateViewPoint(0); 00202 GetManualViewBaseContour() ->UpdateViewPoint(1); 00203 GetManualViewBaseContour() ->UpdateViewPoint(2); 00204 GetManualViewBaseContour() ->UpdateViewPoint(3); 00205 }
void manualContourBaseControler::SetState | ( | int | state | ) | [inherited] |
Definition at line 309 of file manualContourBaseControler.cpp.
References manualContourBaseControler::_state.
Referenced by manualContourBaseControler::CopyAttributesTo(), manualRotationToolControler::InitRoi(), InitRoi(), manualLineControler::InitRoi(), manualCircleControler::InitRoi(), wxMaracasImageBrowser02::LoadData(), manualRotationToolControler::MouseClickLeft(), MouseClickLeft(), manualLineControler::MouseClickLeft(), manualContourControler::MouseClickLeft(), manualCircleControler::MouseClickLeft(), manualContourBaseControler::ResetContour(), and wxImageViewerWidget::SetStateManualContour().
00310 { 00311 _state=state; 00312 }
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 443 of file manualContourBaseControler.cpp.
References manualContourBaseControler::_z.
Referenced by wxWidgetMesure2D::ConfigureA(), wxImageViewerWidget::ConstructVTK(), and manualContourBaseControler::CopyAttributesTo().
00444 { 00445 _z=z; 00446 }
int manualContourControler::_bakIdPoint [protected, inherited] |
Definition at line 28 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 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(), 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(), 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 manualRoiControler::bakIdPoint [private] |
Definition at line 27 of file manualRoiControler.h.
Referenced by MouseClickLeft(), and MouseMove().