#include <manualContour3VControler.h>
Definition at line 10 of file manualContour3VControler.h.
manualContour3VControler::manualContour3VControler | ( | int | type | ) |
Definition at line 12 of file manualContour3VControler.cpp.
References _type.
Referenced by Clone().
00013 { 00014 _type=type; 00015 00016 //EEDhh 00017 // _manViewBaseCont1 = NULL; 00018 // _manViewBaseCont2 = NULL; 00019 // _manViewBaseCont3 = NULL; 00020 }
manualContour3VControler::~manualContour3VControler | ( | ) | [virtual] |
Definition at line 22 of file manualContour3VControler.cpp.
void manualContour3VControler::AddManualViewBaseContour | ( | manualViewBaseContour * | manViewBaseCont | ) |
Definition at line 174 of file manualContour3VControler.cpp.
References _lstManualViewBaseContour.
00175 { 00176 _lstManualViewBaseContour.push_back( manViewBaseCont ); 00177 }
void manualContour3VControler::AddPoint | ( | int | x, | |
int | y, | |||
int | z | |||
) | [virtual] |
Reimplemented from manualContourBaseControler.
Definition at line 73 of file manualContour3VControler.cpp.
References _type, _vtkmprbasedata, manualViewBaseContour::AddPoint(), manualBaseModel::AddPoint(), AddPoint_Others(), manualContourBaseControler::GetManualContourModel(), manualContourBaseControler::GetManualViewBaseContour(), vtkMPRBaseData::GetX(), vtkMPRBaseData::GetY(), vtkBaseData::GetZ(), and manualViewBaseContour::TransfromCoordViewWorld().
Referenced by InsertPoint().
00074 { 00075 00076 z=(int)_vtkmprbasedata->GetZ(); 00077 if (GetManualContourModel()!=NULL){ 00078 double xx = x; 00079 double yy = y; 00080 double zz = z; 00081 GetManualViewBaseContour()->TransfromCoordViewWorld(xx,yy,zz,_type); 00082 00083 if (_type==0) 00084 { 00085 xx=_vtkmprbasedata->GetX(); 00086 } 00087 00088 if (_type==1) 00089 { 00090 yy=_vtkmprbasedata->GetY(); 00091 } 00092 00093 00094 /*int id = */ GetManualContourModel()->AddPoint(xx,yy,zz); // JPRx 00095 GetManualViewBaseContour()->AddPoint(); 00096 AddPoint_Others(); 00097 00098 } 00099 }
void manualContour3VControler::AddPoint_Others | ( | ) |
Definition at line 52 of file manualContour3VControler.cpp.
References _lstManualViewBaseContour, InteractorStyleMaracas::_vtkInteractorStyleBaseView, manualViewBaseContour::AddPoint(), and vtkInteractorStyleBaseView::SetParent_refresh_waiting().
Referenced by manualContourPerpPlaneControler::AddPoint(), AddPoint(), and manualContour3V3DControler::AddPoint().
00053 { 00054 manualViewBaseContour *mvbc; 00055 int i,size=this->_lstManualViewBaseContour.size(); 00056 for ( i = 0 ; i < size ; i++ ) 00057 { 00058 mvbc = _lstManualViewBaseContour[i]; 00059 mvbc->AddPoint(); 00060 } 00061 00062 // EEDhh 00063 // if (_manViewBaseCont1!=NULL){ 00064 // _manViewBaseCont1->AddPoint(); 00065 // _manViewBaseCont2->AddPoint(); 00066 // _manViewBaseCont3->AddPoint(); 00067 // this->_vtkInteractorStyleBaseView->SetParent_refresh_waiting(); 00068 // } 00069 00070 this->_vtkInteractorStyleBaseView->SetParent_refresh_waiting(); 00071 }
manualContour3VControler * manualContour3VControler::Clone | ( | ) | [virtual] |
Reimplemented from manualContourControler.
Definition at line 27 of file manualContour3VControler.cpp.
References CopyAttributesTo(), GetType(), and manualContour3VControler().
00028 { 00029 manualContour3VControler * clone = new manualContour3VControler( this->GetType() ); 00030 CopyAttributesTo(clone); 00031 return clone; 00032 }
void manualContourControler::Configure | ( | ) | [virtual, inherited] |
Reimplemented from manualContourBaseControler.
Reimplemented in manualCircleControler, manualRoiControler, and manualRotationToolControler.
Definition at line 38 of file manualContourControler.cpp.
void manualContour3VControler::CopyAttributesTo | ( | manualContour3VControler * | cloneObject | ) |
Reimplemented from manualContourControler.
Definition at line 35 of file manualContour3VControler.cpp.
References GetVtkMPRBaseData(), and SetVtkMPRBaseData().
Referenced by Clone().
00036 { 00037 // Fathers object 00038 manualContourControler::CopyAttributesTo(cloneObject); 00039 00040 cloneObject->SetVtkMPRBaseData( this->GetVtkMPRBaseData() ); 00041 00042 // Remember to add ManualViewBaseContour with "AddManualViewBaseContour" 00043 00044 }
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 manualContour3VControler::DeleteActualMousePoint | ( | int | x, | |
int | y | |||
) | [virtual] |
Reimplemented from manualContourBaseControler.
Definition at line 241 of file manualContour3VControler.cpp.
References DeleteActualMousePoint_Others(), manualViewBaseContour::GetIdPoint(), manualContourBaseControler::GetManualViewBaseContour(), and manualContourBaseControler::GetZ().
00242 { 00243 int id=GetManualViewBaseContour()->GetIdPoint ( x , y , GetZ() ); 00244 if (id!=-1){ 00245 manualContourBaseControler::DeleteActualMousePoint( x , y ); 00246 DeleteActualMousePoint_Others( id ); 00247 } 00248 }
void manualContour3VControler::DeleteActualMousePoint_Others | ( | int | id | ) |
Definition at line 214 of file manualContour3VControler.cpp.
References _lstManualViewBaseContour, InteractorStyleMaracas::_vtkInteractorStyleBaseView, manualViewBaseContour::DeletePoint(), manualViewBaseContour::Refresh(), and vtkInteractorStyleBaseView::SetParent_refresh_waiting().
Referenced by manualContourPerpPlaneControler::DeleteActualMousePoint(), DeleteActualMousePoint(), and manualContour3V3DControler::DeleteActualMousePoint().
00215 { 00216 manualViewBaseContour *mvbc; 00217 int i,size=this->_lstManualViewBaseContour.size(); 00218 for ( i = 0 ; i < size ; i++ ) 00219 { 00220 mvbc = _lstManualViewBaseContour[i]; 00221 mvbc->DeletePoint(id); 00222 mvbc->Refresh(); 00223 } 00224 00225 /* 00226 if (_manViewBaseCont1!=NULL){ 00227 _manViewBaseCont1->DeletePoint(id); 00228 _manViewBaseCont2->DeletePoint(id); 00229 _manViewBaseCont3->DeletePoint(id); 00230 00231 _manViewBaseCont1->Refresh(); 00232 _manViewBaseCont2->Refresh(); 00233 _manViewBaseCont3->Refresh(); 00234 00235 this->_vtkInteractorStyleBaseView->SetParent_refresh_waiting(); 00236 } 00237 */ 00238 this->_vtkInteractorStyleBaseView->SetParent_refresh_waiting(); 00239 }
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(), AddPoint(), manualRoiControler::Configure(), manualRotationToolControler::InitRoi(), manualRoiControler::InitRoi(), manualLineControler::InitRoi(), manualCircleControler::InitRoi(), manualContourBaseControler::InsertPoint(), InsertPoint(), manualContourBaseControler::Magnet(), manualContourControler::MouseClickLeft(), manualContour3DControler::MouseClickLeft(), manualContourBaseControler::OnRightButtonDown(), manualContourContainer::refreshLumen(), manualContourContainer::refreshWall(), manualContourPerpPlaneControler::ResetOrientationPlane(), manualContour3DControler::ResetOrientationPlane(), SetPoint(), and manualRoiControler::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(), AddPoint(), manualContourPerpPlaneControler::DeleteActualMousePoint(), DeleteActualMousePoint(), manualContour3V3DControler::DeleteActualMousePoint(), manualRotationToolControler::InitRoi(), manualRoiControler::InitRoi(), manualLineControler::InitRoi(), manualCircleControler::InitRoi(), manualContourBaseControler::InsertPoint(), InsertPoint(), manualContourBaseControler::Magnet(), manualRotationToolControler::MouseClickLeft(), manualRoiControler::MouseClickLeft(), manualLineControler::MouseClickLeft(), manualContourControler::MouseClickLeft(), manualContour3DControler::MouseClickLeft(), manualCircleControler::MouseClickLeft(), manualContourPerpPlaneControler::MouseDLeft(), manualContourControler::MouseDLeft(), manualRotationToolControler::MouseMove(), manualRoiControler::MouseMove(), manualLineControler::MouseMove(), manualContourPerpPlaneControler::MouseMove(), manualContourControler::MouseMove(), MouseMove(), manualContour3V3DControler::MouseMove(), manualCircleControler::MouseMove(), MouseMove_Others(), manualContourBaseControler::MouseReleaseLeft(), manualContourBaseControler::OnChar(), manualContourBaseControler::OnMiddleButtonDown(), manualContourContainer::refreshLumen(), manualContourContainer::refreshWall(), manualContourBaseControler::ResetContour(), manualContourBaseControler::SetEditable(), manualContourBaseControler::SetPoint(), SetPoint(), manualContourBaseControler::SetPointX(), manualContourBaseControler::SetPointY(), manualContourBaseControler::SetPointZ(), and manualRoiControler::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(), manualRoiControler::MouseClickLeft(), manualLineControler::MouseClickLeft(), manualContourControler::MouseClickLeft(), manualContour3DControler::MouseClickLeft(), manualCircleControler::MouseClickLeft(), manualRotationToolControler::MouseMove(), manualRoiControler::MouseMove(), manualLineControler::MouseMove(), manualContourPerpPlaneControler::MouseMove(), manualContourControler::MouseMove(), manualContour3V3DControler::MouseMove(), and manualCircleControler::MouseMove().
00315 { 00316 return _state; 00317 }
int manualContour3VControler::GetType | ( | ) |
Definition at line 46 of file manualContour3VControler.cpp.
References _type.
Referenced by Clone().
00047 { 00048 return _type; 00049 }
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 }
vtkMPRBaseData * manualContour3VControler::GetVtkMPRBaseData | ( | ) |
Definition at line 185 of file manualContour3VControler.cpp.
References _vtkmprbasedata.
Referenced by CopyAttributesTo().
00186 { 00187 return _vtkmprbasedata; 00188 }
int manualContourBaseControler::GetZ | ( | ) | [virtual, inherited] |
Definition at line 448 of file manualContourBaseControler.cpp.
References manualContourBaseControler::_z.
Referenced by manualContourBaseControler::CopyAttributesTo(), manualContourPerpPlaneControler::DeleteActualMousePoint(), manualContourBaseControler::DeleteActualMousePoint(), DeleteActualMousePoint(), manualContour3V3DControler::DeleteActualMousePoint(), manualRotationToolControler::InitRoi(), manualRoiControler::InitRoi(), manualLineControler::InitRoi(), manualCircleControler::InitRoi(), manualContourBaseControler::Magnet(), manualRotationToolControler::MouseClickLeft(), manualRoiControler::MouseClickLeft(), manualLineControler::MouseClickLeft(), manualContourControler::MouseClickLeft(), manualCircleControler::MouseClickLeft(), manualContourBaseControler::MouseDLeft(), manualRotationToolControler::MouseMove(), manualRoiControler::MouseMove(), manualLineControler::MouseMove(), manualContourPerpPlaneControler::MouseMove(), manualContourControler::MouseMove(), MouseMove(), manualContour3V3DControler::MouseMove(), manualCircleControler::MouseMove(), manualContourBaseControler::MouseReleaseLeft(), and manualContourBaseControler::OnMiddleButtonDown().
00449 { 00450 return _z; 00451 }
void manualContour3VControler::InsertPoint | ( | int | x, | |
int | y, | |||
int | z | |||
) | [virtual] |
Reimplemented from manualContourBaseControler.
Definition at line 126 of file manualContour3VControler.cpp.
References _type, _vtkmprbasedata, AddPoint(), manualContourBaseControler::GetManualContourModel(), manualContourBaseControler::GetManualViewBaseContour(), vtkMPRBaseData::GetX(), vtkMPRBaseData::GetY(), vtkBaseData::GetZ(), manualViewBaseContour::InsertPoint(), manualBaseModel::InsertPoint(), InsertPoint_Others(), and manualViewBaseContour::TransfromCoordViewWorld().
00127 { 00128 int id=-1; 00129 if (GetManualContourModel()!=NULL){ 00130 if (GetManualContourModel()->GetSizeLstPoints()>1){ 00131 z=(int)_vtkmprbasedata->GetZ(); 00132 double xx = x; 00133 double yy = y; 00134 double zz = z; 00135 GetManualViewBaseContour()->TransfromCoordViewWorld(xx,yy,zz,_type); 00136 if (_type==0) 00137 { 00138 xx=_vtkmprbasedata->GetX(); 00139 } 00140 00141 if (_type==1) 00142 { 00143 yy=_vtkmprbasedata->GetY(); 00144 } 00145 00146 id = GetManualContourModel()->InsertPoint(xx,yy,zz); 00147 00148 GetManualViewBaseContour()->InsertPoint(id); 00149 InsertPoint_Others(0); 00150 00151 } else { 00152 AddPoint(x,y,z); 00153 } 00154 } 00155 }
void manualContour3VControler::InsertPoint_Others | ( | int | id | ) |
Definition at line 102 of file manualContour3VControler.cpp.
References _lstManualViewBaseContour, InteractorStyleMaracas::_vtkInteractorStyleBaseView, manualViewBaseContour::InsertPoint(), and vtkInteractorStyleBaseView::SetParent_refresh_waiting().
Referenced by manualContourPerpPlaneControler::InsertPoint(), InsertPoint(), and manualContour3V3DControler::InsertPoint().
00103 { 00104 00105 manualViewBaseContour *mvbc; 00106 int i,size=this->_lstManualViewBaseContour.size(); 00107 for ( i = 0 ; i < size ; i++ ) 00108 { 00109 mvbc = _lstManualViewBaseContour[i]; 00110 mvbc->InsertPoint(id); 00111 } 00112 00113 /*EEDhh 00114 if (_manViewBaseCont1!=NULL){ 00115 _manViewBaseCont1->InsertPoint(id); 00116 _manViewBaseCont2->InsertPoint(id); 00117 _manViewBaseCont3->InsertPoint(id); 00118 this->_vtkInteractorStyleBaseView->SetParent_refresh_waiting(); 00119 } 00120 */ 00121 00122 this->_vtkInteractorStyleBaseView->SetParent_refresh_waiting(); 00123 00124 }
bool manualContourBaseControler::IsEditable | ( | ) | [inherited] |
Definition at line 319 of file manualContourBaseControler.cpp.
References manualContourBaseControler::_editable.
Referenced by manualContourBaseControler::CopyAttributesTo(), manualContourBaseControler::Magnet(), manualRotationToolControler::MouseClickLeft(), manualRoiControler::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 manualContourControler::MouseClickLeft | ( | int | x, | |
int | y | |||
) | [virtual, inherited] |
Reimplemented from manualContourBaseControler.
Reimplemented in manualCircleControler, manualContour3DControler, manualLineControler, manualRoiControler, and manualRotationToolControler.
Definition at line 44 of file manualContourControler.cpp.
References manualContourControler::_bakIdPoint, manualContourControler::_easyCreation, InteractorStyleMaracas::_vtkInteractorStyleBaseView, manualContourBaseControler::AddPoint(), manualViewBaseContour::GetIdPoint(), manualContourBaseControler::GetManualContourModel(), manualContourBaseControler::GetManualViewBaseContour(), manualViewBaseContour::GetNumberOfPoints(), manualContourBaseControler::GetNumberOfPointsManualContour(), manualContourBaseControler::GetState(), manualContourBaseControler::GetZ(), manualViewBaseContour::InitMove(), manualContourBaseControler::InsertPoint(), manualContourBaseControler::IsEditable(), manualViewBaseContour::Refresh(), manualBaseModel::SetCloseContour(), manualContourBaseControler::SetMoving(), manualContourBaseControler::SetPosibleToMove(), manualViewBaseContour::SetSelected(), and manualContourBaseControler::SetState().
Referenced by wxImageViewerWidget::ExecuteEvent2().
00044 { 00045 00046 bool ok = false; 00047 int z = GetZ(); 00048 int size= GetManualViewBaseContour()->GetNumberOfPoints(); 00049 00050 // Insert a Control Point with shift+ClickLeft 00051 vtkRenderWindowInteractor *vtkrenderwindowinteractor = _vtkInteractorStyleBaseView->GetInteractor(); 00052 00053 if( IsEditable() ) 00054 { 00055 if ( (_vtkInteractorStyleBaseView!=NULL) && (GetState()==0) && ( (vtkrenderwindowinteractor!=NULL) && (vtkrenderwindowinteractor->GetShiftKey()==1) ) ) 00056 { 00057 ok=true; 00058 InsertPoint(x,y,z); 00059 size++; 00060 } 00061 // Start to Insert Control Points with ClickLeft (Empty contour) 00062 if ((GetState()==0) && (size==0) && (_easyCreation==true) ) 00063 { 00064 ok=true; 00065 SetState(1); 00066 GetManualContourModel()->SetCloseContour(false); 00067 AddPoint(x,y,z); 00068 } 00069 // Continuie to Insert Control Points with ClickLeft (After being empty the contour) 00070 if ((GetState()==1) && (_easyCreation==true) ) 00071 { 00072 ok=true; 00073 AddPoint(x,y,z); 00074 _bakIdPoint=GetNumberOfPointsManualContour() - 1; 00075 } 00076 // Insert Control Points IF Contour si Selected 00077 if ((GetState()==0) && GetManualViewBaseContour()->GetPosibleSelected() ) 00078 { 00079 ok=true; 00080 InsertPoint(x,y,z); 00081 _bakIdPoint = GetManualViewBaseContour()->GetIdPoint(x,y,z); 00082 SetState(6); 00083 } 00084 // Chose id of Control Point to be move 00085 if ( (GetState()==0 || GetState()==6) && (GetManualViewBaseContour()->GetIdPoint(x,y,z)!=-1 ) ) 00086 { 00087 ok=true; 00088 _bakIdPoint = GetManualViewBaseContour()->GetIdPoint(x,y,z); 00089 SetState(5); 00090 } 00091 // If nothing selected _state=7 00092 if ( (GetState()==0) && (GetManualViewBaseContour()->GetIdPoint(x,y,z)==-1 ) ) 00093 { 00094 //ok=true; 00095 _bakIdPoint = GetManualViewBaseContour()->GetIdPoint(x,y,z); 00096 SetState(7); 00097 } 00098 }else{ 00099 SetPosibleToMove( true ); 00100 GetManualViewBaseContour()->SetSelected( GetManualViewBaseContour()->GetPosibleSelected() ); 00101 } // IsEditable 00102 00103 if ( GetState() == 0 && GetManualViewBaseContour()->GetPosibleSelected() ) 00104 { 00105 SetMoving( true ); 00106 ok=true; 00107 GetManualViewBaseContour()->InitMove(x,y,z); 00108 SetState(6); 00109 } 00110 if (ok==true) 00111 { 00112 GetManualViewBaseContour()->Refresh(); 00113 } 00114 }
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 manualContour3VControler::MouseMove | ( | int | x, | |
int | y | |||
) | [virtual] |
Reimplemented from manualContourControler.
Definition at line 293 of file manualContour3VControler.cpp.
References manualViewBaseContour::GetIdPoint(), manualContourBaseControler::GetManualViewBaseContour(), manualContourBaseControler::GetZ(), and MouseMove_Others().
00294 { 00295 manualContourControler::MouseMove( x , y ); 00296 int id=GetManualViewBaseContour()->GetIdPoint(x,y,GetZ()); 00297 MouseMove_Others( id ); 00298 }
void manualContour3VControler::MouseMove_Others | ( | int | id | ) |
Definition at line 250 of file manualContour3VControler.cpp.
References _lstManualViewBaseContour, InteractorStyleMaracas::_vtkInteractorStyleBaseView, manualContourBaseControler::GetManualViewBaseContour(), manualViewBaseContour::Refresh(), manualViewBaseContour::SelectAllPossibleSelected(), vtkInteractorStyleBaseView::SetParent_refresh_waiting(), manualViewBaseContour::SetPointPosibleSelected(), and manualViewBaseContour::SetPosibleSelected().
Referenced by manualContourPerpPlaneControler::MouseMove(), MouseMove(), and manualContour3V3DControler::MouseMove().
00251 { 00252 manualViewBaseContour *mvbc; 00253 int i,size=this->_lstManualViewBaseContour.size(); 00254 for ( i = 0 ; i < size ; i++ ) 00255 { 00256 mvbc = _lstManualViewBaseContour[i]; 00257 mvbc->SelectAllPossibleSelected(false); 00258 if (id!=-1) 00259 { 00260 mvbc->SetPointPosibleSelected(id,true); 00261 } 00262 mvbc->SetPosibleSelected ( GetManualViewBaseContour()->GetPosibleSelected() ); 00263 mvbc->Refresh(); 00264 } 00265 00266 // EEDhh 00267 /* 00268 if (_manViewBaseCont1!=NULL){ 00269 _manViewBaseCont1->SelectAllPossibleSelected(false); 00270 _manViewBaseCont2->SelectAllPossibleSelected(false); 00271 _manViewBaseCont3->SelectAllPossibleSelected(false); 00272 if (id!=-1){ 00273 _manViewBaseCont1->SetPointPosibleSelected(id,true); 00274 _manViewBaseCont2->SetPointPosibleSelected(id,true); 00275 _manViewBaseCont3->SetPointPosibleSelected(id,true); 00276 } 00277 _manViewBaseCont1->SetPosibleSelected ( GetManualViewBaseContour()->GetPosibleSelected() ); 00278 _manViewBaseCont2->SetPosibleSelected ( GetManualViewBaseContour()->GetPosibleSelected() ); 00279 _manViewBaseCont3->SetPosibleSelected ( GetManualViewBaseContour()->GetPosibleSelected() ); 00280 00281 _manViewBaseCont1->Refresh(); 00282 _manViewBaseCont2->Refresh(); 00283 _manViewBaseCont3->Refresh(); 00284 00285 this->_vtkInteractorStyleBaseView->SetParent_refresh_waiting(); 00286 } 00287 */ 00288 this->_vtkInteractorStyleBaseView->SetParent_refresh_waiting(); 00289 00290 }
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 manualContour3VControler::OnChar | ( | ) | [virtual] |
Reimplemented from manualContourBaseControler.
Definition at line 319 of file manualContour3VControler.cpp.
References OnChar_Others().
00320 { 00321 manualContourControler::OnChar(); 00322 OnChar_Others(); 00323 return true; 00324 }
void manualContour3VControler::OnChar_Others | ( | ) |
Definition at line 301 of file manualContour3VControler.cpp.
References _lstManualViewBaseContour, InteractorStyleMaracas::_vtkInteractorStyleBaseView, manualViewBaseContour::Refresh(), and vtkInteractorStyleBaseView::SetParent_refresh_waiting().
Referenced by manualContourPerpPlaneControler::OnChar(), OnChar(), and manualContour3V3DControler::OnChar().
00302 { 00303 manualViewBaseContour *mvbc; 00304 int i,size=this->_lstManualViewBaseContour.size(); 00305 for ( i = 0 ; i < size ; i++ ) 00306 { 00307 mvbc = _lstManualViewBaseContour[i]; 00308 mvbc->Refresh(); 00309 } 00310 // EEDhh 00311 /* 00312 _manViewBaseCont1->Refresh(); 00313 _manViewBaseCont2->Refresh(); 00314 _manViewBaseCont3->Refresh(); 00315 */ 00316 this->_vtkInteractorStyleBaseView->SetParent_refresh_waiting(); 00317 }
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 manualContour3VControler::ResetContour | ( | ) | [virtual] |
Reimplemented from manualContourBaseControler.
Definition at line 326 of file manualContour3VControler.cpp.
References ResetContour_Others().
00327 { 00328 manualContourControler::ResetContour(); 00329 ResetContour_Others(); 00330 }
void manualContour3VControler::ResetContour_Others | ( | ) |
Definition at line 333 of file manualContour3VControler.cpp.
References _lstManualViewBaseContour, manualViewBaseContour::CreateNewContour(), and manualViewBaseContour::DeleteContour().
Referenced by manualContourPerpPlaneControler::ResetContour(), ResetContour(), and manualContour3V3DControler::ResetContour().
00334 { 00335 manualViewBaseContour *mvbc; 00336 int i,size=this->_lstManualViewBaseContour.size(); 00337 for ( i = 0 ; i < size ; i++ ) 00338 { 00339 mvbc = _lstManualViewBaseContour[i]; 00340 mvbc->DeleteContour(); 00341 mvbc->CreateNewContour(); 00342 } 00343 00344 // EEDhh 00345 /* 00346 _manViewBaseCont1->DeleteContour(); 00347 _manViewBaseCont2->DeleteContour(); 00348 _manViewBaseCont3->DeleteContour(); 00349 _manViewBaseCont1->CreateNewContour(); 00350 _manViewBaseCont2->CreateNewContour(); 00351 _manViewBaseCont3->CreateNewContour(); 00352 */ 00353 }
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 manualContour3VControler::SetPoint | ( | int | id, | |
int | x, | |||
int | y, | |||
int | z | |||
) | [virtual] |
Reimplemented from manualContourBaseControler.
Definition at line 190 of file manualContour3VControler.cpp.
References _type, _vtkmprbasedata, manualContourBaseControler::GetManualContourModel(), manualBaseModel::GetManualPoint(), manualContourBaseControler::GetManualViewBaseContour(), vtkMPRBaseData::GetX(), vtkMPRBaseData::GetY(), vtkBaseData::GetZ(), manualPoint::SetPoint(), and manualViewBaseContour::TransfromCoordViewWorld().
00191 { 00192 z=(int)_vtkmprbasedata->GetZ(); 00193 if ((GetManualViewBaseContour()!=NULL) && (id>=0)){ 00194 double xx = x; 00195 double yy = y; 00196 double zz = z; 00197 GetManualViewBaseContour()->TransfromCoordViewWorld(xx,yy,zz,_type); 00198 00199 if (_type==0) 00200 { 00201 xx=_vtkmprbasedata->GetX(); 00202 } 00203 if (_type==1) 00204 { 00205 yy=_vtkmprbasedata->GetY(); 00206 } 00207 00208 manualPoint *mp = GetManualContourModel()->GetManualPoint(id); 00209 mp->SetPoint(xx,yy,zz); 00210 00211 } 00212 }
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 manualRoiControler::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 manualRoiControler::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 manualContourBaseControler::SetState | ( | int | state | ) | [inherited] |
Definition at line 309 of file manualContourBaseControler.cpp.
References manualContourBaseControler::_state.
Referenced by manualContourBaseControler::CopyAttributesTo(), manualRotationToolControler::InitRoi(), manualRoiControler::InitRoi(), manualLineControler::InitRoi(), manualCircleControler::InitRoi(), wxMaracasImageBrowser02::LoadData(), manualRotationToolControler::MouseClickLeft(), manualRoiControler::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 manualContour3VControler::SetVtkMPRBaseData | ( | vtkMPRBaseData * | vtkmprbasedata | ) |
Definition at line 180 of file manualContour3VControler.cpp.
References _vtkmprbasedata.
Referenced by CopyAttributesTo().
00181 { 00182 _vtkmprbasedata=vtkmprbasedata; 00183 }
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().
std::vector< manualViewBaseContour* > manualContour3VControler::_lstManualViewBaseContour [private] |
Definition at line 45 of file manualContour3VControler.h.
Referenced by AddManualViewBaseContour(), AddPoint_Others(), DeleteActualMousePoint_Others(), InsertPoint_Others(), MouseMove_Others(), OnChar_Others(), and ResetContour_Others().
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().
int manualContour3VControler::_type [private] |
Definition at line 41 of file manualContour3VControler.h.
Referenced by AddPoint(), GetType(), InsertPoint(), manualContour3VControler(), and SetPoint().
vtkInteractorStyleBaseView* InteractorStyleMaracas::_vtkInteractorStyleBaseView [protected, inherited] |
Definition at line 45 of file InteractorStyleMaracas.h.
Referenced by AddPoint_Others(), DeleteActualMousePoint_Others(), InsertPoint_Others(), InteractorStyleMaracas::InteractorStyleMaracas(), manualContourControler::MouseClickLeft(), manualContour3DControler::MouseClickLeft(), manualContourPerpPlaneControler::MouseDLeft(), manualContourControler::MouseDLeft(), manualContourPerpPlaneControler::MouseMove(), manualContourControler::MouseMove(), manualContour3V3DControler::MouseMove(), MouseMove_Others(), manualContourBaseControler::OnChar(), manualContour3DControler::OnChar(), 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().
Definition at line 43 of file manualContour3VControler.h.
Referenced by AddPoint(), GetVtkMPRBaseData(), InsertPoint(), SetPoint(), and SetVtkMPRBaseData().
int manualContourBaseControler::_z [protected, inherited] |
Definition at line 142 of file manualContourBaseControler.h.
Referenced by manualContourBaseControler::GetZ(), manualContourBaseControler::manualContourBaseControler(), and manualContourBaseControler::SetZ().