#include <manualViewBullEye.h>
Public Member Functions | |
manualViewBullEye () | |
virtual | ~manualViewBullEye () |
virtual int | GetType () |
virtual manualViewBullEye * | Clone () |
void | CopyAttributesTo (manualViewBullEye *cloneObject) |
virtual void | RemoveSplineActor () |
virtual void | AddSplineActor () |
virtual void | ConstructVTKObjects () |
virtual void | RefreshContour () |
void | CopyAttributesTo (manualViewRoi *cloneObject) |
void | CopyAttributesTo (manualViewContour *cloneObject) |
void | CopyAttributesTo (manualViewBaseContour *cloneObject) |
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) |
void | GetMinMax (double &minX, double &minY, double &maxX, double &maxY) |
virtual void | GetMinMax (double &minX, double &minY, double &minZ, double &maxX, double &maxY, double &maxZ) |
virtual void | Save (FILE *pFile) |
virtual void | Open (FILE *pFile) |
virtual void | DeletePoint (int id) |
void | DeletePoint (int x, int y, int z) |
virtual void | ClearPoint (int id) |
void | SetMesureScale (double mesureScale) |
void | AddPoint () |
void | AddPoint (manualViewPoint *manualViewPoint) |
void | InsertPoint (int id) |
void | DeleteContour () |
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 (manualContourModel *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 | 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 () |
void | AddControlPoints () |
void | RemoveControlPoints () |
void | AddTextActor () |
void | RemoveTextActor () |
void | SetWidthLine (double width) |
double | GetWidthLine () |
Protected Attributes | |
bool | _show_text |
int | _id_viewPoint_for_text |
vtkTextActor * | _textActor |
manualContourModel * | _manContModel |
vtkPoints * | _pts |
int | _sizePointsContour |
std::vector < manualViewPoint * > | _lstViewPoints |
double | _spc [3] |
Private Attributes | |
std::vector < manualViewBaseContour * > | lstSectorBullEye |
Definition at line 12 of file manualViewBullEye.h.
manualViewBullEye::manualViewBullEye | ( | ) |
Definition at line 7 of file manualViewBullEye.cpp.
Referenced by Clone().
manualViewBullEye::~manualViewBullEye | ( | ) | [virtual] |
Definition at line 12 of file manualViewBullEye.cpp.
References lstSectorBullEye.
00013 { 00014 // BullEye(s) 00015 int i,size=lstSectorBullEye.size(); 00016 for (i=0;i<size;i++) 00017 { 00018 delete lstSectorBullEye[i]; 00019 } 00020 lstSectorBullEye.clear(); 00021 }
int manualViewBullEye::GetType | ( | ) | [virtual] |
manualViewBullEye * manualViewBullEye::Clone | ( | ) | [virtual] |
Reimplemented from manualViewRoi.
Definition at line 25 of file manualViewBullEye.cpp.
References CopyAttributesTo(), and manualViewBullEye().
00026 { 00027 manualViewBullEye * clone = new manualViewBullEye(); 00028 CopyAttributesTo(clone); 00029 return clone; 00030 }
void manualViewBullEye::CopyAttributesTo | ( | manualViewBullEye * | cloneObject | ) |
Definition at line 34 of file manualViewBullEye.cpp.
References manualViewBaseContour::CopyAttributesTo().
Referenced by Clone().
00035 { 00036 // Fathers object 00037 manualViewBaseContour::CopyAttributesTo(cloneObject); 00038 }
void manualViewBullEye::RemoveSplineActor | ( | ) | [virtual] |
Reimplemented from manualViewBaseContour.
Definition at line 112 of file manualViewBullEye.cpp.
References lstSectorBullEye, and manualViewBaseContour::RemoveSplineActor().
00113 { 00114 manualViewRoi::RemoveSplineActor(); 00115 int i,size=lstSectorBullEye.size(); 00116 for (i=0;i<size;i++) 00117 { 00118 lstSectorBullEye[i]->RemoveSplineActor(); 00119 } 00120 }
void manualViewBullEye::AddSplineActor | ( | ) | [virtual] |
Reimplemented from manualViewBaseContour.
Definition at line 101 of file manualViewBullEye.cpp.
References manualViewBaseContour::AddSplineActor(), and lstSectorBullEye.
00102 { 00103 manualViewRoi::AddSplineActor(); 00104 int i,size=lstSectorBullEye.size(); 00105 for (i=0;i<size;i++) 00106 { 00107 lstSectorBullEye[i]->AddSplineActor(); 00108 } 00109 }
void manualViewBullEye::ConstructVTKObjects | ( | ) | [virtual] |
Reimplemented from manualViewBaseContour.
Definition at line 71 of file manualViewBullEye.cpp.
References manualViewBaseContour::ConstructVTKObjects(), manualContourModelBullEye::GetModelSector(), manualContourModelBullEye::GetSizeOfSectorLst(), manualViewBaseContour::GetSpacing(), lstSectorBullEye, manualViewBaseContour::SetColorNormalContour(), manualViewBaseContour::SetModel(), manualViewBaseContour::SetRange(), manualViewBaseContour::SetSpacing(), manualViewBaseContour::SetWidthLine(), manualViewBaseContour::SetWxVtkBaseView(), and manualViewBaseContour::SetZ().
00072 { 00073 manualViewRoi::ConstructVTKObjects(); 00074 00075 double spc[3]; 00076 this->GetSpacing(spc); 00077 manualViewBullEyeSector *mvbc; 00078 manualContourModelBullEye *mcmbe = (manualContourModelBullEye*)this->_manContModel; 00079 int i,size = mcmbe->GetSizeOfSectorLst(); 00080 for ( i=0 ; i<size ; i++ ) 00081 { 00082 mvbc = new manualViewBullEyeSector(); 00083 mvbc->SetModel( mcmbe->GetModelSector(i) ); 00084 mvbc->SetWxVtkBaseView( this->GetWxVtkBaseView() ); 00085 mvbc->SetRange( 2 ); 00086 mvbc->SetZ( 1000 ); 00087 mvbc->SetSpacing(spc); 00088 mvbc->SetColorNormalContour(1, 0, 0); 00089 // mvbc->SetColorEditContour(0.5, 0.5, 0.5); 00090 // mvbc->SetColorSelectContour(1, 0.8, 0); 00091 mvbc->SetWidthLine( this->GetWidthLine() ); 00092 //EED004 00093 mvbc->ConstructVTKObjects(); 00094 lstSectorBullEye.push_back( mvbc ); 00095 } 00096 00097 00098 }
void manualViewBullEye::RefreshContour | ( | ) | [virtual] |
Reimplemented from manualViewRoi.
Definition at line 49 of file manualViewBullEye.cpp.
References manualViewBaseContour::_manContModel, manualViewBaseContour::GetNumberOfPoints(), lstSectorBullEye, manualViewRoi::RefreshContour(), and manualContourModel::UpdateSpline().
00050 { 00051 // External Rectangle 00052 manualViewRoi::RefreshContour(); 00053 00054 _manContModel->UpdateSpline(); 00055 int np = GetNumberOfPoints( ); 00056 // Refres sectors of BullEye(s) 00057 00058 if (np>=2 ) 00059 { 00060 int i,size = lstSectorBullEye.size(); 00061 for (i=0;i<size;i++) 00062 { 00063 lstSectorBullEye[i]->RefreshContour(); 00064 } // for 00065 } // if 00066 00067 00068 }
void manualViewRoi::CopyAttributesTo | ( | manualViewRoi * | cloneObject | ) | [inherited] |
Definition at line 27 of file manualViewRoi.cpp.
References manualViewBaseContour::CopyAttributesTo().
Referenced by manualViewRoi::Clone().
00028 { 00029 // Fathers object 00030 manualViewBaseContour::CopyAttributesTo(cloneObject); 00031 }
void manualViewContour::CopyAttributesTo | ( | manualViewContour * | cloneObject | ) | [inherited] |
Definition at line 30 of file manualViewContour.cpp.
References manualViewContour::_mesureScale, manualViewBaseContour::CopyAttributesTo(), and manualViewContour::SetMesureScale().
Referenced by manualViewContour::Clone(), manualViewPerpPlaneContour::CopyAttributesTo(), manualView3VContour::CopyAttributesTo(), and manualView3DContour::CopyAttributesTo().
00031 { 00032 // Call to Fathers object 00033 manualViewBaseContour::CopyAttributesTo(cloneObject); 00034 00035 cloneObject->SetMesureScale(_mesureScale); 00036 }
void manualViewBaseContour::CopyAttributesTo | ( | manualViewBaseContour * | cloneObject | ) | [inherited] |
Definition at line 119 of file manualViewBaseContour.cpp.
References 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::_lstViewPoints, manualViewBaseContour::_spc, manualViewBaseContour::AddPoint(), manualViewBaseContour::SetColorEditContour(), manualViewBaseContour::SetColorNormalContour(), manualViewBaseContour::SetColorSelectContour(), manualViewBaseContour::SetIfViewControlPoints(), manualViewBaseContour::SetPosibleSelected(), manualViewBaseContour::SetRange(), manualViewBaseContour::SetSelected(), manualViewBaseContour::SetSpacing(), manualViewBaseContour::SetWxVtkBaseView(), and manualViewBaseContour::SetZ().
Referenced by manualViewBaseContour::Clone(), manualViewRoi::CopyAttributesTo(), manualViewLine::CopyAttributesTo(), manualViewContour::CopyAttributesTo(), manualViewCircle::CopyAttributesTo(), and CopyAttributesTo().
00120 { 00121 // Fathers object 00122 //XXXX::CopyAttributesTo(cloneObject); 00123 00124 cloneObject-> SetWxVtkBaseView( this->_wxvtkbaseview ); 00125 cloneObject-> SetSelected( this->GetSelected() ); 00126 cloneObject-> SetPosibleSelected( this->GetPosibleSelected() ); 00127 cloneObject-> SetIfViewControlPoints( this->GetIfViewControlPoints() ); 00128 cloneObject-> SetRange( this->GetRange() ); 00129 cloneObject-> SetZ( this->GetZ() ); 00130 cloneObject-> SetSpacing( _spc ); 00131 cloneObject-> SetColorNormalContour( _coulorNormal_r, _coulorNormal_g, _coulorNormal_b ); 00132 cloneObject-> SetColorEditContour( _coulorEdit_r, _coulorEdit_g, _coulorEdit_b ); 00133 cloneObject-> SetColorSelectContour( _coulorSelection_r, _coulorSelection_g, _coulorSelection_b ); 00134 00135 int i, size = _lstViewPoints.size(); 00136 for ( i=0; i<size; i++ ) 00137 { 00138 cloneObject->AddPoint( ); 00139 } 00140 }
bool manualViewRoi::ifTouchContour | ( | int | x, | |
int | y, | |||
int | z | |||
) | [virtual, inherited] |
Reimplemented from manualViewContour.
Definition at line 127 of file manualViewRoi.cpp.
References manualViewRoi::GetMinMax(), manualViewBaseContour::GetRange(), and manualViewBaseContour::TransfromCoordViewWorld().
00128 { 00129 bool result=false; 00130 double px1=99999,py1=99999,px2=-99999,py2=-99999; 00131 00132 GetMinMax(px1,py1, px2, py2); 00133 00134 double xx=x; 00135 double yy=y; 00136 double zz=z; 00137 TransfromCoordViewWorld(xx,yy,zz); 00138 00139 bool ok1=false; 00140 bool ok2=false; 00141 double ddx=GetRange(); 00142 double ddy=GetRange(); 00143 00144 if ((xx>px1-ddx)&&(xx<px2+ddx) && (yy>py1-ddy)&&(yy<py2+ddy)) 00145 { 00146 ok1=true; 00147 } 00148 00149 if ((xx>px1+ddx)&&(xx<px2-ddx) && (yy>py1+ddy)&&(yy<py2-ddy)) 00150 { 00151 ok2=true; 00152 } 00153 00154 if ((ok1==true) && (ok2==false)) 00155 { 00156 result=true; 00157 } 00158 00159 return result; 00160 }
void manualViewRoi::InitMove | ( | int | x, | |
int | y, | |||
int | z | |||
) | [virtual, inherited] |
Reimplemented from manualViewContour.
Definition at line 164 of file manualViewRoi.cpp.
References manualViewRoi::_dp0, manualViewRoi::_dp1, manualViewRoi::_dp2, manualViewRoi::_dp3, manualViewBaseContour::_manContModel, manualContourModel::GetManualPoint(), manualContourModel::GetSizeLstPoints(), manualPoint::GetX(), manualPoint::GetY(), manualPoint::GetZ(), and manualViewBaseContour::TransfromCoordViewWorld().
00165 { 00166 manualPoint *mp; 00167 double XX=x; 00168 double YY=y; 00169 double ZZ=z; 00170 TransfromCoordViewWorld(XX,YY,ZZ); 00171 00172 if (_manContModel->GetSizeLstPoints()==4){ 00173 mp = _manContModel->GetManualPoint(0); 00174 _dp0[0]= mp->GetX() - XX; 00175 _dp0[1]= mp->GetY() - YY; 00176 _dp0[2]= mp->GetZ(); 00177 00178 mp = _manContModel->GetManualPoint(1); 00179 _dp1[0]= mp->GetX() - XX; 00180 _dp1[1]= mp->GetY() - YY; 00181 _dp1[2]= mp->GetZ(); 00182 00183 mp = _manContModel->GetManualPoint(2); 00184 _dp2[0]= mp->GetX() - XX; 00185 _dp2[1]= mp->GetY() - YY; 00186 _dp2[2]= mp->GetZ(); 00187 00188 mp = _manContModel->GetManualPoint(3); 00189 _dp3[0]= mp->GetX() - XX; 00190 _dp3[1]= mp->GetY() - YY; 00191 _dp3[2]= mp->GetZ(); 00192 } 00193 }
void manualViewRoi::MoveContour | ( | int | x, | |
int | y, | |||
int | z | |||
) | [virtual, inherited] |
Reimplemented from manualViewContour.
Definition at line 197 of file manualViewRoi.cpp.
References manualViewRoi::_dp0, manualViewRoi::_dp1, manualViewRoi::_dp2, manualViewRoi::_dp3, manualViewBaseContour::_manContModel, manualContourModel::GetManualPoint(), manualPoint::SetPoint(), manualViewBaseContour::TransfromCoordViewWorld(), and manualViewBaseContour::UpdateViewPoint().
00198 { 00199 manualPoint *mp; 00200 double XX=x; 00201 double YY=y; 00202 double ZZ=z; 00203 TransfromCoordViewWorld(XX,YY,ZZ); 00204 00205 mp = _manContModel->GetManualPoint(0); 00206 mp->SetPoint(_dp0[0]+XX,_dp0[1]+YY,_dp0[2]); 00207 00208 mp = _manContModel->GetManualPoint(1); 00209 mp->SetPoint(_dp1[0]+XX,_dp1[1]+YY,_dp0[2]); 00210 00211 mp = _manContModel->GetManualPoint(2); 00212 mp->SetPoint(_dp2[0]+XX,_dp2[1]+YY,_dp0[2]); 00213 00214 mp = _manContModel->GetManualPoint(3); 00215 mp->SetPoint(_dp3[0]+XX,_dp3[1]+YY,_dp0[2]); 00216 00217 UpdateViewPoint(0); 00218 UpdateViewPoint(1); 00219 UpdateViewPoint(2); 00220 UpdateViewPoint(3); 00221 00222 }
void manualViewContour::MoveContour | ( | int | horizontalUnits, | |
int | verticalUnits | |||
) | [virtual, inherited] |
Reimplemented from manualViewBaseContour.
Definition at line 266 of file manualViewContour.cpp.
References manualViewBaseContour::_manContModel, manualContourModel::GetManualPoint(), manualContourModel::GetSizeLstPoints(), manualPoint::GetX(), manualPoint::GetY(), manualPoint::GetZ(), manualPoint::SetPoint(), and manualViewBaseContour::UpdateViewPoints().
00267 { 00268 manualPoint *mpOrigin = NULL; 00269 00270 int i, manualPointsSZ = _manContModel->GetSizeLstPoints(); 00271 for ( i=0; i<manualPointsSZ; i++ ) 00272 { 00273 mpOrigin = _manContModel->GetManualPoint( i ); 00274 mpOrigin->SetPoint( mpOrigin->GetX()+horizontalUnits, mpOrigin->GetY()+verticalUnits, mpOrigin->GetZ() ); 00275 } 00276 UpdateViewPoints(); 00277 }
void manualViewRoi::GetMinMax | ( | double & | minX, | |
double & | minY, | |||
double & | maxX, | |||
double & | maxY | |||
) | [inherited] |
Definition at line 73 of file manualViewRoi.cpp.
References manualViewBaseContour::_manContModel, manualContourModel::GetManualPoint(), manualContourModel::GetSizeLstPoints(), manualPoint::GetX(), and manualPoint::GetY().
Referenced by wxMaracasImageBrowser02::GetROI(), wxMaracasImageBrowser02::GetRoiSelected(), ContourVOIWidget::GetVOI(), and manualViewRoi::ifTouchContour().
00074 { 00075 double pp[3]; 00076 manualPoint *mp; 00077 unsigned int i; 00078 00079 minX=99999; 00080 minY=99999; 00081 maxX=-99999; 00082 maxY=-99999; 00083 00084 unsigned int size=(unsigned int) _manContModel->GetSizeLstPoints(); 00085 00086 for( i = 0; i < size; i++ ) 00087 { 00088 00089 mp=_manContModel->GetManualPoint(i); 00090 pp[0]=mp->GetX(); 00091 pp[1]=mp->GetY(); 00092 00093 // min X 00094 if (pp[0]<minX) 00095 { 00096 minX=pp[0]; 00097 } 00098 //min Y 00099 if (pp[1]<minY) 00100 { 00101 minY=pp[1]; 00102 } 00103 //max X 00104 if (pp[0]>maxX) 00105 { 00106 maxX=pp[0]; 00107 } 00108 // max Y 00109 if (pp[1]>maxY) 00110 { 00111 maxY=pp[1]; 00112 } 00113 } 00114 00115 if ( size<1 ) 00116 { 00117 minX=0; 00118 maxX=0; 00119 minY=0; 00120 maxY=0; 00121 } 00122 }
void manualViewBaseContour::GetMinMax | ( | double & | minX, | |
double & | minY, | |||
double & | minZ, | |||
double & | maxX, | |||
double & | maxY, | |||
double & | maxZ | |||
) | [virtual, inherited] |
Definition at line 772 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_manContModel, manualContourModel::GetManualPoint(), manualContourModel::GetSizeLstPoints(), manualPoint::GetX(), manualPoint::GetY(), and manualPoint::GetZ().
00773 { 00774 double pp[3]; 00775 manualPoint *mp; 00776 int i; 00777 int size=_manContModel->GetSizeLstPoints(); 00778 minX=99999; 00779 minY=99999; 00780 maxX=-99999; 00781 maxY=-99999; 00782 bool ifFindZ = minZ!=-1.0 && maxZ!=-1.0; 00783 if ( ifFindZ ) 00784 { 00785 minZ=99999; 00786 maxZ=-99999; 00787 } 00788 for( i = 0; i < size; i++ ) 00789 { 00790 mp=_manContModel->GetManualPoint(i); 00791 pp[0]=mp->GetX(); 00792 pp[1]=mp->GetY(); 00793 if ( ifFindZ ) 00794 pp[2]=mp->GetZ(); 00795 00796 // min X 00797 if (pp[0]<minX) 00798 { 00799 minX=pp[0]; 00800 } 00801 //min Y 00802 if (pp[1]<minY) 00803 { 00804 minY=pp[1]; 00805 } 00806 //max X 00807 if (pp[0]>maxX) 00808 { 00809 maxX=pp[0]; 00810 } 00811 // max Y 00812 if (pp[1]>maxY) 00813 { 00814 maxY=pp[1]; 00815 } 00816 if ( ifFindZ ) 00817 { 00818 // min Z 00819 if (pp[2]<minZ) 00820 { 00821 minZ=pp[2]; 00822 } 00823 // max Z 00824 if (pp[2]>maxZ) 00825 { 00826 maxZ=pp[2]; 00827 } 00828 } 00829 } 00830 if ( size<1 ) 00831 { 00832 minX = 0; 00833 maxX = 0; 00834 00835 minY = 0; 00836 maxY = 0; 00837 00838 minZ = 0; 00839 maxZ = 0; 00840 } 00841 }
void manualViewContour::Save | ( | FILE * | pFile | ) | [virtual, inherited] |
Reimplemented from manualViewBaseContour.
Definition at line 47 of file manualViewContour.cpp.
References manualViewBaseContour::Save().
00048 { 00049 manualViewBaseContour::Save(pFile); 00050 }
void manualViewContour::Open | ( | FILE * | pFile | ) | [virtual, inherited] |
void manualViewContour::DeletePoint | ( | int | id | ) | [virtual, inherited] |
Reimplemented from manualViewBaseContour.
Definition at line 209 of file manualViewContour.cpp.
References manualViewBaseContour::_lstViewPoints, and manualViewBaseContour::DeletePoint().
00210 { 00211 if (_lstViewPoints.size()>2) 00212 { 00213 manualViewBaseContour::DeletePoint( id ); 00214 } 00215 }
void manualViewBaseContour::DeletePoint | ( | int | x, | |
int | y, | |||
int | z | |||
) | [inherited] |
Definition at line 385 of file manualViewBaseContour.cpp.
References manualViewBaseContour::GetIdPoint().
Referenced by manualViewContour::ClearPoint(), manualViewBaseContour::ClearPoint(), manualContourBaseControler::DeleteActualMousePoint(), manualContour3VControler::DeleteActualMousePoint_Others(), manualViewBaseContour::DeleteContour(), manualViewContour::DeletePoint(), and manualViewBaseContour::DeleteSelectedPoints().
00386 { 00387 int id=GetIdPoint(x,y,z); 00388 if (id!=-1){ 00389 DeletePoint(id); 00390 } 00391 }
void manualViewContour::ClearPoint | ( | int | id | ) | [virtual, inherited] |
Reimplemented from manualViewBaseContour.
Definition at line 218 of file manualViewContour.cpp.
References manualViewBaseContour::DeletePoint().
00219 { 00220 manualViewBaseContour::DeletePoint( id ); 00221 }
void manualViewContour::SetMesureScale | ( | double | mesureScale | ) | [inherited] |
Definition at line 224 of file manualViewContour.cpp.
References manualViewContour::_mesureScale.
Referenced by wxManualTree_MPRWidget::ConfigureContour(), manualViewContour::CopyAttributesTo(), and wxWidgetMesure2D::SetMesureScale().
00225 { 00226 _mesureScale = mesureScale; 00227 }
void manualViewBaseContour::AddPoint | ( | ) | [inherited] |
Definition at line 326 of file manualViewBaseContour.cpp.
Referenced by manualContourBaseControler::AddPoint(), manualContour3VControler::AddPoint(), manualContour3VControler::AddPoint_Others(), manualViewBaseContour::CopyAttributesTo(), manualContourBaseControler::InsertPoint(), manualContourContainer::refreshLumen(), manualContourContainer::refreshWall(), and wxMaracasCoutourTool::SetControlPoints().
00327 { 00328 manualViewPoint *mvp = new manualViewPoint( this->GetWxVtkBaseView() ); 00329 AddPoint( mvp ); 00330 }
void manualViewBaseContour::AddPoint | ( | manualViewPoint * | manualViewPoint | ) | [inherited] |
Definition at line 332 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_lstViewPoints, manualViewBaseContour::_spc, manualViewBaseContour::_wxvtkbaseview, manualViewPoint::CreateVtkPointActor(), wxVtkBaseView::GetRenderer(), and manualViewPoint::SetSpacing().
00333 { 00334 _lstViewPoints.push_back( manualViewPoint ); 00335 00336 // EED 3 oct 2006 00337 manualViewPoint->SetSpacing(_spc); 00338 00339 vtkActor *actor = manualViewPoint->CreateVtkPointActor(); 00340 _wxvtkbaseview->GetRenderer()->AddActor( actor ); 00341 }
void manualViewBaseContour::InsertPoint | ( | int | id | ) | [inherited] |
Definition at line 344 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_lstViewPoints, manualViewBaseContour::_spc, manualViewBaseContour::_wxvtkbaseview, manualViewPoint::CreateVtkPointActor(), wxVtkBaseView::GetRenderer(), and manualViewPoint::SetSpacing().
Referenced by manualContourBaseControler::InsertPoint(), manualContour3VControler::InsertPoint(), and manualContour3VControler::InsertPoint_Others().
00345 { 00346 manualViewPoint *mvp = new manualViewPoint( this->GetWxVtkBaseView() ); 00347 00348 // EED 3 oct 2006 00349 mvp->SetSpacing(_spc); 00350 00351 std::vector<manualViewPoint*>::iterator itNum = _lstViewPoints.begin() + id; 00352 _lstViewPoints.insert(itNum,mvp); 00353 _wxvtkbaseview->GetRenderer()->AddActor( mvp->CreateVtkPointActor() ); 00354 }
void manualViewBaseContour::DeleteContour | ( | ) | [inherited] |
Definition at line 356 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().
00357 { 00358 RemoveCompleteContourActor(); 00359 /*if (_contourVtkActor!=NULL){ 00360 _wxvtkbaseview->GetRenderer()->RemoveActor( _contourVtkActor ); 00361 }*/ 00362 DeleteVtkObjects(); 00363 int i,size=_lstViewPoints.size(); 00364 for (i=0;i<size;i++){ 00365 manualViewBaseContour::DeletePoint(0); 00366 } 00367 Refresh(); 00368 }
void manualViewBaseContour::UpdateViewPoint | ( | int | id | ) | [virtual, inherited] |
Reimplemented in manualView3VContour, and manualViewPerpPlaneContour.
Definition at line 303 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_lstViewPoints, manualViewBaseContour::_manContModel, manualViewBaseContour::_range, manualContourModel::GetManualPoint(), manualPoint::GetX(), manualPoint::GetY(), and manualPoint::GetZ().
Referenced by manualRoiControler::InitRoi(), manualLineControler::InitRoi(), manualCircleControler::InitRoi(), manualViewRoi::MoveContour(), manualViewLine::MoveContour(), manualViewCircle::MoveContour(), manualViewBaseContour::Refresh(), manualContourBaseControler::SetPoint(), manualContourBaseControler::SetPointX(), manualContourBaseControler::SetPointY(), manualContourBaseControler::SetPointZ(), manualRoiControler::SetRoi(), and manualViewBaseContour::UpdateViewPoints().
00304 { 00305 manualPoint *mp = _manContModel->GetManualPoint(id); 00306 00307 //EEDx6 00308 double XX=mp->GetX(),YY=mp->GetY(),ZZ=mp->GetZ(); 00309 // wxVtk2DBaseView *wxvtk2Dbasevie = (wxVtk2DBaseView*)this->GetWxVtkBaseView(); 00310 // wxvtk2Dbasevie->TransformCoordinate_spacing_ModelToView(XX,YY,ZZ); 00311 00312 _lstViewPoints[id]->SetPositionXY( XX , YY ,_range, ZZ ); 00313 }
void manualViewBaseContour::UpdateViewPoints | ( | ) | [virtual, inherited] |
Definition at line 316 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_lstViewPoints, and manualViewBaseContour::UpdateViewPoint().
Referenced by manualViewContour::MoveContour().
00317 { 00318 int id, size = _lstViewPoints.size(); 00319 for( id=0; id<size; id++) 00320 { 00321 UpdateViewPoint( id ); 00322 } 00323 }
void manualViewBaseContour::SetSelected | ( | bool | selected | ) | [inherited] |
Definition at line 393 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_selected.
Referenced by manualViewBaseContour::CopyAttributesTo(), manualContourControler::MouseClickLeft(), and manualContourBaseControler::SetEditable().
00394 { 00395 _selected=selected; 00396 }
void manualViewBaseContour::SetPosibleSelected | ( | bool | posibleSelected | ) | [inherited] |
Definition at line 398 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_posibleSelected.
Referenced by manualViewBaseContour::CopyAttributesTo(), manualContour3VControler::MouseMove_Others(), and manualViewBaseContour::SelectPosibleContour().
00399 { 00400 _posibleSelected=posibleSelected; 00401 }
bool manualViewBaseContour::GetSelected | ( | ) | [inherited] |
Definition at line 413 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_selected.
Referenced by manualViewBaseContour::DeleteSelectedPoints().
00414 { 00415 return _selected; 00416 }
bool manualViewBaseContour::GetPosibleSelected | ( | ) | [inherited] |
Definition at line 418 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_posibleSelected.
Referenced by manualViewContour::RefreshText().
00419 { 00420 return _posibleSelected; 00421 }
void manualViewBaseContour::DeleteSelectedPoints | ( | ) | [inherited] |
Definition at line 423 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_lstViewPoints, manualViewBaseContour::DeletePoint(), manualViewBaseContour::GetSelected(), and manualViewBaseContour::Refresh().
00424 { 00425 int i,size=_lstViewPoints.size(); 00426 for (i=size-1;i>=0;i--){ 00427 if (_lstViewPoints[i]->GetSelected()==true){ 00428 DeletePoint(i); 00429 } 00430 } 00431 Refresh(); 00432 }
bool manualViewBaseContour::GetEditable | ( | ) | [inherited] |
Definition at line 403 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_editable.
Referenced by manualViewBaseContour::SelectPosibleContour(), and manualViewBaseContour::UpdateColorActor().
00404 { 00405 return *_editable; 00406 }
void manualViewBaseContour::SetEditable | ( | bool * | condition | ) | [inherited] |
Definition at line 408 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_editable.
Referenced by manualContourBaseControler::SetModelView().
00409 { 00410 _editable = condition; 00411 }
int manualViewBaseContour::GetIdPoint | ( | int | x, | |
int | y, | |||
int | z | |||
) | [virtual, inherited] |
Reimplemented in manualView3VContour.
Definition at line 688 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_manContModel, manualViewBaseContour::_range, manualContourModel::GetIdPoint(), and manualViewBaseContour::TransfromCoordViewWorld().
Referenced by manualContourPerpPlaneControler::DeleteActualMousePoint(), manualContourBaseControler::DeleteActualMousePoint(), manualContour3VControler::DeleteActualMousePoint(), manualContour3V3DControler::DeleteActualMousePoint(), manualViewBaseContour::DeletePoint(), manualContourBaseControler::Magnet(), manualRoiControler::MouseClickLeft(), manualLineControler::MouseClickLeft(), manualContourControler::MouseClickLeft(), manualCircleControler::MouseClickLeft(), manualContourPerpPlaneControler::MouseMove(), manualContour3VControler::MouseMove(), manualContour3V3DControler::MouseMove(), manualViewBaseContour::SelectPosibleContour(), and manualViewBaseContour::SelectPosiblePoint().
00689 { 00690 int ii = -1; 00691 if (_manContModel!=NULL){ 00692 double xx = x; 00693 double yy = y; 00694 double zz = z; 00695 TransfromCoordViewWorld(xx,yy,zz); 00696 ii=_manContModel->GetIdPoint(xx,yy,zz,_range,-1); 00697 } 00698 return ii; 00699 }
void manualViewBaseContour::SelectPoint | ( | int | i, | |
bool | select | |||
) | [inherited] |
Definition at line 434 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_lstViewPoints.
Referenced by manualViewBaseContour::SelectAllPoints().
00435 { 00436 _lstViewPoints[i]->SetSelected(select); 00437 }
void manualViewBaseContour::SelectLstPoints | ( | ) | [inherited] |
void manualViewBaseContour::SelectAllPoints | ( | bool | select | ) | [inherited] |
Definition at line 444 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_lstViewPoints, and manualViewBaseContour::SelectPoint().
00445 { 00446 int i,size=_lstViewPoints.size(); 00447 for (i=0;i<size;i++){ 00448 SelectPoint(i,select); 00449 } 00450 }
int manualViewBaseContour::SelectPosiblePoint | ( | int | x, | |
int | y, | |||
int | z | |||
) | [virtual, inherited] |
Reimplemented in manualView3DContour.
Definition at line 481 of file manualViewBaseContour.cpp.
References manualViewBaseContour::GetIdPoint(), manualViewBaseContour::SelectAllPossibleSelected(), and manualViewBaseContour::SetPointPosibleSelected().
Referenced by manualContourBaseControler::MouseDLeft(), manualRoiControler::MouseMove(), manualLineControler::MouseMove(), manualContourControler::MouseMove(), and manualCircleControler::MouseMove().
00482 { 00483 SelectAllPossibleSelected(false); 00484 00485 int id = GetIdPoint(x,y,z); 00486 if (id!=-1) 00487 { 00488 SetPointPosibleSelected(id,true); 00489 } 00490 return id; 00491 }
bool manualViewBaseContour::SelectPosibleContour | ( | int | x, | |
int | y, | |||
int | z | |||
) | [inherited] |
Definition at line 493 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_selected, manualViewBaseContour::GetEditable(), manualViewBaseContour::GetIdPoint(), manualViewBaseContour::ifTouchContour(), and manualViewBaseContour::SetPosibleSelected().
Referenced by manualContourBaseControler::MouseDLeft(), manualRoiControler::MouseMove(), manualLineControler::MouseMove(), manualContourControler::MouseMove(), manualCircleControler::MouseMove(), and manualContourBaseControler::MouseReleaseLeft().
00494 { 00495 bool result=false; 00496 SetPosibleSelected(result); 00497 int id = GetIdPoint(x,y,z); 00498 if( !GetEditable() && !_selected && id!= -1) 00499 { 00500 result=true; 00501 SetPosibleSelected(result); 00502 } 00503 else 00504 { 00505 if ( (GetEditable()==true) && (id==-1 ) && (this->_lstViewPoints.size()>=2) ) 00506 { 00507 if (ifTouchContour(x,y,z)==true) 00508 { 00509 result=true; 00510 SetPosibleSelected(result); 00511 } 00512 } 00513 00514 if (GetEditable()==false) 00515 { 00516 if (ifTouchContour(x,y,z)==true) 00517 { 00518 result=true; 00519 SetPosibleSelected(result); 00520 } 00521 } 00522 00523 00524 } 00525 return result; 00526 }
void manualViewBaseContour::SelectAllPossibleSelected | ( | bool | select | ) | [inherited] |
Definition at line 473 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_lstViewPoints, and manualViewBaseContour::SetPointPosibleSelected().
Referenced by manualContour3VControler::MouseMove_Others(), manualViewBaseContour::SelectPosiblePoint(), and manualView3DContour::SelectPosiblePoint().
00474 { 00475 int i,size=_lstViewPoints.size(); 00476 for (i=0;i<size;i++){ 00477 SetPointPosibleSelected(i,select); 00478 } 00479 }
void manualViewBaseContour::SetPointSelected | ( | int | id, | |
bool | select | |||
) | [inherited] |
Definition at line 468 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_lstViewPoints.
00469 { 00470 _lstViewPoints[id]->SetSelected(select); 00471 }
void manualViewBaseContour::SetPointPosibleSelected | ( | int | id, | |
bool | select | |||
) | [inherited] |
Definition at line 463 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_lstViewPoints.
Referenced by manualContour3VControler::MouseMove_Others(), manualViewBaseContour::SelectAllPossibleSelected(), manualViewBaseContour::SelectPosiblePoint(), and manualView3DContour::SelectPosiblePoint().
00464 { 00465 _lstViewPoints[id]->SetPosibleSelected(select); 00466 }
void manualViewBaseContour::SetIfViewControlPoints | ( | bool | ifShow | ) | [inherited] |
Definition at line 452 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_viewControlPoints.
Referenced by manualViewBaseContour::AddControlPoints(), manualViewBaseContour::CopyAttributesTo(), and manualViewBaseContour::RemoveControlPoints().
00453 { 00454 _viewControlPoints = ifShow; 00455 }
bool manualViewBaseContour::GetIfViewControlPoints | ( | ) | [inherited] |
Definition at line 457 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_viewControlPoints.
00458 { 00459 return _viewControlPoints; 00460 }
void manualViewBaseContour::UnSelectPoint | ( | int | i | ) | [inherited] |
Definition at line 533 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_lstViewPoints, and manualViewBaseContour::Refresh().
Referenced by manualViewBaseContour::UnSelectAllPoints().
00533 { 00534 _lstViewPoints[i]->SetSelected(false); 00535 Refresh(); 00536 }
void manualViewBaseContour::UnSelectLstPoints | ( | ) | [inherited] |
void manualViewBaseContour::UnSelectAllPoints | ( | ) | [inherited] |
Definition at line 542 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_lstViewPoints, manualViewBaseContour::Refresh(), and manualViewBaseContour::UnSelectPoint().
00542 { 00543 int i,size=_lstViewPoints.size(); 00544 for (i=0;i<size;i++){ 00545 UnSelectPoint(i); 00546 } 00547 Refresh(); 00548 }
void manualViewBaseContour::SetModel | ( | manualContourModel * | manContModel | ) | [inherited] |
Definition at line 550 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_manContModel.
Referenced by wxWidgetMesure2D::ConfigureA(), wxManualTree_MPRWidget::ConfigureContour(), wxEmptyPanel_3_Widget::ConfigureVTK(), ContourVOIWidget::ConfigureVTK(), wxMaracasCoutourTool::ConfigureVTK(), wxImageViewerWidget::ConstructVTK(), ConstructVTKObjects(), manualContourContainer::createLumenContour(), manualContourContainer::createWallContour(), wxMaracasImageBrowser02::LoadData(), manualContourContainer::restartLumenContour(), and manualContourContainer::restartWallContour().
00550 { 00551 _manContModel=manContModel; 00552 }
void manualViewBaseContour::SetWxVtkBaseView | ( | wxVtkBaseView * | wxvtkbaseview | ) | [inherited] |
Definition at line 554 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_wxvtkbaseview.
Referenced by wxWidgetMesure2D::ConfigureA(), wxManualTree_MPRWidget::ConfigureContour(), wxEmptyPanel_3_Widget::ConfigureVTK(), ContourVOIWidget::ConfigureVTK(), wxMaracasCoutourTool::ConfigureVTK(), wxImageViewerWidget::ConstructVTK(), ConstructVTKObjects(), manualViewBaseContour::CopyAttributesTo(), manualContourContainer::createLumenContour(), manualContourContainer::createWallContour(), wxMaracasImageBrowser02::LoadData(), manualContourContainer::restartLumenContour(), and manualContourContainer::restartWallContour().
00554 { 00555 _wxvtkbaseview = wxvtkbaseview; 00556 }
void manualViewBaseContour::Refresh | ( | ) | [virtual, inherited] |
Definition at line 597 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(), manualRoiControler::InitRoi(), manualLineControler::InitRoi(), manualCircleControler::InitRoi(), manualRoiControler::MouseClickLeft(), manualLineControler::MouseClickLeft(), manualContourControler::MouseClickLeft(), manualCircleControler::MouseClickLeft(), manualContourControler::MouseDLeft(), 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().
00598 { 00599 if (_contourVtkActor!=NULL){ 00600 RefreshContour(); 00601 } 00602 int i,size=_lstViewPoints.size(); 00603 for (i=0;i<size;i++){ 00604 UpdateViewPoint(i); 00605 _lstViewPoints[i]->UpdateColorActor(); 00606 } 00607 UpdateColorActor(); 00608 00609 if (_show_text==true) 00610 { 00611 RefreshText(); 00612 } 00613 00614 vtkRenderWindowInteractor *vri = _wxvtkbaseview->GetWxVTKRenderWindowInteractor (); 00615 if (vri==NULL) 00616 { 00617 _wxvtkbaseview->GetRenWin()->Render(); 00618 printf("EED %p How to optimize manualViewBaseContour::Refresh() \n",this); 00619 } 00620 00621 }
int manualViewBaseContour::GetNumberOfPoints | ( | ) | [inherited] |
Definition at line 704 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_lstViewPoints.
Referenced by wxMaracasCoutourTool::AnalisisContourInside(), manualViewCircle::GetMinMax(), manualContourBaseControler::GetNumberOfPointsManualContour(), manualRoiControler::MouseClickLeft(), manualLineControler::MouseClickLeft(), manualContourControler::MouseClickLeft(), manualCircleControler::MouseClickLeft(), manualViewPerpPlaneContour::RefreshContour(), manualViewRoi::RefreshContour(), manualViewContour::RefreshContour(), RefreshContour(), and manualViewContour::RefreshText().
00705 { 00706 return _lstViewPoints.size(); 00707 }
void manualViewBaseContour::CreateNewContour | ( | ) | [inherited] |
Definition at line 294 of file manualViewBaseContour.cpp.
References manualViewBaseContour::AddCompleteContourActor(), and manualViewBaseContour::ConstructVTKObjects().
Referenced by manualContourBaseControler::CreateNewManualContour(), manualContourBaseControler::ResetContour(), manualContour3VControler::ResetContour_Others(), and wxMaracasCoutourTool::SetControlPoints().
00295 { 00296 ConstructVTKObjects(); 00297 /* 00298 _wxvtkbaseview->GetRenderer()->AddActor( _contourVtkActor ); 00299 _wxvtkbaseview->GetRenderer()->AddActor2D(_textActor);*/ 00300 AddCompleteContourActor(); 00301 }
double * manualViewBaseContour::GetVectorPointsXManualContour | ( | ) | [inherited] |
Definition at line 562 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_pts, and manualViewBaseContour::_sizePointsContour.
Referenced by manualContourBaseControler::GetVectorPointsXManualContour().
00562 { 00563 double pp[3]; 00564 int i,size = _sizePointsContour; 00565 double *vx = (double*)malloc(sizeof(double)*size); 00566 for (i=0;i<size;i++){ 00567 _pts->GetPoint(i,pp); 00568 vx[i]=pp[0]; 00569 } 00570 return vx; 00571 }
double * manualViewBaseContour::GetVectorPointsYManualContour | ( | ) | [inherited] |
Definition at line 573 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_pts, and manualViewBaseContour::_sizePointsContour.
Referenced by manualContourBaseControler::GetVectorPointsYManualContour().
00574 { 00575 double pp[3]; 00576 int i,size = _sizePointsContour; 00577 double *vy = (double*)malloc(sizeof(double)*size); 00578 for (i=0;i<size;i++){ 00579 _pts->GetPoint(i,pp); 00580 vy[i]=pp[1]; 00581 } 00582 return vy; 00583 }
double * manualViewBaseContour::GetVectorPointsZManualContour | ( | ) | [inherited] |
Definition at line 585 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_pts, and manualViewBaseContour::_sizePointsContour.
00586 { 00587 double pp[3]; 00588 int i,size = _sizePointsContour; 00589 double *vz = (double*)malloc(sizeof(double)*size); 00590 for (i=0;i<size;i++){ 00591 _pts->GetPoint(i,pp); 00592 vz[i]=pp[2]; 00593 } 00594 return vz; 00595 }
void manualViewBaseContour::UpdateColorActor | ( | ) | [inherited] |
Definition at line 671 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().
00672 { 00673 if (_contourVtkActor!=NULL) 00674 { 00675 _contourVtkActor->GetProperty()->SetLineWidth( _widthline ); 00676 _contourVtkActor->GetProperty()->SetDiffuseColor( _coulorNormal_r , _coulorNormal_g , _coulorNormal_b ); 00677 if (_posibleSelected || (_posibleSelected && GetEditable() ) ) 00678 { 00679 _contourVtkActor->GetProperty()->SetDiffuseColor( _coulorEdit_r , _coulorEdit_g , _coulorEdit_b ); 00680 } 00681 if( _selected ) 00682 { 00683 _contourVtkActor->GetProperty()->SetDiffuseColor( _coulorSelection_r , _coulorSelection_g , _coulorSelection_b ); 00684 } 00685 } 00686 }
void manualViewBaseContour::SetRange | ( | double | range | ) | [inherited] |
Definition at line 737 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(), ConstructVTKObjects(), manualViewBaseContour::CopyAttributesTo(), manualContourContainer::createLumenContour(), manualContourContainer::createWallContour(), wxMaracasImageBrowser02::LoadData(), manualContourContainer::restartLumenContour(), and manualContourContainer::restartWallContour().
00738 { 00739 _range=range; 00740 }
double manualViewBaseContour::GetRange | ( | ) | [inherited] |
Definition at line 742 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_range.
Referenced by manualView3VContour::GetIdPoint(), manualView3DContour::GetIdPoint2(), manualViewRoi::ifTouchContour(), manualViewContour::RefreshText(), manualViewPerpPlaneContour::UpdateViewPoint(), and manualView3VContour::UpdateViewPoint().
00743 { 00744 return _range; 00745 }
void manualViewBaseContour::SetZ | ( | int | z | ) | [inherited] |
Definition at line 747 of file manualViewBaseContour.cpp.
Referenced by wxEmptyPanel_3_Widget::ConfigureVTK(), ContourVOIWidget::ConfigureVTK(), wxMaracasCoutourTool::ConfigureVTK(), ConstructVTKObjects(), manualViewBaseContour::CopyAttributesTo(), manualContourContainer::createLumenContour(), manualContourContainer::createWallContour(), manualContourContainer::restartLumenContour(), and manualContourContainer::restartWallContour().
int manualViewBaseContour::GetZ | ( | ) | [inherited] |
wxVtkBaseView * manualViewBaseContour::GetWxVtkBaseView | ( | ) | [inherited] |
Definition at line 891 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_wxvtkbaseview.
Referenced by manualViewPerpPlaneContour::FilterCordinateXYZ(), and manualView3DContour::GetIdPoint2().
00892 { 00893 return this->_wxvtkbaseview; 00894 }
void manualViewBaseContour::TransfromCoordViewWorld | ( | double & | X, | |
double & | Y, | |||
double & | Z, | |||
int | type = 2 | |||
) | [virtual, inherited] |
Reimplemented in manualView3DContour, and manualViewPerpPlaneContour.
Definition at line 725 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_wxvtkbaseview, and wxVtkBaseView::TransFromCoordScreenToWorld().
Referenced by manualContourBaseControler::AddPoint(), manualContour3VControler::AddPoint(), manualViewBaseContour::GetIdPoint(), manualView3VContour::GetIdPoint(), manualViewRoi::ifTouchContour(), manualViewContour::ifTouchContour(), manualView3VContour::ifTouchContour(), manualViewRoi::InitMove(), manualViewLine::InitMove(), manualViewContour::InitMove(), manualViewCircle::InitMove(), manualContourBaseControler::InsertPoint(), manualContour3VControler::InsertPoint(), manualContourBaseControler::Magnet(), manualViewRoi::MoveContour(), manualViewLine::MoveContour(), manualViewContour::MoveContour(), manualViewCircle::MoveContour(), manualContourBaseControler::SetPoint(), manualContour3VControler::SetPoint(), manualContourBaseControler::SetPointX(), manualContourBaseControler::SetPointY(), and manualContourBaseControler::SetPointZ().
00726 { 00727 _wxvtkbaseview->TransFromCoordScreenToWorld(X, Y, Z,false, type); 00728 00729 00730 //EED 27 sep 2007 00731 // //EEDx6 00732 // wxVtk2DBaseView *wxvtk2Dbaseview = (wxVtk2DBaseView*)_wxvtkbaseview; 00733 // wxvtk2Dbaseview->TransformCoordinate_spacing_ModelToView(X,Y,Z); 00734 00735 }
void manualViewBaseContour::ClearContour | ( | ) | [inherited] |
Definition at line 843 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().
00844 { 00845 if (_contourVtkActor!=NULL){ 00846 _wxvtkbaseview->GetRenderer()->RemoveActor( _contourVtkActor ); 00847 } 00848 DeleteVtkObjects(); 00849 int i,size=_lstViewPoints.size(); 00850 for (i=0;i<size;i++){ 00851 ClearPoint(0); 00852 } 00853 Refresh(); 00854 }
void manualViewBaseContour::SetVisible | ( | bool | ok | ) | [inherited] |
Definition at line 861 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_contourVtkActor, manualViewBaseContour::_lstViewPoints, and manualViewBaseContour::_textActor.
Referenced by wxWidgetMesure2D::OnActiveMessureTool(), wxWidgetMesure2D::OnVisibleMessureTool(), manualContourContainer::setLumenVisibility(), and manualContourContainer::setWallVisibility().
00862 { 00863 double opacity; 00864 if (ok==true) 00865 { 00866 opacity=1; 00867 } else { 00868 opacity=0.5; 00869 } 00870 vtkActor *actor; 00871 int i,size=_lstViewPoints.size(); 00872 for (i=0;i<size;i++){ 00873 actor = _lstViewPoints[i]->GetVtkActor(); 00874 actor->GetProperty()->SetOpacity( opacity ); 00875 } 00876 _contourVtkActor->GetProperty()->SetOpacity( opacity ); 00877 _textActor->GetProperty()->SetOpacity( opacity ); 00878 _textActor->SetInput("00"); 00879 00880 }
void manualViewBaseContour::SetShowText | ( | bool | ok | ) | [inherited] |
Definition at line 882 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_show_text, and manualViewBaseContour::_textActor.
Referenced by wxWidgetMesure2D::OnVisibleInformation().
00883 { 00884 _show_text = ok; 00885 if (_show_text==false) 00886 { 00887 _textActor->SetInput("00"); 00888 } 00889 }
void manualViewBaseContour::GetSpacing | ( | double | spc[3] | ) | [inherited] |
Definition at line 896 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_spc.
Referenced by ConstructVTKObjects().
void manualViewBaseContour::SetSpacing | ( | double | spc[3] | ) | [inherited] |
Definition at line 903 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_spc.
Referenced by wxManualTree_MPRWidget::ConfigureContour(), wxEmptyPanel_3_Widget::ConfigureVTK(), ContourVOIWidget::ConfigureVTK(), wxMaracasCoutourTool::ConfigureVTK(), ConstructVTKObjects(), manualViewBaseContour::CopyAttributesTo(), and wxMaracasImageBrowser02::LoadData().
void manualViewBaseContour::SetColorNormalContour | ( | double | r, | |
double | g, | |||
double | b | |||
) | [inherited] |
Definition at line 629 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_coulorNormal_b, manualViewBaseContour::_coulorNormal_g, and manualViewBaseContour::_coulorNormal_r.
Referenced by wxEmptyPanel_3_Widget::ConfigureVTK(), wxMaracasCoutourTool::ConfigureVTK(), ConstructVTKObjects(), manualViewBaseContour::CopyAttributesTo(), manualContourContainer::createLumenContour(), manualContourContainer::createWallContour(), manualContourContainer::restartLumenContour(), and manualContourContainer::restartWallContour().
00630 { 00631 _coulorNormal_r = r; 00632 _coulorNormal_g = g; 00633 _coulorNormal_b = b; 00634 }
void manualViewBaseContour::GetColorNormalContour | ( | double & | r, | |
double & | g, | |||
double & | b | |||
) | [inherited] |
Definition at line 636 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_coulorNormal_b, manualViewBaseContour::_coulorNormal_g, and manualViewBaseContour::_coulorNormal_r.
00637 { 00638 r = _coulorNormal_r; 00639 g = _coulorNormal_g; 00640 b = _coulorNormal_b; 00641 }
void manualViewBaseContour::SetColorEditContour | ( | double | r, | |
double | g, | |||
double | b | |||
) | [inherited] |
Definition at line 643 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().
00644 { 00645 _coulorEdit_r = r; 00646 _coulorEdit_g = g; 00647 _coulorEdit_b = b; 00648 }
void manualViewBaseContour::GetColorEditContour | ( | double & | r, | |
double & | g, | |||
double & | b | |||
) | [inherited] |
Definition at line 650 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_coulorEdit_b, manualViewBaseContour::_coulorEdit_g, and manualViewBaseContour::_coulorEdit_r.
00651 { 00652 r = _coulorEdit_r; 00653 g = _coulorEdit_g; 00654 b = _coulorEdit_b; 00655 }
void manualViewBaseContour::SetColorSelectContour | ( | double | r, | |
double | g, | |||
double | b | |||
) | [inherited] |
Definition at line 657 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_coulorSelection_b, manualViewBaseContour::_coulorSelection_g, and manualViewBaseContour::_coulorSelection_r.
Referenced by manualViewBaseContour::CopyAttributesTo().
00658 { 00659 _coulorSelection_r = r; 00660 _coulorSelection_g = g; 00661 _coulorSelection_b = b; 00662 }
void manualViewBaseContour::GetColorSelectContour | ( | double & | r, | |
double & | g, | |||
double & | b | |||
) | [inherited] |
Definition at line 664 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_coulorSelection_b, manualViewBaseContour::_coulorSelection_g, and manualViewBaseContour::_coulorSelection_r.
00665 { 00666 r = _coulorSelection_r; 00667 g = _coulorSelection_g; 00668 b = _coulorSelection_b; 00669 }
void manualViewBaseContour::AddCompleteContourActor | ( | bool | ifControlPoints = false |
) | [inherited] |
Definition at line 80 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().
00081 { 00082 _viewControlPoints = ifControlPoints; 00083 /*vtkRenderer * theRenderer = */ _wxvtkbaseview->GetRenderer(); // JPRx ?? 00084 //Adding the spline 00085 AddSplineActor(); 00086 00087 AddTextActor(); 00088 //Adding each control point 00089 if( ifControlPoints ) 00090 AddControlPoints(); 00091 RefreshContour(); 00092 Refresh(); 00093 }
void manualViewBaseContour::RemoveCompleteContourActor | ( | ) | [inherited] |
Definition at line 96 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_wxvtkbaseview, wxVtkBaseView::GetRenderer(), manualViewBaseContour::Refresh(), manualViewBaseContour::RefreshContour(), manualViewBaseContour::RemoveControlPoints(), manualViewBaseContour::RemoveSplineActor(), and manualViewBaseContour::RemoveTextActor().
Referenced by manualViewBaseContour::DeleteContour().
00097 { 00098 /*vtkRenderer * theRenderer =*/ _wxvtkbaseview->GetRenderer(); // JPRx ?? 00099 //Removing the spline 00100 RemoveSplineActor(); 00101 RemoveTextActor(); 00102 00103 //Removing each point 00104 RemoveControlPoints(); 00105 RefreshContour(); 00106 Refresh(); 00107 }
void manualViewBaseContour::AddControlPoints | ( | ) | [inherited] |
Definition at line 171 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_lstViewPoints, manualViewBaseContour::_viewControlPoints, manualViewBaseContour::_wxvtkbaseview, wxVtkBaseView::GetRenderer(), and manualViewBaseContour::SetIfViewControlPoints().
Referenced by manualViewBaseContour::AddCompleteContourActor(), and manualContourControler::MouseDLeft().
00172 { 00173 vtkRenderer * theRenderer = _wxvtkbaseview->GetRenderer(); 00174 SetIfViewControlPoints( true ); 00175 if( _viewControlPoints ) 00176 { 00177 int i,size=_lstViewPoints.size(); 00178 for (i=0;i<size; i++) 00179 { 00180 vtkActor * pointActor = _lstViewPoints[i]->GetVtkActor(); 00181 theRenderer->AddActor( pointActor ); 00182 } 00183 } 00184 }
void manualViewBaseContour::RemoveControlPoints | ( | ) | [inherited] |
Definition at line 157 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_lstViewPoints, manualViewBaseContour::_wxvtkbaseview, wxVtkBaseView::GetRenderer(), and manualViewBaseContour::SetIfViewControlPoints().
Referenced by manualContourControler::MouseMove(), manualViewBaseContour::RemoveCompleteContourActor(), and manualContourBaseControler::SetEditable().
00158 { 00159 if (_wxvtkbaseview!=NULL){ 00160 vtkRenderer * theRenderer = _wxvtkbaseview->GetRenderer(); 00161 int i,size=_lstViewPoints.size(); 00162 for (i=0;i<size; i++) 00163 { 00164 vtkActor * pointActor = _lstViewPoints[i]->GetVtkActor(); 00165 theRenderer->RemoveActor( pointActor ); 00166 } // for 00167 } // if 00168 SetIfViewControlPoints( false ); 00169 }
void manualViewBaseContour::AddTextActor | ( | ) | [inherited] |
Definition at line 186 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_textActor, manualViewBaseContour::_wxvtkbaseview, and wxVtkBaseView::GetRenderer().
Referenced by manualViewBaseContour::AddCompleteContourActor(), and manualContourControler::MouseDLeft().
00187 { 00188 _wxvtkbaseview->GetRenderer()->AddActor2D( _textActor ); 00189 }
void manualViewBaseContour::RemoveTextActor | ( | ) | [inherited] |
Definition at line 191 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_textActor, manualViewBaseContour::_wxvtkbaseview, and wxVtkBaseView::GetRenderer().
Referenced by manualViewBaseContour::RemoveCompleteContourActor().
00192 { 00193 _wxvtkbaseview->GetRenderer()->RemoveActor2D( _textActor ); 00194 }
void manualViewBaseContour::SetWidthLine | ( | double | width | ) | [inherited] |
Definition at line 210 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_lstViewPoints, manualViewBaseContour::_widthline, and manualViewBaseContour::UpdateColorActor().
Referenced by ConstructVTKObjects().
00211 { 00212 _widthline = width; 00213 this->UpdateColorActor(); 00214 00215 // for the control points 00216 int id, size = _lstViewPoints.size(); 00217 for( id=0; id<size; id++) 00218 { 00219 this->_lstViewPoints[id]->SetWidthLine(_widthline); 00220 } 00221 00222 }
double manualViewBaseContour::GetWidthLine | ( | ) | [inherited] |
Definition at line 225 of file manualViewBaseContour.cpp.
References manualViewBaseContour::_widthline.
00226 { 00227 return _widthline; 00228 }
std::vector<manualViewBaseContour* > manualViewBullEye::lstSectorBullEye [private] |
Definition at line 35 of file manualViewBullEye.h.
Referenced by AddSplineActor(), ConstructVTKObjects(), RefreshContour(), RemoveSplineActor(), and ~manualViewBullEye().
bool manualViewBaseContour::_show_text [protected, inherited] |
Definition at line 193 of file manualViewBaseContour.h.
Referenced by manualViewBaseContour::manualViewBaseContour(), manualViewBaseContour::Refresh(), and manualViewBaseContour::SetShowText().
int manualViewBaseContour::_id_viewPoint_for_text [protected, inherited] |
Definition at line 194 of file manualViewBaseContour.h.
Referenced by manualViewContour::manualViewContour(), and manualViewContour::RefreshText().
vtkTextActor* manualViewBaseContour::_textActor [protected, inherited] |
Definition at line 195 of file manualViewBaseContour.h.
Referenced by manualViewBaseContour::AddTextActor(), manualViewBaseContour::ConstructVTKObjects(), manualViewBaseContour::manualViewBaseContour(), manualViewContour::RefreshText(), manualViewBaseContour::RefreshText(), manualViewBaseContour::RemoveTextActor(), manualViewBaseContour::SetShowText(), and manualViewBaseContour::SetVisible().
manualContourModel* manualViewBaseContour::_manContModel [protected, inherited] |
Definition at line 196 of file manualViewBaseContour.h.
Referenced by manualViewBaseContour::ConstructVTKObjects(), manualViewBaseContour::GetIdPoint(), manualView3VContour::GetIdPoint(), manualView3DContour::GetIdPoint2(), manualViewRoi::GetMinMax(), manualViewCircle::GetMinMax(), manualViewBaseContour::GetMinMax(), manualViewRoi::InitMove(), manualViewLine::InitMove(), manualViewContour::InitMove(), manualViewCircle::InitMove(), manualViewBaseContour::manualViewBaseContour(), manualViewRoi::MoveContour(), manualViewLine::MoveContour(), manualViewContour::MoveContour(), manualViewCircle::MoveContour(), manualViewPerpPlaneContour::RefreshContour(), manualViewRoi::RefreshContour(), manualViewContour::RefreshContour(), manualViewBullEyeSector::RefreshContour(), RefreshContour(), manualView3VContour::RefreshContour(), manualViewContour::RefreshText(), manualViewBaseContour::SetModel(), manualViewPerpPlaneContour::UpdateViewPoint(), manualViewBaseContour::UpdateViewPoint(), and manualView3VContour::UpdateViewPoint().
vtkPoints* manualViewBaseContour::_pts [protected, inherited] |
Definition at line 197 of file manualViewBaseContour.h.
Referenced by manualViewBaseContour::ConstructVTKObjects(), manualViewBaseContour::DeleteVtkObjects(), manualViewBaseContour::GetVectorPointsXManualContour(), manualViewBaseContour::GetVectorPointsYManualContour(), manualViewBaseContour::GetVectorPointsZManualContour(), manualViewPerpPlaneContour::ifTouchContour(), manualViewContour::ifTouchContour(), manualView3VContour::ifTouchContour(), manualViewBaseContour::manualViewBaseContour(), manualViewPerpPlaneContour::RefreshContour(), manualViewRoi::RefreshContour(), manualViewContour::RefreshContour(), manualViewBullEyeSector::RefreshContour(), and manualView3VContour::RefreshContour().
int manualViewBaseContour::_sizePointsContour [protected, inherited] |
Definition at line 199 of file manualViewBaseContour.h.
Referenced by manualViewBaseContour::GetVectorPointsXManualContour(), manualViewBaseContour::GetVectorPointsYManualContour(), manualViewBaseContour::GetVectorPointsZManualContour(), manualViewContour::ifTouchContour(), manualView3VContour::ifTouchContour(), manualViewBaseContour::manualViewBaseContour(), manualViewLine::manualViewLine(), and manualViewRoi::manualViewRoi().
std::vector<manualViewPoint*> manualViewBaseContour::_lstViewPoints [protected, inherited] |
Definition at line 201 of file manualViewBaseContour.h.
Referenced by manualViewBaseContour::AddControlPoints(), manualViewBaseContour::AddPoint(), manualViewBaseContour::ClearContour(), manualViewBaseContour::CopyAttributesTo(), manualViewBaseContour::DeleteContour(), manualViewContour::DeletePoint(), manualViewBaseContour::DeletePoint(), manualViewBaseContour::DeleteSelectedPoints(), manualViewBaseContour::GetNumberOfPoints(), manualViewBaseContour::InsertPoint(), manualViewBaseContour::Refresh(), manualViewContour::RefreshText(), manualViewBaseContour::RemoveControlPoints(), manualViewBaseContour::SelectAllPoints(), manualViewBaseContour::SelectAllPossibleSelected(), manualViewBaseContour::SelectPoint(), manualViewBaseContour::SetPointPosibleSelected(), manualViewBaseContour::SetPointSelected(), manualViewBaseContour::SetVisible(), manualViewBaseContour::SetWidthLine(), manualViewBaseContour::UnSelectAllPoints(), manualViewBaseContour::UnSelectPoint(), manualViewPerpPlaneContour::UpdateViewPoint(), manualViewBaseContour::UpdateViewPoint(), manualView3VContour::UpdateViewPoint(), manualViewBaseContour::UpdateViewPoints(), and manualViewBaseContour::~manualViewBaseContour().
double manualViewBaseContour::_spc[3] [protected, inherited] |
Definition at line 202 of file manualViewBaseContour.h.
Referenced by manualViewBaseContour::AddPoint(), manualViewBaseContour::CopyAttributesTo(), manualViewBaseContour::GetSpacing(), manualViewContour::ifTouchContour(), manualView3VContour::ifTouchContour(), manualViewBaseContour::InsertPoint(), manualViewBaseContour::manualViewBaseContour(), manualViewPerpPlaneContour::RefreshContour(), manualViewRoi::RefreshContour(), manualViewContour::RefreshContour(), manualViewBullEyeSector::RefreshContour(), manualViewContour::RefreshText(), and manualViewBaseContour::SetSpacing().