#include <manualViewContour.h>
Public Member Functions | |
manualViewContour () | |
virtual | ~manualViewContour () |
virtual manualViewContour * | Clone () |
void | CopyAttributesTo (manualViewContour *cloneObject) |
virtual int | GetType () |
virtual void | Save (FILE *pFile) |
virtual void | Open (FILE *pFile) |
virtual void | RefreshContour () |
virtual bool | ifTouchContour (int x, int y, int z) |
virtual void | InitMove (int x, int y, int z) |
virtual void | MoveContour (int x, int y, int z) |
virtual void | MoveContour (int horizontalUnits, int verticalUnits) |
virtual void | DeletePoint (int id) |
virtual void | ClearPoint (int id) |
void | SetMesureScale (double mesureScale) |
void | AddPoint () |
virtual void | AddPoint (manualViewPoint *manualViewPoint) |
void | InsertPoint (int id) |
void | DeleteContour () |
void | DeletePoint (int x, int y, int z) |
virtual void | UpdateViewPoint (int id) |
virtual void | UpdateViewPoints () |
void | SetSelected (bool selected) |
void | SetPosibleSelected (bool posibleSelected) |
bool | GetSelected () |
bool | GetPosibleSelected () |
void | DeleteSelectedPoints () |
bool | GetEditable () |
void | SetEditable (bool *condition) |
virtual int | GetIdPoint (int x, int y, int z) |
void | SelectPoint (int i, bool select) |
void | SelectLstPoints () |
void | SelectAllPoints (bool select) |
virtual int | SelectPosiblePoint (int x, int y, int z) |
bool | SelectPosibleContour (int x, int y, int z) |
void | SelectAllPossibleSelected (bool select) |
void | SetPointSelected (int id, bool select) |
void | SetPointPosibleSelected (int id, bool select) |
void | SetIfViewControlPoints (bool ifShow) |
bool | GetIfViewControlPoints () |
void | UnSelectPoint (int i) |
void | UnSelectLstPoints () |
void | UnSelectAllPoints () |
void | SetModel (manualBaseModel *manContModel) |
void | SetWxVtkBaseView (wxVtkBaseView *wxvtkbaseview) |
virtual void | Refresh () |
int | GetNumberOfPoints () |
void | CreateNewContour () |
double * | GetVectorPointsXManualContour () |
double * | GetVectorPointsYManualContour () |
double * | GetVectorPointsZManualContour () |
void | UpdateColorActor () |
void | SetRange (double range) |
double | GetRange () |
void | SetZ (int z) |
int | GetZ () |
wxVtkBaseView * | GetWxVtkBaseView () |
virtual void | GetMinMax (double &minX, double &minY, double &minZ, double &maxX, double &maxY, double &maxZ) |
virtual void | TransfromCoordViewWorld (double &X, double &Y, double &Z, int type=2) |
void | ClearContour () |
void | SetVisible (bool ok) |
void | SetShowText (bool ok) |
void | GetSpacing (double spc[3]) |
void | SetSpacing (double spc[3]) |
void | SetColorNormalContour (double r, double g, double b) |
void | GetColorNormalContour (double &r, double &g, double &b) |
void | SetColorEditContour (double r, double g, double b) |
void | GetColorEditContour (double &r, double &g, double &b) |
void | SetColorSelectContour (double r, double g, double b) |
void | GetColorSelectContour (double &r, double &g, double &b) |
void | AddCompleteContourActor (bool ifControlPoints=false) |
void | RemoveCompleteContourActor () |
virtual void | AddSplineActor () |
virtual void | RemoveSplineActor () |
virtual void | AddControlPoints () |
virtual void | RemoveControlPoints () |
void | AddTextActor () |
void | RemoveTextActor () |
void | InitTextActor () |
void | SetWidthLine (double width) |
double | GetWidthLine () |
virtual void | ConstructVTKObjects () |
Protected Attributes | |
double | _range |
double | _coulorEdit_r |
double | _coulorEdit_g |
double | _coulorEdit_b |
double | _coulorNormal_r |
double | _coulorNormal_g |
double | _coulorNormal_b |
double | _coulorSelection_r |
double | _coulorSelection_g |
double | _coulorSelection_b |
double | _widthline |
wxVtkBaseView * | _wxvtkbaseview |
bool | _selected |
bool * | _editable |
bool | _posibleSelected |
bool | _viewControlPoints |
bool | _show_text |
int | _id_viewPoint_for_text |
vtkTextActor * | _textActor |
manualBaseModel * | _manContModel |
vtkPoints * | _pts |
int | _sizePointsContour |
std::vector< manualViewPoint * > | _lstViewPoints |
double | _spc [3] |
Private Member Functions | |
virtual void | RefreshText () |
Private Attributes | |
double | _mesureScale |
std::vector< std::vector < double > > | _initialMovingPoints |
manualContourModel * | _initialConoturModel |
Definition at line 11 of file manualViewContour.h.
manualViewContour::manualViewContour | ( | ) |
Definition at line 7 of file manualViewContour.cpp.
References manualViewBaseContour::_id_viewPoint_for_text, _initialConoturModel, and _mesureScale.
Referenced by Clone().
00008 { 00009 _id_viewPoint_for_text = 0; 00010 _mesureScale = 1; 00011 _initialConoturModel = new manualContourModel(); 00012 }
manualViewContour::~manualViewContour | ( | ) | [virtual] |
Definition at line 14 of file manualViewContour.cpp.
References _initialConoturModel.
00015 { 00016 delete _initialConoturModel; 00017 }
void manualViewBaseContour::AddCompleteContourActor | ( | bool | ifControlPoints = false |
) | [inherited] |
Definition at line 81 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_viewControlPoints, manualViewBaseContour::_wxvtkbaseview, manualViewBaseContour::AddControlPoints(), manualViewBaseContour::AddSplineActor(), manualViewBaseContour::AddTextActor(), wxVtkBaseView::GetRenderer(), manualViewBaseContour::Refresh(), and manualViewBaseContour::RefreshContour().
Referenced by manualViewBaseContour::CreateNewContour().
00082 { 00083 _viewControlPoints = ifControlPoints; 00084 /*vtkRenderer * theRenderer = */ _wxvtkbaseview->GetRenderer(); // JPRx ?? 00085 //Adding the spline 00086 AddSplineActor(); 00087 00088 AddTextActor(); 00089 //Adding each control point 00090 if( ifControlPoints ) 00091 AddControlPoints(); 00092 RefreshContour(); 00093 Refresh(); 00094 }
void manualViewBaseContour::AddControlPoints | ( | ) | [virtual, inherited] |
Definition at line 172 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_lstViewPoints, manualViewBaseContour::_viewControlPoints, manualViewBaseContour::_wxvtkbaseview, wxVtkBaseView::GetRenderer(), and manualViewBaseContour::SetIfViewControlPoints().
Referenced by manualViewBaseContour::AddCompleteContourActor(), and manualContourControler::MouseDLeft().
00173 { 00174 vtkRenderer * theRenderer = _wxvtkbaseview->GetRenderer(); 00175 SetIfViewControlPoints( true ); 00176 if( _viewControlPoints ) 00177 { 00178 int i,size=_lstViewPoints.size(); 00179 for (i=0;i<size; i++) 00180 { 00181 vtkActor * pointActor = _lstViewPoints[i]->GetVtkActor(); 00182 theRenderer->AddActor( pointActor ); 00183 } 00184 } 00185 }
void manualViewBaseContour::AddPoint | ( | manualViewPoint * | manualViewPoint | ) | [virtual, inherited] |
Definition at line 343 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_lstViewPoints, manualViewBaseContour::_spc, manualViewBaseContour::_wxvtkbaseview, manualViewPoint::CreateVtkPointActor(), wxVtkBaseView::GetRenderer(), and manualViewPoint::SetSpacing().
00344 { 00345 _lstViewPoints.push_back( manualViewPoint ); 00346 00347 // EED 3 oct 2006 00348 manualViewPoint->SetSpacing(_spc); 00349 00350 vtkActor *actor = manualViewPoint->CreateVtkPointActor(); 00351 _wxvtkbaseview->GetRenderer()->AddActor( actor ); 00352 }
void manualViewBaseContour::AddPoint | ( | ) | [inherited] |
Definition at line 337 of file manualViewBaseContour.cpp.
References manualViewBaseContour::GetWxVtkBaseView().
Referenced by manualContourBaseControler::AddPoint(), manualContour3VControler::AddPoint(), manualContour3VControler::AddPoint_Others(), manualViewBaseContour::CopyAttributesTo(), manualContourBaseControler::InsertPoint(), manualContourContainer::refreshLumen(), manualContourContainer::refreshWall(), and wxMaracasCoutourTool::SetControlPoints().
00338 { 00339 manualViewPoint *mvp = new manualViewPoint( this->GetWxVtkBaseView() ); 00340 AddPoint( mvp ); 00341 }
void manualViewBaseContour::AddSplineActor | ( | ) | [virtual, inherited] |
Reimplemented in manualViewBullEye, and manualViewPoints.
Definition at line 144 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_contourVtkActor, manualViewBaseContour::_wxvtkbaseview, and wxVtkBaseView::GetRenderer().
Referenced by manualViewBaseContour::AddCompleteContourActor().
00145 { 00146 vtkRenderer * theRenderer = _wxvtkbaseview->GetRenderer(); 00147 if (_contourVtkActor!=NULL) 00148 theRenderer->AddActor( _contourVtkActor ); 00149 }
void manualViewBaseContour::AddTextActor | ( | ) | [inherited] |
Definition at line 187 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_textActor, manualViewBaseContour::_wxvtkbaseview, and wxVtkBaseView::GetRenderer().
Referenced by manualViewBaseContour::AddCompleteContourActor(), and manualContourControler::MouseDLeft().
00188 { 00189 _wxvtkbaseview->GetRenderer()->AddActor2D( _textActor ); 00190 }
void manualViewBaseContour::ClearContour | ( | ) | [inherited] |
Definition at line 854 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_contourVtkActor, manualViewBaseContour::_lstViewPoints, manualViewBaseContour::_wxvtkbaseview, manualViewBaseContour::ClearPoint(), manualViewBaseContour::DeleteVtkObjects(), wxVtkBaseView::GetRenderer(), and manualViewBaseContour::Refresh().
Referenced by manualContourContainer::clearLumen(), and manualContourContainer::clearWall().
00855 { 00856 if (_contourVtkActor!=NULL){ 00857 _wxvtkbaseview->GetRenderer()->RemoveActor( _contourVtkActor ); 00858 } 00859 DeleteVtkObjects(); 00860 int i,size=_lstViewPoints.size(); 00861 for (i=0;i<size;i++){ 00862 ClearPoint(0); 00863 } 00864 Refresh(); 00865 }
void manualViewContour::ClearPoint | ( | int | id | ) | [virtual] |
Reimplemented from manualViewBaseContour.
Definition at line 233 of file manualViewContour.cpp.
References DeletePoint().
00234 { 00235 manualViewBaseContour::DeletePoint( id ); 00236 }
manualViewContour * manualViewContour::Clone | ( | ) | [virtual] |
Reimplemented from manualViewBaseContour.
Reimplemented in manualView3DContour, manualView3VContour, manualViewBullEye, manualViewCircle, manualViewLine, manualViewRoi, manualViewRotationTool, and manualViewPerpPlaneContour.
Definition at line 21 of file manualViewContour.cpp.
References CopyAttributesTo(), and manualViewContour().
00022 { 00023 manualViewContour * clone = new manualViewContour(); 00024 CopyAttributesTo(clone); 00025 return clone; 00026 }
void manualViewBaseContour::ConstructVTKObjects | ( | ) | [virtual, inherited] |
Reimplemented in manualViewBullEye, and manualViewPoints.
Definition at line 232 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_bboxMapper, manualViewBaseContour::_contourVtkActor, manualViewBaseContour::_manContModel, manualViewBaseContour::_pd, manualViewBaseContour::_pts, manualViewBaseContour::DeleteVtkObjects(), manualBaseModel::GetNumberOfPointsSpline(), manualViewBaseContour::InitTextActor(), and manualViewBaseContour::UpdateColorActor().
Referenced by manualViewBullEye::ConstructVTKObjects(), and manualViewBaseContour::CreateNewContour().
00233 { 00234 00235 00236 //JSTG 29-02-08 ----------------------------------------------- 00237 //int i , nps = _sizePointsContour; 00238 int i; 00239 int nps = _manContModel->GetNumberOfPointsSpline(); 00240 //------------------------------------------------------------- 00241 00242 DeleteVtkObjects(); 00243 _pts = vtkPoints::New(); 00244 _pts->SetNumberOfPoints(nps); 00245 for (i=0 ; i<nps ; i++){ 00246 _pts->SetPoint(i, 0 , 0 , 0 ); 00247 } 00248 // This is for the boundaring inicialisation 00249 00250 //EED 29Mars2009 00251 //_pts->SetPoint(0, 0 , 0 , -1000 ); 00252 //_pts->SetPoint(1, 0 , 0 , 1000 ); 00253 _pts->SetPoint(0, -1000 , -1000 , -1000 ); 00254 _pts->SetPoint(1, 1000 , 1000 , 1000 ); 00255 00256 vtkCellArray *lines = vtkCellArray::New(); 00257 lines->InsertNextCell( nps /* +1 */ ); 00258 for ( i=0 ; i<nps+1 ; i++ ){ 00259 lines->InsertCellPoint(i % nps ); 00260 } 00261 _pd = vtkPolyData::New(); 00262 _pd->SetPoints( _pts ); 00263 _pd->SetLines( lines ); 00264 lines->Delete(); //do not delete lines ?? 00265 00266 _contourVtkActor = vtkActor::New(); 00267 _bboxMapper = vtkPolyDataMapper::New(); 00268 _bboxMapper->ScalarVisibilityOff( ); 00269 00270 00271 _bboxMapper->SetInput(_pd); 00272 _bboxMapper->ImmediateModeRenderingOn(); 00273 _contourVtkActor->SetMapper(_bboxMapper); 00274 _contourVtkActor->GetProperty()->BackfaceCullingOff(); 00275 00276 00277 UpdateColorActor(); 00278 00279 _pd->ComputeBounds(); 00280 00281 InitTextActor(); 00282 00283 00284 }
void manualViewContour::CopyAttributesTo | ( | manualViewContour * | cloneObject | ) |
Reimplemented from manualViewBaseContour.
Reimplemented in manualView3DContour, manualView3VContour, manualViewBullEye, manualViewCircle, manualViewLine, manualViewRoi, manualViewRotationTool, and manualViewPerpPlaneContour.
Definition at line 30 of file manualViewContour.cpp.
References _mesureScale, and SetMesureScale().
Referenced by Clone().
00031 { 00032 // Call to Fathers object 00033 manualViewBaseContour::CopyAttributesTo(cloneObject); 00034 00035 cloneObject->SetMesureScale(_mesureScale); 00036 }
void manualViewBaseContour::CreateNewContour | ( | ) | [inherited] |
Definition at line 305 of file manualViewBaseContour.cpp.
References manualViewBaseContour::AddCompleteContourActor(), and manualViewBaseContour::ConstructVTKObjects().
Referenced by manualContourBaseControler::CreateNewManualContour(), manualContourBaseControler::ResetContour(), manualContour3VControler::ResetContour_Others(), and wxMaracasCoutourTool::SetControlPoints().
00306 { 00307 ConstructVTKObjects(); 00308 /* 00309 _wxvtkbaseview->GetRenderer()->AddActor( _contourVtkActor ); 00310 _wxvtkbaseview->GetRenderer()->AddActor2D(_textActor);*/ 00311 AddCompleteContourActor(); 00312 }
void manualViewBaseContour::DeleteContour | ( | ) | [inherited] |
Definition at line 367 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_lstViewPoints, manualViewBaseContour::DeletePoint(), manualViewBaseContour::DeleteVtkObjects(), manualViewBaseContour::Refresh(), and manualViewBaseContour::RemoveCompleteContourActor().
Referenced by manualContourBaseControler::DeleteContour(), manualContour3VControler::ResetContour_Others(), and wxMaracasCoutourTool::SetControlPoints().
00368 { 00369 RemoveCompleteContourActor(); 00370 /*if (_contourVtkActor!=NULL){ 00371 _wxvtkbaseview->GetRenderer()->RemoveActor( _contourVtkActor ); 00372 }*/ 00373 DeleteVtkObjects(); 00374 int i,size=_lstViewPoints.size(); 00375 for (i=0;i<size;i++){ 00376 manualViewBaseContour::DeletePoint(0); 00377 } 00378 Refresh(); 00379 }
void manualViewBaseContour::DeletePoint | ( | int | x, | |
int | y, | |||
int | z | |||
) | [inherited] |
Definition at line 396 of file manualViewBaseContour.cpp.
References manualViewBaseContour::GetIdPoint().
Referenced by manualViewBaseContour::ClearPoint(), manualContourBaseControler::DeleteActualMousePoint(), manualContour3VControler::DeleteActualMousePoint_Others(), manualViewBaseContour::DeleteContour(), and manualViewBaseContour::DeleteSelectedPoints().
00397 { 00398 int id=GetIdPoint(x,y,z); 00399 if (id!=-1){ 00400 DeletePoint(id); 00401 } 00402 }
void manualViewContour::DeletePoint | ( | int | id | ) | [virtual] |
Reimplemented from manualViewBaseContour.
Definition at line 224 of file manualViewContour.cpp.
References manualViewBaseContour::_lstViewPoints.
Referenced by ClearPoint().
00225 { 00226 if (_lstViewPoints.size()>2) 00227 { 00228 manualViewBaseContour::DeletePoint( id ); 00229 } 00230 }
void manualViewBaseContour::DeleteSelectedPoints | ( | ) | [inherited] |
Definition at line 434 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_lstViewPoints, manualViewBaseContour::DeletePoint(), manualViewBaseContour::GetSelected(), and manualViewBaseContour::Refresh().
00435 { 00436 int i,size=_lstViewPoints.size(); 00437 for (i=size-1;i>=0;i--){ 00438 if (_lstViewPoints[i]->GetSelected()==true){ 00439 DeletePoint(i); 00440 } 00441 } 00442 Refresh(); 00443 }
void manualViewBaseContour::GetColorEditContour | ( | double & | r, | |
double & | g, | |||
double & | b | |||
) | [inherited] |
Definition at line 661 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_coulorEdit_b, manualViewBaseContour::_coulorEdit_g, and manualViewBaseContour::_coulorEdit_r.
00662 { 00663 r = _coulorEdit_r; 00664 g = _coulorEdit_g; 00665 b = _coulorEdit_b; 00666 }
void manualViewBaseContour::GetColorNormalContour | ( | double & | r, | |
double & | g, | |||
double & | b | |||
) | [inherited] |
Definition at line 647 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_coulorNormal_b, manualViewBaseContour::_coulorNormal_g, and manualViewBaseContour::_coulorNormal_r.
00648 { 00649 r = _coulorNormal_r; 00650 g = _coulorNormal_g; 00651 b = _coulorNormal_b; 00652 }
void manualViewBaseContour::GetColorSelectContour | ( | double & | r, | |
double & | g, | |||
double & | b | |||
) | [inherited] |
Definition at line 675 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_coulorSelection_b, manualViewBaseContour::_coulorSelection_g, and manualViewBaseContour::_coulorSelection_r.
00676 { 00677 r = _coulorSelection_r; 00678 g = _coulorSelection_g; 00679 b = _coulorSelection_b; 00680 }
bool manualViewBaseContour::GetEditable | ( | ) | [inherited] |
Definition at line 414 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_editable.
Referenced by manualViewPoints::RefreshContour(), manualViewBaseContour::SelectPosibleContour(), and manualViewBaseContour::UpdateColorActor().
00415 { 00416 return *_editable; 00417 }
int manualViewBaseContour::GetIdPoint | ( | int | x, | |
int | y, | |||
int | z | |||
) | [virtual, inherited] |
Reimplemented in manualView3VContour.
Definition at line 699 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_manContModel, manualViewBaseContour::_range, manualBaseModel::GetIdPoint(), and manualViewBaseContour::TransfromCoordViewWorld().
Referenced by manualContourPerpPlaneControler::DeleteActualMousePoint(), manualContourBaseControler::DeleteActualMousePoint(), manualContour3VControler::DeleteActualMousePoint(), manualContour3V3DControler::DeleteActualMousePoint(), manualViewBaseContour::DeletePoint(), manualContourBaseControler::Magnet(), manualRotationToolControler::MouseClickLeft(), manualRoiControler::MouseClickLeft(), manualLineControler::MouseClickLeft(), manualContourControler::MouseClickLeft(), manualCircleControler::MouseClickLeft(), manualContourPerpPlaneControler::MouseMove(), manualContour3VControler::MouseMove(), manualContour3V3DControler::MouseMove(), manualViewBaseContour::SelectPosibleContour(), and manualViewBaseContour::SelectPosiblePoint().
00700 { 00701 int ii = -1; 00702 if (_manContModel!=NULL){ 00703 double xx = x; 00704 double yy = y; 00705 double zz = z; 00706 TransfromCoordViewWorld(xx,yy,zz); 00707 ii=_manContModel->GetIdPoint(xx,yy,zz,_range,-1); 00708 } 00709 return ii; 00710 }
bool manualViewBaseContour::GetIfViewControlPoints | ( | ) | [inherited] |
Definition at line 468 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_viewControlPoints.
Referenced by manualViewBaseContour::CopyAttributesTo().
00469 { 00470 return _viewControlPoints; 00471 }
void manualViewBaseContour::GetMinMax | ( | double & | minX, | |
double & | minY, | |||
double & | minZ, | |||
double & | maxX, | |||
double & | maxY, | |||
double & | maxZ | |||
) | [virtual, inherited] |
Definition at line 783 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_manContModel, manualBaseModel::GetManualPoint(), manualBaseModel::GetSizeLstPoints(), manualPoint::GetX(), manualPoint::GetY(), and manualPoint::GetZ().
00784 { 00785 double pp[3]; 00786 manualPoint *mp; 00787 int i; 00788 int size=_manContModel->GetSizeLstPoints(); 00789 minX=99999; 00790 minY=99999; 00791 maxX=-99999; 00792 maxY=-99999; 00793 bool ifFindZ = minZ!=-1.0 && maxZ!=-1.0; 00794 if ( ifFindZ ) 00795 { 00796 minZ=99999; 00797 maxZ=-99999; 00798 } 00799 for( i = 0; i < size; i++ ) 00800 { 00801 mp=_manContModel->GetManualPoint(i); 00802 pp[0]=mp->GetX(); 00803 pp[1]=mp->GetY(); 00804 if ( ifFindZ ) 00805 pp[2]=mp->GetZ(); 00806 00807 // min X 00808 if (pp[0]<minX) 00809 { 00810 minX=pp[0]; 00811 } 00812 //min Y 00813 if (pp[1]<minY) 00814 { 00815 minY=pp[1]; 00816 } 00817 //max X 00818 if (pp[0]>maxX) 00819 { 00820 maxX=pp[0]; 00821 } 00822 // max Y 00823 if (pp[1]>maxY) 00824 { 00825 maxY=pp[1]; 00826 } 00827 if ( ifFindZ ) 00828 { 00829 // min Z 00830 if (pp[2]<minZ) 00831 { 00832 minZ=pp[2]; 00833 } 00834 // max Z 00835 if (pp[2]>maxZ) 00836 { 00837 maxZ=pp[2]; 00838 } 00839 } 00840 } 00841 if ( size<1 ) 00842 { 00843 minX = 0; 00844 maxX = 0; 00845 00846 minY = 0; 00847 maxY = 0; 00848 00849 minZ = 0; 00850 maxZ = 0; 00851 } 00852 }
int manualViewBaseContour::GetNumberOfPoints | ( | ) | [inherited] |
Definition at line 715 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_lstViewPoints.
Referenced by wxMaracasCoutourTool::AnalisisContourInside(), manualViewRotationTool::GetMinMax(), manualViewCircle::GetMinMax(), manualContourBaseControler::GetNumberOfPointsManualContour(), manualRotationToolControler::MouseClickLeft(), manualRoiControler::MouseClickLeft(), manualLineControler::MouseClickLeft(), manualContourControler::MouseClickLeft(), manualCircleControler::MouseClickLeft(), manualViewPerpPlaneContour::RefreshContour(), manualViewRoi::RefreshContour(), manualViewPoints::RefreshContour(), RefreshContour(), manualViewBullEye::RefreshContour(), and RefreshText().
00716 { 00717 return _lstViewPoints.size(); 00718 }
bool manualViewBaseContour::GetPosibleSelected | ( | ) | [inherited] |
Definition at line 429 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_posibleSelected.
Referenced by manualViewBaseContour::CopyAttributesTo(), manualContourBaseControler::MouseDLeft(), and RefreshText().
00430 { 00431 return _posibleSelected; 00432 }
double manualViewBaseContour::GetRange | ( | ) | [inherited] |
Definition at line 753 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_range.
Referenced by manualViewBaseContour::CopyAttributesTo(), manualView3VContour::GetIdPoint(), manualView3DContour::GetIdPoint2(), manualViewRoi::ifTouchContour(), RefreshText(), manualViewPerpPlaneContour::UpdateViewPoint(), and manualView3VContour::UpdateViewPoint().
00754 { 00755 return _range; 00756 }
bool manualViewBaseContour::GetSelected | ( | ) | [inherited] |
Definition at line 424 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_selected.
Referenced by manualViewBaseContour::CopyAttributesTo(), and manualViewBaseContour::DeleteSelectedPoints().
00425 { 00426 return _selected; 00427 }
void manualViewBaseContour::GetSpacing | ( | double | spc[3] | ) | [inherited] |
Definition at line 907 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_spc.
Referenced by manualViewBullEye::ConstructVTKObjects().
int manualViewContour::GetType | ( | ) | [virtual] |
Reimplemented from manualViewBaseContour.
Reimplemented in manualView3VContour, manualViewBullEye, manualViewCircle, manualViewLine, manualViewRoi, and manualViewRotationTool.
Definition at line 40 of file manualViewContour.cpp.
double * manualViewBaseContour::GetVectorPointsXManualContour | ( | ) | [inherited] |
Definition at line 573 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_pts, and manualViewBaseContour::_sizePointsContour.
Referenced by manualContourBaseControler::GetVectorPointsXManualContour().
00573 { 00574 double pp[3]; 00575 int i,size = _sizePointsContour; 00576 double *vx = (double*)malloc(sizeof(double)*size); 00577 for (i=0;i<size;i++){ 00578 _pts->GetPoint(i,pp); 00579 vx[i]=pp[0]; 00580 } 00581 return vx; 00582 }
double * manualViewBaseContour::GetVectorPointsYManualContour | ( | ) | [inherited] |
Definition at line 584 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_pts, and manualViewBaseContour::_sizePointsContour.
Referenced by manualContourBaseControler::GetVectorPointsYManualContour().
00585 { 00586 double pp[3]; 00587 int i,size = _sizePointsContour; 00588 double *vy = (double*)malloc(sizeof(double)*size); 00589 for (i=0;i<size;i++){ 00590 _pts->GetPoint(i,pp); 00591 vy[i]=pp[1]; 00592 } 00593 return vy; 00594 }
double * manualViewBaseContour::GetVectorPointsZManualContour | ( | ) | [inherited] |
Definition at line 596 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_pts, and manualViewBaseContour::_sizePointsContour.
00597 { 00598 double pp[3]; 00599 int i,size = _sizePointsContour; 00600 double *vz = (double*)malloc(sizeof(double)*size); 00601 for (i=0;i<size;i++){ 00602 _pts->GetPoint(i,pp); 00603 vz[i]=pp[2]; 00604 } 00605 return vz; 00606 }
double manualViewBaseContour::GetWidthLine | ( | ) | [inherited] |
Definition at line 226 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_widthline.
Referenced by manualViewBullEye::ConstructVTKObjects().
00227 { 00228 return _widthline; 00229 }
wxVtkBaseView * manualViewBaseContour::GetWxVtkBaseView | ( | ) | [inherited] |
Definition at line 902 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_wxvtkbaseview.
Referenced by manualViewBaseContour::AddPoint(), manualViewBullEye::ConstructVTKObjects(), manualViewPerpPlaneContour::FilterCordinateXYZ(), manualView3DContour::GetIdPoint2(), manualViewPerpPlaneContour::ifTouchContour(), manualViewBaseContour::InsertPoint(), manualViewPerpPlaneContour::RefreshContour(), and manualViewPerpPlaneContour::TransfromCoordViewWorld().
00903 { 00904 return this->_wxvtkbaseview; 00905 }
int manualViewBaseContour::GetZ | ( | ) | [inherited] |
Definition at line 763 of file manualViewBaseContour.cpp.
Referenced by manualViewBaseContour::CopyAttributesTo().
bool manualViewContour::ifTouchContour | ( | int | x, | |
int | y, | |||
int | z | |||
) | [virtual] |
Reimplemented from manualViewBaseContour.
Reimplemented in manualView3VContour, manualViewRoi, and manualViewPerpPlaneContour.
Definition at line 178 of file manualViewContour.cpp.
References manualViewBaseContour::_manContModel, manualViewBaseContour::_pts, manualViewBaseContour::_sizePointsContour, manualViewBaseContour::_spc, manualBaseModel::IfCloseContour(), and manualViewBaseContour::TransfromCoordViewWorld().
00178 { 00179 bool result=false; 00180 double xx=x; 00181 double yy=y; 00182 double zz=z; 00183 double ppA[3]; 00184 double ppB[3]; 00185 double d1,d2,d3; 00186 TransfromCoordViewWorld(xx,yy,zz); 00187 00188 //EED 27 sep 2006 00189 xx = xx * _spc[0]; 00190 yy = yy * _spc[1]; 00191 zz = zz * _spc[2]; 00192 00193 unsigned int i, nps,nps_t; 00194 nps = _sizePointsContour; 00195 00196 if (this->_manContModel->IfCloseContour()==true) 00197 { 00198 nps_t = nps; 00199 } else { 00200 nps_t = nps-1; 00201 } 00202 00203 00204 for( i = 0; i < nps_t; i++ ) 00205 { 00206 _pts->GetPoint(i%nps, ppA); 00207 _pts->GetPoint((i+1)%nps, ppB); 00208 d1= sqrt( (ppA[0]-xx)*(ppA[0]-xx) + (ppA[1]-yy)*(ppA[1]-yy) + (ppA[2]-zz)*(ppA[2]-zz)); 00209 d2= sqrt( (ppB[0]-xx)*(ppB[0]-xx) + (ppB[1]-yy)*(ppB[1]-yy) + (ppB[2]-zz)*(ppB[2]-zz)); 00210 d3= sqrt( (ppB[0]-ppA[0])*(ppB[0]-ppA[0]) + (ppB[1]-ppA[1])*(ppB[1]-ppA[1]) + (ppB[2]-ppA[2])*(ppB[2]-ppA[2])); 00211 00212 00213 if ( ((d1+d2)>=d3) && ((d1+d2)<=d3*1.3) ) 00214 { 00215 result=true; 00216 i=nps; 00217 } 00218 } 00219 00220 return result; 00221 }
void manualViewContour::InitMove | ( | int | x, | |
int | y, | |||
int | z | |||
) | [virtual] |
Reimplemented from manualViewBaseContour.
Reimplemented in manualViewCircle, manualViewLine, manualViewRoi, and manualViewRotationTool.
Definition at line 244 of file manualViewContour.cpp.
References _initialConoturModel, manualViewBaseContour::_manContModel, manualContourModel::AddPoint(), manualContourModel::DeleteAllPoints(), manualBaseModel::GetManualPoint(), manualBaseModel::GetSizeLstPoints(), manualPoint::GetX(), manualPoint::GetY(), manualPoint::GetZ(), and manualViewBaseContour::TransfromCoordViewWorld().
00245 { 00246 _initialConoturModel->DeleteAllPoints(); 00247 00248 manualPoint *mp = NULL; 00249 double XX=x; 00250 double YY=y; 00251 double ZZ=z; 00252 TransfromCoordViewWorld(XX,YY,ZZ); 00253 00254 int i, manualPointsSZ = _manContModel->GetSizeLstPoints(); 00255 for ( i=0; i<manualPointsSZ; i++ ) 00256 { 00257 mp = _manContModel->GetManualPoint( i ); 00258 this->_initialConoturModel->AddPoint( mp->GetX() - XX, mp->GetY() - YY, mp->GetZ() ); 00259 } 00260 }
void manualViewBaseContour::InitTextActor | ( | ) | [inherited] |
Definition at line 286 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_textActor.
Referenced by manualViewPoints::ConstructVTKObjects(), and manualViewBaseContour::ConstructVTKObjects().
00287 { 00288 // Text 00289 _textActor = vtkTextActor::New(); 00290 // _textActor->SetDisplayPosition(200, 200); 00291 _textActor->SetInput("00"); 00292 // Set coordinates to match the old vtkScaledTextActor default value 00293 // _textActor->GetPosition2Coordinate()->SetCoordinateSystemToNormalizedViewport(); 00294 // _textActor->GetPosition2Coordinate()->SetValue( 0.2 , 0.2 ); 00295 _textActor->GetPositionCoordinate()->SetCoordinateSystemToWorld (); 00296 // _textActor->GetPositionCoordinate()->SetValue( 0.8 , 0.8 ); 00297 00298 vtkTextProperty *tprop = _textActor->GetTextProperty(); 00299 tprop->SetFontSize(14); 00300 tprop->SetFontFamilyToArial(); 00301 tprop->SetColor(0, 0, 1); 00302 }
void manualViewBaseContour::InsertPoint | ( | int | id | ) | [inherited] |
Definition at line 355 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_lstViewPoints, manualViewBaseContour::_spc, manualViewBaseContour::_wxvtkbaseview, manualViewPoint::CreateVtkPointActor(), wxVtkBaseView::GetRenderer(), manualViewBaseContour::GetWxVtkBaseView(), and manualViewPoint::SetSpacing().
Referenced by manualContourBaseControler::InsertPoint(), manualContour3VControler::InsertPoint(), and manualContour3VControler::InsertPoint_Others().
00356 { 00357 manualViewPoint *mvp = new manualViewPoint( this->GetWxVtkBaseView() ); 00358 00359 // EED 3 oct 2006 00360 mvp->SetSpacing(_spc); 00361 00362 std::vector<manualViewPoint*>::iterator itNum = _lstViewPoints.begin() + id; 00363 _lstViewPoints.insert(itNum,mvp); 00364 _wxvtkbaseview->GetRenderer()->AddActor( mvp->CreateVtkPointActor() ); 00365 }
void manualViewContour::MoveContour | ( | int | horizontalUnits, | |
int | verticalUnits | |||
) | [virtual] |
Reimplemented from manualViewBaseContour.
Definition at line 281 of file manualViewContour.cpp.
References manualViewBaseContour::_manContModel, manualBaseModel::GetManualPoint(), manualBaseModel::GetSizeLstPoints(), manualPoint::GetX(), manualPoint::GetY(), manualPoint::GetZ(), manualPoint::SetPoint(), and manualViewBaseContour::UpdateViewPoints().
00282 { 00283 manualPoint *mpOrigin = NULL; 00284 00285 int i, manualPointsSZ = _manContModel->GetSizeLstPoints(); 00286 for ( i=0; i<manualPointsSZ; i++ ) 00287 { 00288 mpOrigin = _manContModel->GetManualPoint( i ); 00289 mpOrigin->SetPoint( mpOrigin->GetX()+horizontalUnits, mpOrigin->GetY()+verticalUnits, mpOrigin->GetZ() ); 00290 } 00291 UpdateViewPoints(); 00292 }
void manualViewContour::MoveContour | ( | int | x, | |
int | y, | |||
int | z | |||
) | [virtual] |
Reimplemented from manualViewBaseContour.
Reimplemented in manualViewCircle, manualViewLine, manualViewRoi, and manualViewRotationTool.
Definition at line 262 of file manualViewContour.cpp.
References _initialConoturModel, manualViewBaseContour::_manContModel, manualContourModel::GetManualPoint(), manualBaseModel::GetManualPoint(), manualBaseModel::GetSizeLstPoints(), manualPoint::GetX(), manualPoint::GetY(), manualPoint::GetZ(), manualPoint::SetPoint(), manualViewBaseContour::TransfromCoordViewWorld(), and manualViewBaseContour::UpdateViewPoints().
00263 { 00264 manualPoint *mpOrigin = NULL; 00265 manualPoint *mpMoving = NULL; 00266 double XX=x; 00267 double YY=y; 00268 double ZZ=z; 00269 00270 TransfromCoordViewWorld(XX,YY,ZZ); 00271 00272 int i, manualPointsSZ = _manContModel->GetSizeLstPoints(); 00273 for ( i=0; i<manualPointsSZ; i++ ) 00274 { 00275 mpOrigin = _manContModel->GetManualPoint( i ); 00276 mpMoving = _initialConoturModel->GetManualPoint(i); 00277 mpOrigin->SetPoint( mpMoving->GetX()+XX, mpMoving->GetY() + YY, mpMoving->GetZ() ); 00278 } 00279 UpdateViewPoints(); 00280 }
void manualViewContour::Open | ( | FILE * | pFile | ) | [virtual] |
Reimplemented from manualViewBaseContour.
Definition at line 54 of file manualViewContour.cpp.
void manualViewBaseContour::Refresh | ( | ) | [virtual, inherited] |
Reimplemented in manualViewPoints.
Definition at line 608 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_contourVtkActor, manualViewBaseContour::_lstViewPoints, manualViewBaseContour::_show_text, manualViewBaseContour::_wxvtkbaseview, wxVtkBaseView::GetRenWin(), wxVtkBaseView::GetWxVTKRenderWindowInteractor(), manualViewBaseContour::RefreshContour(), manualViewBaseContour::RefreshText(), manualViewBaseContour::UpdateColorActor(), and manualViewBaseContour::UpdateViewPoint().
Referenced by manualViewBaseContour::AddCompleteContourActor(), manualViewBaseContour::ClearContour(), wxImageViewerWidget::CreateNewManualContour(), manualContour3VControler::DeleteActualMousePoint_Others(), manualViewBaseContour::DeleteContour(), manualViewBaseContour::DeletePoint(), manualViewBaseContour::DeleteSelectedPoints(), manualRotationToolControler::InitRoi(), manualRoiControler::InitRoi(), manualLineControler::InitRoi(), manualCircleControler::InitRoi(), manualRotationToolControler::MouseClickLeft(), manualRoiControler::MouseClickLeft(), manualLineControler::MouseClickLeft(), manualContourControler::MouseClickLeft(), manualCircleControler::MouseClickLeft(), manualContourControler::MouseDLeft(), manualRotationToolControler::MouseMove(), manualRoiControler::MouseMove(), manualLineControler::MouseMove(), manualContourControler::MouseMove(), manualCircleControler::MouseMove(), manualContour3VControler::MouseMove_Others(), manualContourBaseControler::OnChar(), manualContour3VControler::OnChar_Others(), wxWidgetMesure2D::OnCloseContour(), wxWidgetMesure2D::OnVisibleInformation(), wxWidgetMesure2D::OnVisibleMessureTool(), manualContourContainer::refreshLumen(), manualContourContainer::refreshWall(), manualViewBaseContour::RemoveCompleteContourActor(), manualContourContainer::setLumenVisibility(), manualContourContainer::setWallVisibility(), manualViewBaseContour::UnSelectAllPoints(), and manualViewBaseContour::UnSelectPoint().
00609 { 00610 if (_contourVtkActor!=NULL){ 00611 RefreshContour(); 00612 } 00613 int i,size=_lstViewPoints.size(); 00614 for (i=0;i<size;i++){ 00615 UpdateViewPoint(i); 00616 _lstViewPoints[i]->UpdateColorActor(); 00617 } 00618 UpdateColorActor(); 00619 00620 if (_show_text==true) 00621 { 00622 RefreshText(); 00623 } 00624 00625 vtkRenderWindowInteractor *vri = _wxvtkbaseview->GetWxVTKRenderWindowInteractor (); 00626 if (vri==NULL) 00627 { 00628 _wxvtkbaseview->GetRenWin()->Render(); 00629 printf("EED %p How to optimize manualViewBaseContour::Refresh() \n",this); 00630 } 00631 00632 }
void manualViewContour::RefreshContour | ( | ) | [virtual] |
Reimplemented from manualViewBaseContour.
Reimplemented in manualView3VContour, manualViewBullEye, manualViewBullEyeSector, manualViewRoi, and manualViewPerpPlaneContour.
Definition at line 59 of file manualViewContour.cpp.
References manualViewBaseContour::_manContModel, manualViewBaseContour::_pts, manualViewBaseContour::_spc, manualViewBaseContour::GetNumberOfPoints(), manualBaseModel::GetNumberOfPointsSpline(), manualBaseModel::GetSpline_i_Point(), and manualBaseModel::UpdateSpline().
Referenced by wxWidgetMesure2D::ConfigureA(), wxEmptyPanel_3_Widget::ConfigureVTK(), wxMaracasCoutourTool::ConfigureVTK(), manualContourContainer::createLumenContour(), manualContourContainer::createWallContour(), manualContourContainer::refreshLumen(), manualContourContainer::refreshWall(), manualContourContainer::restartLumenContour(), manualContourContainer::restartWallContour(), and wxMaracasCoutourTool::SetControlPoints().
00060 { 00061 int i,np,nps; 00062 00063 //JSTG 25-02-08 -------------------- 00064 //double t,delta, x,y,z; 00065 double x,y,z; 00066 //---------------------------------- 00067 00068 _manContModel->UpdateSpline(); 00069 np = GetNumberOfPoints( ); 00070 //nps = GetNumberOfPointsSpline(); 00071 nps = _manContModel->GetNumberOfPointsSpline(); 00072 //delta=( double ) ( np ) / ( double ) ( nps-1 ); //JSTG 25-02-08 00073 00074 00075 if ( _pts!=NULL ) 00076 { 00077 if (np>=2 ) 00078 { 00079 for( i = 0; i < nps; i++ ) 00080 { 00081 //JSTG 25-02-08 ------------------------------------------------ 00082 //t = delta * (double)i; 00083 //_manContModel->GetSplinePoint(t,x,y,z); 00084 _manContModel->GetSpline_i_Point(i,&x,&y,&z); 00085 //-------------------------------------------------------------- 00086 // EED 27 sep 2006 00087 // _pts->SetPoint(i, x,y,z ); 00088 _pts->SetPoint(i, x*_spc[0], y*_spc[1], z*_spc[2] ); 00089 00090 }// for 00091 } 00092 else 00093 { 00094 _pts->SetPoint(0, 0 , 0 , 0); 00095 _pts->SetPoint(1, 0 , 0 , 0); 00096 } // if 00097 } 00098 }
void manualViewContour::RefreshText | ( | ) | [private, virtual] |
Reimplemented from manualViewBaseContour.
Definition at line 101 of file manualViewContour.cpp.
References manualViewBaseContour::_id_viewPoint_for_text, manualViewBaseContour::_lstViewPoints, manualViewBaseContour::_manContModel, _mesureScale, manualViewBaseContour::_spc, manualViewBaseContour::_textActor, manualBaseModel::GetLabel(), manualBaseModel::GetManualPoint(), manualViewBaseContour::GetNumberOfPoints(), manualBaseModel::GetPathArea(), manualBaseModel::GetPathSize(), manualViewBaseContour::GetPosibleSelected(), manualViewBaseContour::GetRange(), manualPoint::GetX(), manualPoint::GetY(), and manualBaseModel::IfCloseContour().
00102 { 00103 if ((_textActor!=NULL) && ( _textActor->GetProperty()->GetOpacity()!=0 )){ 00104 int size = GetNumberOfPoints(); 00105 char text[50]; 00106 char resultText[50]; 00107 strcpy(resultText, " "); 00108 00109 //CMRU 19-08-09 ---------------------------------- 00110 std::string label; 00111 label = _manContModel->GetLabel(); 00112 // ------------------------------------ 00113 00114 if (size==2) 00115 { 00116 strcpy(resultText,"L= "); 00117 gcvt ( _mesureScale * this->_manContModel->GetPathSize(), 5, text ); 00118 strcat(resultText,text); 00119 00120 //CMRU 19-08-09 ---------------------------------- 00121 strcat(resultText," "); 00122 strcat(resultText,label.c_str()); 00123 //------------------------------------------------ 00124 } 00125 if (size>2) 00126 { 00127 if (_manContModel->IfCloseContour()==true) 00128 { 00129 strcpy(resultText,"P= "); 00130 gcvt ( _mesureScale * this->_manContModel->GetPathSize(), 5, text ); 00131 strcat(resultText,text); 00132 gcvt ( _mesureScale * _mesureScale * this->_manContModel->GetPathArea(), 5, text ); 00133 strcat(resultText," A= "); 00134 strcat(resultText,text); 00135 strcat(resultText," "); 00136 } else { 00137 strcpy(resultText,"L= "); 00138 gcvt ( _mesureScale * this->_manContModel->GetPathSize(), 5, text ); 00139 strcat(resultText,text); 00140 } 00141 //CMRU 19-08-09 ---------------------------------- 00142 strcat(resultText,label.c_str()); 00143 //------------------------------------------------ 00144 } 00145 00146 _textActor->SetInput(resultText); 00147 00148 if (size>=1){ 00149 00150 int i; 00151 for (i=0; i<size; i++) 00152 { 00153 if (_lstViewPoints[i]->GetPosibleSelected()==true) 00154 { 00155 _id_viewPoint_for_text = i; 00156 } 00157 } 00158 00159 if (_id_viewPoint_for_text>=size) 00160 { 00161 _id_viewPoint_for_text=0; 00162 } 00163 00164 double px = _manContModel->GetManualPoint(_id_viewPoint_for_text)->GetX(); 00165 double py = _manContModel->GetManualPoint(_id_viewPoint_for_text)->GetY(); 00166 00167 //EED 27 sep 2006 00168 px=px*_spc[0]; 00169 py=py*_spc[1]; 00170 00171 _textActor->SetPosition(px+GetRange()+1,py); 00172 } 00173 00174 } 00175 }
void manualViewBaseContour::RemoveCompleteContourActor | ( | ) | [inherited] |
Definition at line 97 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_wxvtkbaseview, wxVtkBaseView::GetRenderer(), manualViewBaseContour::Refresh(), manualViewBaseContour::RefreshContour(), manualViewBaseContour::RemoveControlPoints(), manualViewBaseContour::RemoveSplineActor(), and manualViewBaseContour::RemoveTextActor().
Referenced by manualViewBaseContour::DeleteContour().
00098 { 00099 /*vtkRenderer * theRenderer =*/ _wxvtkbaseview->GetRenderer(); // JPRx ?? 00100 //Removing the spline 00101 RemoveSplineActor(); 00102 RemoveTextActor(); 00103 00104 //Removing each point 00105 RemoveControlPoints(); 00106 RefreshContour(); 00107 Refresh(); 00108 }
void manualViewBaseContour::RemoveControlPoints | ( | ) | [virtual, inherited] |
Definition at line 158 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_lstViewPoints, manualViewBaseContour::_wxvtkbaseview, wxVtkBaseView::GetRenderer(), and manualViewBaseContour::SetIfViewControlPoints().
Referenced by manualContourControler::MouseMove(), manualViewBaseContour::RemoveCompleteContourActor(), and manualContourBaseControler::SetEditable().
00159 { 00160 if (_wxvtkbaseview!=NULL){ 00161 vtkRenderer * theRenderer = _wxvtkbaseview->GetRenderer(); 00162 int i,size=_lstViewPoints.size(); 00163 for (i=0;i<size; i++) 00164 { 00165 vtkActor * pointActor = _lstViewPoints[i]->GetVtkActor(); 00166 theRenderer->RemoveActor( pointActor ); 00167 } // for 00168 } // if 00169 SetIfViewControlPoints( false ); 00170 }
void manualViewBaseContour::RemoveSplineActor | ( | ) | [virtual, inherited] |
Reimplemented in manualViewBullEye, and manualViewPoints.
Definition at line 151 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_contourVtkActor, manualViewBaseContour::_wxvtkbaseview, and wxVtkBaseView::GetRenderer().
Referenced by manualViewBaseContour::RemoveCompleteContourActor().
00152 { 00153 vtkRenderer * theRenderer = _wxvtkbaseview->GetRenderer(); 00154 if (_contourVtkActor!=NULL) 00155 theRenderer->RemoveActor( _contourVtkActor ); 00156 }
void manualViewBaseContour::RemoveTextActor | ( | ) | [inherited] |
Definition at line 192 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_textActor, manualViewBaseContour::_wxvtkbaseview, and wxVtkBaseView::GetRenderer().
Referenced by manualViewBaseContour::RemoveCompleteContourActor().
00193 { 00194 _wxvtkbaseview->GetRenderer()->RemoveActor2D( _textActor ); 00195 }
void manualViewContour::Save | ( | FILE * | pFile | ) | [virtual] |
Reimplemented from manualViewBaseContour.
Definition at line 47 of file manualViewContour.cpp.
00048 { 00049 manualViewBaseContour::Save(pFile); 00050 }
void manualViewBaseContour::SelectAllPoints | ( | bool | select | ) | [inherited] |
Definition at line 455 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_lstViewPoints, and manualViewBaseContour::SelectPoint().
00456 { 00457 int i,size=_lstViewPoints.size(); 00458 for (i=0;i<size;i++){ 00459 SelectPoint(i,select); 00460 } 00461 }
void manualViewBaseContour::SelectAllPossibleSelected | ( | bool | select | ) | [inherited] |
Definition at line 484 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_lstViewPoints, and manualViewBaseContour::SetPointPosibleSelected().
Referenced by manualContour3VControler::MouseMove_Others(), manualViewBaseContour::SelectPosiblePoint(), and manualView3DContour::SelectPosiblePoint().
00485 { 00486 int i,size=_lstViewPoints.size(); 00487 for (i=0;i<size;i++){ 00488 SetPointPosibleSelected(i,select); 00489 } 00490 }
void manualViewBaseContour::SelectLstPoints | ( | ) | [inherited] |
Definition at line 450 of file manualViewBaseContour.cpp.
void manualViewBaseContour::SelectPoint | ( | int | i, | |
bool | select | |||
) | [inherited] |
Definition at line 445 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_lstViewPoints.
Referenced by manualViewBaseContour::SelectAllPoints().
00446 { 00447 _lstViewPoints[i]->SetSelected(select); 00448 }
bool manualViewBaseContour::SelectPosibleContour | ( | int | x, | |
int | y, | |||
int | z | |||
) | [inherited] |
Definition at line 504 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_lstViewPoints, manualViewBaseContour::_posibleSelected, manualViewBaseContour::_selected, manualViewBaseContour::GetEditable(), manualViewBaseContour::GetIdPoint(), manualViewBaseContour::ifTouchContour(), and manualViewBaseContour::SetPosibleSelected().
Referenced by manualContourBaseControler::MouseDLeft(), manualRotationToolControler::MouseMove(), manualRoiControler::MouseMove(), manualLineControler::MouseMove(), manualContourControler::MouseMove(), manualCircleControler::MouseMove(), and manualContourBaseControler::MouseReleaseLeft().
00505 { 00506 bool result=false; 00507 SetPosibleSelected(result); 00508 int id = GetIdPoint(x,y,z); 00509 00510 if( !GetEditable() && !_selected && id!= -1) 00511 { 00512 result=true; 00513 _posibleSelected=true; 00514 } 00515 else 00516 { 00517 if ( (GetEditable()==true) && (id==-1 ) && (this->_lstViewPoints.size()>=2) ) 00518 { 00519 if (ifTouchContour(x,y,z)==true) 00520 { 00521 result=true; 00522 SetPosibleSelected(result); 00523 } 00524 } 00525 00526 if (GetEditable()==false) 00527 { 00528 if (ifTouchContour(x,y,z)==true) 00529 { 00530 result=true; 00531 SetPosibleSelected(result); 00532 } 00533 } 00534 00535 } 00536 return result; 00537 }
int manualViewBaseContour::SelectPosiblePoint | ( | int | x, | |
int | y, | |||
int | z | |||
) | [virtual, inherited] |
Reimplemented in manualView3DContour.
Definition at line 492 of file manualViewBaseContour.cpp.
References manualViewBaseContour::GetIdPoint(), manualViewBaseContour::SelectAllPossibleSelected(), and manualViewBaseContour::SetPointPosibleSelected().
Referenced by manualContourBaseControler::MouseDLeft(), manualRotationToolControler::MouseMove(), manualRoiControler::MouseMove(), manualLineControler::MouseMove(), manualContourControler::MouseMove(), and manualCircleControler::MouseMove().
00493 { 00494 SelectAllPossibleSelected(false); 00495 00496 int id = GetIdPoint(x,y,z); 00497 if (id!=-1) 00498 { 00499 SetPointPosibleSelected(id,true); 00500 } 00501 return id; 00502 }
void manualViewBaseContour::SetColorEditContour | ( | double | r, | |
double | g, | |||
double | b | |||
) | [inherited] |
Definition at line 654 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_coulorEdit_b, manualViewBaseContour::_coulorEdit_g, and manualViewBaseContour::_coulorEdit_r.
Referenced by wxEmptyPanel_3_Widget::ConfigureVTK(), wxMaracasCoutourTool::ConfigureVTK(), manualViewBaseContour::CopyAttributesTo(), manualContourContainer::createLumenContour(), manualContourContainer::createWallContour(), manualContourContainer::restartLumenContour(), and manualContourContainer::restartWallContour().
00655 { 00656 _coulorEdit_r = r; 00657 _coulorEdit_g = g; 00658 _coulorEdit_b = b; 00659 }
void manualViewBaseContour::SetColorNormalContour | ( | double | r, | |
double | g, | |||
double | b | |||
) | [inherited] |
Definition at line 640 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_coulorNormal_b, manualViewBaseContour::_coulorNormal_g, and manualViewBaseContour::_coulorNormal_r.
Referenced by wxEmptyPanel_3_Widget::ConfigureVTK(), wxMaracasCoutourTool::ConfigureVTK(), manualViewBullEye::ConstructVTKObjects(), manualViewBaseContour::CopyAttributesTo(), manualContourContainer::createLumenContour(), manualContourContainer::createWallContour(), manualContourContainer::restartLumenContour(), and manualContourContainer::restartWallContour().
00641 { 00642 _coulorNormal_r = r; 00643 _coulorNormal_g = g; 00644 _coulorNormal_b = b; 00645 }
void manualViewBaseContour::SetColorSelectContour | ( | double | r, | |
double | g, | |||
double | b | |||
) | [inherited] |
Definition at line 668 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_coulorSelection_b, manualViewBaseContour::_coulorSelection_g, and manualViewBaseContour::_coulorSelection_r.
Referenced by manualViewBaseContour::CopyAttributesTo().
00669 { 00670 _coulorSelection_r = r; 00671 _coulorSelection_g = g; 00672 _coulorSelection_b = b; 00673 }
void manualViewBaseContour::SetEditable | ( | bool * | condition | ) | [inherited] |
Definition at line 419 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_editable.
Referenced by manualContourBaseControler::SetModelView().
00420 { 00421 _editable = condition; 00422 }
void manualViewBaseContour::SetIfViewControlPoints | ( | bool | ifShow | ) | [inherited] |
Definition at line 463 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_viewControlPoints.
Referenced by manualViewBaseContour::AddControlPoints(), manualViewBaseContour::CopyAttributesTo(), and manualViewBaseContour::RemoveControlPoints().
00464 { 00465 _viewControlPoints = ifShow; 00466 }
void manualViewContour::SetMesureScale | ( | double | mesureScale | ) |
Definition at line 239 of file manualViewContour.cpp.
References _mesureScale.
Referenced by wxManualTree_MPRWidget::ConfigureContour(), CopyAttributesTo(), and wxWidgetMesure2D::SetMesureScale().
00240 { 00241 _mesureScale = mesureScale; 00242 }
void manualViewBaseContour::SetModel | ( | manualBaseModel * | manContModel | ) | [inherited] |
Definition at line 561 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_manContModel.
Referenced by wxWidgetMesure2D::ConfigureA(), wxManualTree_MPRWidget::ConfigureContour(), wxEmptyPanel_3_Widget::ConfigureVTK(), ContourVOIWidget::ConfigureVTK(), wxMaracasCoutourTool::ConfigureVTK(), wxImageViewerWidget::ConstructVTK(), manualViewBullEye::ConstructVTKObjects(), manualContourContainer::createLumenContour(), manualContourContainer::createWallContour(), wxMaracasImageBrowser02::LoadData(), manualContourContainer::restartLumenContour(), and manualContourContainer::restartWallContour().
00561 { 00562 _manContModel=manContModel; 00563 }
void manualViewBaseContour::SetPointPosibleSelected | ( | int | id, | |
bool | select | |||
) | [inherited] |
Definition at line 474 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_lstViewPoints.
Referenced by manualContour3VControler::MouseMove_Others(), manualViewBaseContour::SelectAllPossibleSelected(), manualViewBaseContour::SelectPosiblePoint(), and manualView3DContour::SelectPosiblePoint().
00475 { 00476 _lstViewPoints[id]->SetPosibleSelected(select); 00477 }
void manualViewBaseContour::SetPointSelected | ( | int | id, | |
bool | select | |||
) | [inherited] |
Definition at line 479 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_lstViewPoints.
00480 { 00481 _lstViewPoints[id]->SetSelected(select); 00482 }
void manualViewBaseContour::SetPosibleSelected | ( | bool | posibleSelected | ) | [inherited] |
Definition at line 409 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_posibleSelected.
Referenced by manualViewBaseContour::CopyAttributesTo(), manualContour3VControler::MouseMove_Others(), and manualViewBaseContour::SelectPosibleContour().
00410 { 00411 _posibleSelected=posibleSelected; 00412 }
void manualViewBaseContour::SetRange | ( | double | range | ) | [inherited] |
Definition at line 748 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_range.
Referenced by manualContourContainer::addCalcificationContour(), manualContourContainer::addHypodenseContour(), wxWidgetMesure2D::ConfigureA(), wxManualTree_MPRWidget::ConfigureContour(), wxEmptyPanel_3_Widget::ConfigureVTK(), ContourVOIWidget::ConfigureVTK(), wxMaracasCoutourTool::ConfigureVTK(), wxImageViewerWidget::ConstructVTK(), manualViewBullEye::ConstructVTKObjects(), manualViewBaseContour::CopyAttributesTo(), manualContourContainer::createLumenContour(), manualContourContainer::createWallContour(), wxMaracasImageBrowser02::LoadData(), manualContourContainer::restartLumenContour(), and manualContourContainer::restartWallContour().
00749 { 00750 _range=range; 00751 }
void manualViewBaseContour::SetSelected | ( | bool | selected | ) | [inherited] |
Definition at line 404 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_selected.
Referenced by manualViewBaseContour::CopyAttributesTo(), manualContourControler::MouseClickLeft(), and manualContourBaseControler::SetEditable().
00405 { 00406 _selected=selected; 00407 }
void manualViewBaseContour::SetShowText | ( | bool | ok | ) | [inherited] |
Definition at line 893 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_show_text, and manualViewBaseContour::_textActor.
Referenced by wxWidgetMesure2D::OnVisibleInformation().
00894 { 00895 _show_text = ok; 00896 if (_show_text==false) 00897 { 00898 _textActor->SetInput("00"); 00899 } 00900 }
void manualViewBaseContour::SetSpacing | ( | double | spc[3] | ) | [inherited] |
Definition at line 914 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_spc.
Referenced by wxManualTree_MPRWidget::ConfigureContour(), wxEmptyPanel_3_Widget::ConfigureVTK(), ContourVOIWidget::ConfigureVTK(), wxMaracasCoutourTool::ConfigureVTK(), manualViewBullEye::ConstructVTKObjects(), manualViewBaseContour::CopyAttributesTo(), and wxMaracasImageBrowser02::LoadData().
void manualViewBaseContour::SetVisible | ( | bool | ok | ) | [inherited] |
Definition at line 872 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_contourVtkActor, manualViewBaseContour::_lstViewPoints, and manualViewBaseContour::_textActor.
Referenced by wxWidgetMesure2D::OnActiveMessureTool(), wxWidgetMesure2D::OnVisibleMessureTool(), manualContourContainer::setLumenVisibility(), and manualContourContainer::setWallVisibility().
00873 { 00874 double opacity; 00875 if (ok==true) 00876 { 00877 opacity=1; 00878 } else { 00879 opacity=0.5; 00880 } 00881 vtkActor *actor; 00882 int i,size=_lstViewPoints.size(); 00883 for (i=0;i<size;i++){ 00884 actor = _lstViewPoints[i]->GetVtkActor(); 00885 actor->GetProperty()->SetOpacity( opacity ); 00886 } 00887 _contourVtkActor->GetProperty()->SetOpacity( opacity ); 00888 _textActor->GetProperty()->SetOpacity( opacity ); 00889 _textActor->SetInput("00"); 00890 00891 }
void manualViewBaseContour::SetWidthLine | ( | double | width | ) | [inherited] |
Definition at line 211 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_lstViewPoints, manualViewBaseContour::_widthline, and manualViewBaseContour::UpdateColorActor().
Referenced by manualViewBullEye::ConstructVTKObjects().
00212 { 00213 _widthline = width; 00214 this->UpdateColorActor(); 00215 00216 // for the control points 00217 int id, size = _lstViewPoints.size(); 00218 for( id=0; id<size; id++) 00219 { 00220 this->_lstViewPoints[id]->SetWidthLine(_widthline); 00221 } 00222 00223 }
void manualViewBaseContour::SetWxVtkBaseView | ( | wxVtkBaseView * | wxvtkbaseview | ) | [inherited] |
Definition at line 565 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_wxvtkbaseview.
Referenced by wxWidgetMesure2D::ConfigureA(), wxManualTree_MPRWidget::ConfigureContour(), wxEmptyPanel_3_Widget::ConfigureVTK(), ContourVOIWidget::ConfigureVTK(), wxMaracasCoutourTool::ConfigureVTK(), wxImageViewerWidget::ConstructVTK(), manualViewBullEye::ConstructVTKObjects(), manualViewBaseContour::CopyAttributesTo(), manualContourContainer::createLumenContour(), manualContourContainer::createWallContour(), wxMaracasImageBrowser02::LoadData(), manualContourContainer::restartLumenContour(), and manualContourContainer::restartWallContour().
00565 { 00566 _wxvtkbaseview = wxvtkbaseview; 00567 }
void manualViewBaseContour::SetZ | ( | int | z | ) | [inherited] |
Definition at line 758 of file manualViewBaseContour.cpp.
Referenced by wxEmptyPanel_3_Widget::ConfigureVTK(), ContourVOIWidget::ConfigureVTK(), wxMaracasCoutourTool::ConfigureVTK(), manualViewBullEye::ConstructVTKObjects(), manualViewBaseContour::CopyAttributesTo(), manualContourContainer::createLumenContour(), manualContourContainer::createWallContour(), manualContourContainer::restartLumenContour(), and manualContourContainer::restartWallContour().
void manualViewBaseContour::TransfromCoordViewWorld | ( | double & | X, | |
double & | Y, | |||
double & | Z, | |||
int | type = 2 | |||
) | [virtual, inherited] |
Reimplemented in manualView3DContour, and manualViewPerpPlaneContour.
Definition at line 736 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_wxvtkbaseview, and wxVtkBaseView::TransFromCoordScreenToWorld().
Referenced by manualContourBaseControler::AddPoint(), manualContour3VControler::AddPoint(), manualViewBaseContour::GetIdPoint(), manualView3VContour::GetIdPoint(), manualViewRoi::ifTouchContour(), manualViewPoints::ifTouchContour(), ifTouchContour(), manualView3VContour::ifTouchContour(), manualViewRotationTool::InitMove(), manualViewRoi::InitMove(), manualViewLine::InitMove(), InitMove(), manualViewCircle::InitMove(), manualContourBaseControler::InsertPoint(), manualContour3VControler::InsertPoint(), manualContourBaseControler::Magnet(), manualViewRotationTool::MoveContour(), manualViewRoi::MoveContour(), manualViewLine::MoveContour(), MoveContour(), manualViewCircle::MoveContour(), manualContourBaseControler::SetPoint(), manualContour3VControler::SetPoint(), manualContourBaseControler::SetPointX(), manualContourBaseControler::SetPointY(), and manualContourBaseControler::SetPointZ().
00737 { 00738 _wxvtkbaseview->TransFromCoordScreenToWorld(X, Y, Z,false, type); 00739 00740 00741 //EED 27 sep 2007 00742 // //EEDx6 00743 // wxVtk2DBaseView *wxvtk2Dbaseview = (wxVtk2DBaseView*)_wxvtkbaseview; 00744 // wxvtk2Dbaseview->TransformCoordinate_spacing_ModelToView(X,Y,Z); 00745 00746 }
void manualViewBaseContour::UnSelectAllPoints | ( | ) | [inherited] |
Definition at line 553 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_lstViewPoints, manualViewBaseContour::Refresh(), and manualViewBaseContour::UnSelectPoint().
00553 { 00554 int i,size=_lstViewPoints.size(); 00555 for (i=0;i<size;i++){ 00556 UnSelectPoint(i); 00557 } 00558 Refresh(); 00559 }
void manualViewBaseContour::UnSelectLstPoints | ( | ) | [inherited] |
Definition at line 549 of file manualViewBaseContour.cpp.
void manualViewBaseContour::UnSelectPoint | ( | int | i | ) | [inherited] |
Definition at line 544 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_lstViewPoints, and manualViewBaseContour::Refresh().
Referenced by manualViewBaseContour::UnSelectAllPoints().
00544 { 00545 _lstViewPoints[i]->SetSelected(false); 00546 Refresh(); 00547 }
void manualViewBaseContour::UpdateColorActor | ( | ) | [inherited] |
Definition at line 682 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_contourVtkActor, manualViewBaseContour::_coulorEdit_b, manualViewBaseContour::_coulorEdit_g, manualViewBaseContour::_coulorEdit_r, manualViewBaseContour::_coulorNormal_b, manualViewBaseContour::_coulorNormal_g, manualViewBaseContour::_coulorNormal_r, manualViewBaseContour::_coulorSelection_b, manualViewBaseContour::_coulorSelection_g, manualViewBaseContour::_coulorSelection_r, manualViewBaseContour::_posibleSelected, manualViewBaseContour::_selected, manualViewBaseContour::_widthline, and manualViewBaseContour::GetEditable().
Referenced by manualViewBaseContour::ConstructVTKObjects(), manualViewBaseContour::Refresh(), and manualViewBaseContour::SetWidthLine().
00683 { 00684 if (_contourVtkActor!=NULL) 00685 { 00686 _contourVtkActor->GetProperty()->SetLineWidth( _widthline ); 00687 _contourVtkActor->GetProperty()->SetDiffuseColor( _coulorNormal_r , _coulorNormal_g , _coulorNormal_b ); 00688 if (_posibleSelected || (_posibleSelected && GetEditable() ) ) 00689 { 00690 _contourVtkActor->GetProperty()->SetDiffuseColor( _coulorEdit_r , _coulorEdit_g , _coulorEdit_b ); 00691 } 00692 if( _selected ) 00693 { 00694 _contourVtkActor->GetProperty()->SetDiffuseColor( _coulorSelection_r , _coulorSelection_g , _coulorSelection_b ); 00695 } 00696 } 00697 }
void manualViewBaseContour::UpdateViewPoint | ( | int | id | ) | [virtual, inherited] |
Reimplemented in manualView3VContour, and manualViewPerpPlaneContour.
Definition at line 314 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_lstViewPoints, manualViewBaseContour::_manContModel, manualViewBaseContour::_range, manualBaseModel::GetManualPoint(), manualPoint::GetX(), manualPoint::GetY(), and manualPoint::GetZ().
Referenced by manualRotationToolControler::InitRoi(), manualRoiControler::InitRoi(), manualLineControler::InitRoi(), manualCircleControler::InitRoi(), manualViewRotationTool::MoveContour(), manualViewRoi::MoveContour(), manualViewLine::MoveContour(), manualViewCircle::MoveContour(), manualViewBaseContour::Refresh(), manualContourBaseControler::SetPoint(), manualContourBaseControler::SetPointX(), manualContourBaseControler::SetPointY(), manualContourBaseControler::SetPointZ(), manualRoiControler::SetRoi(), and manualViewBaseContour::UpdateViewPoints().
00315 { 00316 manualPoint *mp = _manContModel->GetManualPoint(id); 00317 00318 //EEDx6 00319 double XX=mp->GetX(),YY=mp->GetY(),ZZ=mp->GetZ(); 00320 // wxVtk2DBaseView *wxvtk2Dbasevie = (wxVtk2DBaseView*)this->GetWxVtkBaseView(); 00321 // wxvtk2Dbasevie->TransformCoordinate_spacing_ModelToView(XX,YY,ZZ); 00322 00323 _lstViewPoints[id]->SetPositionXY( XX , YY ,_range, ZZ ); 00324 }
void manualViewBaseContour::UpdateViewPoints | ( | ) | [virtual, inherited] |
Definition at line 327 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_lstViewPoints, and manualViewBaseContour::UpdateViewPoint().
Referenced by MoveContour().
00328 { 00329 int id, size = _lstViewPoints.size(); 00330 for( id=0; id<size; id++) 00331 { 00332 UpdateViewPoint( id ); 00333 } 00334 }
double manualViewBaseContour::_coulorEdit_b [protected, inherited] |
Definition at line 190 of file manualViewBaseContour.h.
Referenced by manualViewBaseContour::CopyAttributesTo(), manualViewBaseContour::GetColorEditContour(), manualViewBaseContour::manualViewBaseContour(), manualViewPoints::RefreshContour(), manualViewBaseContour::SetColorEditContour(), and manualViewBaseContour::UpdateColorActor().
double manualViewBaseContour::_coulorEdit_g [protected, inherited] |
Definition at line 189 of file manualViewBaseContour.h.
Referenced by manualViewBaseContour::CopyAttributesTo(), manualViewBaseContour::GetColorEditContour(), manualViewBaseContour::manualViewBaseContour(), manualViewPoints::RefreshContour(), manualViewBaseContour::SetColorEditContour(), and manualViewBaseContour::UpdateColorActor().
double manualViewBaseContour::_coulorEdit_r [protected, inherited] |
Definition at line 188 of file manualViewBaseContour.h.
Referenced by manualViewBaseContour::CopyAttributesTo(), manualViewBaseContour::GetColorEditContour(), manualViewBaseContour::manualViewBaseContour(), manualViewPoints::RefreshContour(), manualViewBaseContour::SetColorEditContour(), and manualViewBaseContour::UpdateColorActor().
double manualViewBaseContour::_coulorNormal_b [protected, inherited] |
Definition at line 193 of file manualViewBaseContour.h.
Referenced by manualViewBaseContour::CopyAttributesTo(), manualViewBaseContour::GetColorNormalContour(), manualViewBaseContour::manualViewBaseContour(), manualViewPoints::RefreshContour(), manualViewBaseContour::SetColorNormalContour(), and manualViewBaseContour::UpdateColorActor().
double manualViewBaseContour::_coulorNormal_g [protected, inherited] |
Definition at line 192 of file manualViewBaseContour.h.
Referenced by manualViewBaseContour::CopyAttributesTo(), manualViewBaseContour::GetColorNormalContour(), manualViewBaseContour::manualViewBaseContour(), manualViewPoints::RefreshContour(), manualViewBaseContour::SetColorNormalContour(), and manualViewBaseContour::UpdateColorActor().
double manualViewBaseContour::_coulorNormal_r [protected, inherited] |
Definition at line 191 of file manualViewBaseContour.h.
Referenced by manualViewBaseContour::CopyAttributesTo(), manualViewBaseContour::GetColorNormalContour(), manualViewBaseContour::manualViewBaseContour(), manualViewPoints::RefreshContour(), manualViewBaseContour::SetColorNormalContour(), and manualViewBaseContour::UpdateColorActor().
double manualViewBaseContour::_coulorSelection_b [protected, inherited] |
Definition at line 196 of file manualViewBaseContour.h.
Referenced by manualViewBaseContour::CopyAttributesTo(), manualViewBaseContour::GetColorSelectContour(), manualViewBaseContour::manualViewBaseContour(), manualViewPoints::RefreshContour(), manualViewBaseContour::SetColorSelectContour(), and manualViewBaseContour::UpdateColorActor().
double manualViewBaseContour::_coulorSelection_g [protected, inherited] |
Definition at line 195 of file manualViewBaseContour.h.
Referenced by manualViewBaseContour::CopyAttributesTo(), manualViewBaseContour::GetColorSelectContour(), manualViewBaseContour::manualViewBaseContour(), manualViewPoints::RefreshContour(), manualViewBaseContour::SetColorSelectContour(), and manualViewBaseContour::UpdateColorActor().
double manualViewBaseContour::_coulorSelection_r [protected, inherited] |
Definition at line 194 of file manualViewBaseContour.h.
Referenced by manualViewBaseContour::CopyAttributesTo(), manualViewBaseContour::GetColorSelectContour(), manualViewBaseContour::manualViewBaseContour(), manualViewPoints::RefreshContour(), manualViewBaseContour::SetColorSelectContour(), and manualViewBaseContour::UpdateColorActor().
bool* manualViewBaseContour::_editable [protected, inherited] |
Definition at line 208 of file manualViewBaseContour.h.
Referenced by manualViewBaseContour::GetEditable(), and manualViewBaseContour::SetEditable().
int manualViewBaseContour::_id_viewPoint_for_text [protected, inherited] |
Definition at line 214 of file manualViewBaseContour.h.
Referenced by manualViewContour(), and RefreshText().
Definition at line 35 of file manualViewContour.h.
Referenced by InitMove(), manualViewContour(), MoveContour(), and ~manualViewContour().
std::vector< std::vector<double> > manualViewContour::_initialMovingPoints [private] |
Definition at line 34 of file manualViewContour.h.
std::vector<manualViewPoint*> manualViewBaseContour::_lstViewPoints [protected, inherited] |
Definition at line 230 of file manualViewBaseContour.h.
Referenced by manualViewBaseContour::AddControlPoints(), manualViewBaseContour::AddPoint(), manualViewBaseContour::ClearContour(), manualViewBaseContour::CopyAttributesTo(), manualViewBaseContour::DeleteContour(), DeletePoint(), manualViewBaseContour::DeletePoint(), manualViewBaseContour::DeleteSelectedPoints(), manualViewBaseContour::GetNumberOfPoints(), manualViewBaseContour::InsertPoint(), manualViewBaseContour::Refresh(), RefreshText(), manualViewBaseContour::RemoveControlPoints(), manualViewBaseContour::SelectAllPoints(), manualViewBaseContour::SelectAllPossibleSelected(), manualViewBaseContour::SelectPoint(), manualViewBaseContour::SelectPosibleContour(), manualViewBaseContour::SetPointPosibleSelected(), manualViewBaseContour::SetPointSelected(), manualViewBaseContour::SetVisible(), manualViewBaseContour::SetWidthLine(), manualViewBaseContour::UnSelectAllPoints(), manualViewBaseContour::UnSelectPoint(), manualViewPerpPlaneContour::UpdateViewPoint(), manualViewBaseContour::UpdateViewPoint(), manualView3VContour::UpdateViewPoint(), manualViewBaseContour::UpdateViewPoints(), and manualViewBaseContour::~manualViewBaseContour().
manualBaseModel* manualViewBaseContour::_manContModel [protected, inherited] |
Definition at line 220 of file manualViewBaseContour.h.
Referenced by manualViewBullEye::ConstructVTKObjects(), manualViewBaseContour::ConstructVTKObjects(), manualViewBaseContour::GetIdPoint(), manualView3VContour::GetIdPoint(), manualView3DContour::GetIdPoint2(), manualViewRotationTool::GetMinMax(), manualViewRoi::GetMinMax(), manualViewCircle::GetMinMax(), manualViewBaseContour::GetMinMax(), manualViewPoints::ifTouchContour(), ifTouchContour(), manualView3VContour::ifTouchContour(), manualViewRotationTool::InitMove(), manualViewRoi::InitMove(), manualViewLine::InitMove(), InitMove(), manualViewCircle::InitMove(), manualViewBaseContour::manualViewBaseContour(), manualViewRotationTool::MoveContour(), manualViewRoi::MoveContour(), manualViewLine::MoveContour(), MoveContour(), manualViewCircle::MoveContour(), manualViewPerpPlaneContour::RefreshContour(), manualViewRoi::RefreshContour(), manualViewPoints::RefreshContour(), RefreshContour(), manualViewBullEyeSector::RefreshContour(), manualViewBullEye::RefreshContour(), manualView3VContour::RefreshContour(), RefreshText(), manualViewBaseContour::SetModel(), manualViewPerpPlaneContour::UpdateViewPoint(), manualViewBaseContour::UpdateViewPoint(), and manualView3VContour::UpdateViewPoint().
double manualViewContour::_mesureScale [private] |
Definition at line 33 of file manualViewContour.h.
Referenced by CopyAttributesTo(), manualViewContour(), RefreshText(), and SetMesureScale().
bool manualViewBaseContour::_posibleSelected [protected, inherited] |
Definition at line 209 of file manualViewBaseContour.h.
Referenced by manualViewBaseContour::GetPosibleSelected(), manualViewBaseContour::manualViewBaseContour(), manualViewPoints::RefreshContour(), manualViewBaseContour::SelectPosibleContour(), manualViewBaseContour::SetPosibleSelected(), and manualViewBaseContour::UpdateColorActor().
vtkPoints* manualViewBaseContour::_pts [protected, inherited] |
Definition at line 222 of file manualViewBaseContour.h.
Referenced by manualViewBaseContour::ConstructVTKObjects(), manualViewBaseContour::DeleteVtkObjects(), manualViewBaseContour::GetVectorPointsXManualContour(), manualViewBaseContour::GetVectorPointsYManualContour(), manualViewBaseContour::GetVectorPointsZManualContour(), manualViewPerpPlaneContour::ifTouchContour(), ifTouchContour(), manualView3VContour::ifTouchContour(), manualViewBaseContour::manualViewBaseContour(), manualViewPerpPlaneContour::RefreshContour(), manualViewRoi::RefreshContour(), RefreshContour(), manualViewBullEyeSector::RefreshContour(), and manualView3VContour::RefreshContour().
double manualViewBaseContour::_range [protected, inherited] |
Definition at line 186 of file manualViewBaseContour.h.
Referenced by manualViewBaseContour::GetIdPoint(), manualViewBaseContour::GetRange(), manualViewPoints::ifTouchContour(), manualViewBaseContour::manualViewBaseContour(), manualViewPoints::RefreshContour(), manualViewBaseContour::SetRange(), and manualViewBaseContour::UpdateViewPoint().
bool manualViewBaseContour::_selected [protected, inherited] |
Definition at line 207 of file manualViewBaseContour.h.
Referenced by manualViewBaseContour::GetSelected(), manualViewBaseContour::manualViewBaseContour(), manualViewPoints::RefreshContour(), manualViewBaseContour::SelectPosibleContour(), manualViewBaseContour::SetSelected(), and manualViewBaseContour::UpdateColorActor().
bool manualViewBaseContour::_show_text [protected, inherited] |
Definition at line 213 of file manualViewBaseContour.h.
Referenced by manualViewBaseContour::manualViewBaseContour(), manualViewBaseContour::Refresh(), and manualViewBaseContour::SetShowText().
int manualViewBaseContour::_sizePointsContour [protected, inherited] |
Definition at line 224 of file manualViewBaseContour.h.
Referenced by manualViewBaseContour::GetVectorPointsXManualContour(), manualViewBaseContour::GetVectorPointsYManualContour(), manualViewBaseContour::GetVectorPointsZManualContour(), ifTouchContour(), manualView3VContour::ifTouchContour(), manualViewBaseContour::manualViewBaseContour(), manualViewLine::manualViewLine(), and manualViewRoi::manualViewRoi().
double manualViewBaseContour::_spc[3] [protected, inherited] |
Definition at line 235 of file manualViewBaseContour.h.
Referenced by manualViewBaseContour::AddPoint(), manualViewBaseContour::CopyAttributesTo(), manualViewBaseContour::GetSpacing(), manualViewPoints::ifTouchContour(), ifTouchContour(), manualView3VContour::ifTouchContour(), manualViewBaseContour::InsertPoint(), manualViewBaseContour::manualViewBaseContour(), manualViewPerpPlaneContour::RefreshContour(), manualViewRoi::RefreshContour(), RefreshContour(), manualViewBullEyeSector::RefreshContour(), RefreshText(), and manualViewBaseContour::SetSpacing().
vtkTextActor* manualViewBaseContour::_textActor [protected, inherited] |
Definition at line 215 of file manualViewBaseContour.h.
Referenced by manualViewBaseContour::AddTextActor(), manualViewBaseContour::InitTextActor(), manualViewBaseContour::manualViewBaseContour(), RefreshText(), manualViewBaseContour::RefreshText(), manualViewBaseContour::RemoveTextActor(), manualViewBaseContour::SetShowText(), and manualViewBaseContour::SetVisible().
bool manualViewBaseContour::_viewControlPoints [protected, inherited] |
Definition at line 210 of file manualViewBaseContour.h.
Referenced by manualViewBaseContour::AddCompleteContourActor(), manualViewBaseContour::AddControlPoints(), manualViewBaseContour::GetIfViewControlPoints(), manualViewBaseContour::manualViewBaseContour(), and manualViewBaseContour::SetIfViewControlPoints().
double manualViewBaseContour::_widthline [protected, inherited] |
Definition at line 197 of file manualViewBaseContour.h.
Referenced by manualViewBaseContour::GetWidthLine(), manualViewBaseContour::manualViewBaseContour(), manualViewBaseContour::SetWidthLine(), and manualViewBaseContour::UpdateColorActor().
wxVtkBaseView* manualViewBaseContour::_wxvtkbaseview [protected, inherited] |
Definition at line 202 of file manualViewBaseContour.h.
Referenced by manualViewBaseContour::AddCompleteContourActor(), manualViewBaseContour::AddControlPoints(), manualViewBaseContour::AddPoint(), manualViewPoints::AddSplineActor(), manualViewBaseContour::AddSplineActor(), manualViewBaseContour::AddTextActor(), manualViewBaseContour::ClearContour(), manualViewBaseContour::CopyAttributesTo(), manualViewBaseContour::DeletePoint(), manualViewBaseContour::GetWxVtkBaseView(), manualViewBaseContour::InsertPoint(), manualViewBaseContour::manualViewBaseContour(), manualViewBaseContour::Refresh(), manualViewPoints::RefreshContour(), manualViewBaseContour::RemoveCompleteContourActor(), manualViewBaseContour::RemoveControlPoints(), manualViewPoints::RemoveSplineActor(), manualViewBaseContour::RemoveSplineActor(), manualViewBaseContour::RemoveTextActor(), manualViewBaseContour::SetWxVtkBaseView(), and manualViewBaseContour::TransfromCoordViewWorld().