#include <wxMPRBaseData.h>
Public Member Functions | |
vtkMPRBaseData () | |
virtual | ~vtkMPRBaseData () |
virtual void | Configure () |
int | GetMaxPositionX () |
int | GetMaxPositionY () |
int | GetMaxPositionZ () |
double | GetX () |
double | GetY () |
void | SetX (double x) |
void | SetY (double y) |
void | GetDimensionExtention (int *x1, int *x2, int *y1, int *y2, int *z1, int *z2) |
vtkTransform * | GetTransformOrientation () |
void | SetNormal (double nx, double ny, double nz) |
void | InitTransformOrientation (vtkTransform *trans) |
vtkImageData * | GetImageData () |
marImageData * | GetMarImageData () |
void | SetMarImageData (marImageData *marimagedata) |
double | GetZ () |
void | SetZ (double z) |
int | GetT () |
void | SetT (double t) |
Protected Attributes | |
int | _x1 |
int | _x2 |
int | _y1 |
int | _y2 |
int | _z1 |
int | _z2 |
marImageData * | _marImageData |
double | _z |
int | _t |
Private Attributes | |
double | _x |
double | _y |
vtkTransform * | _transformOrientation |
Definition at line 59 of file wxMPRBaseData.h.
vtkMPRBaseData::vtkMPRBaseData | ( | ) |
Definition at line 25 of file wxMPRBaseData.cxx.
References vtkBaseData::_marImageData, _transformOrientation, _x, _x1, _x2, _y, _y1, _y2, vtkBaseData::_z, _z1, and _z2.
vtkMPRBaseData::~vtkMPRBaseData | ( | ) | [virtual] |
Definition at line 40 of file wxMPRBaseData.cxx.
References vtkBaseData::_marImageData, and _transformOrientation.
00041 { 00042 if (_marImageData) delete _marImageData; 00043 if (_transformOrientation) _transformOrientation ->Delete(); 00044 }
void vtkMPRBaseData::Configure | ( | ) | [virtual] |
Reimplemented from vtkBaseData.
Definition at line 46 of file wxMPRBaseData.cxx.
References vtkBaseData::_marImageData, _transformOrientation, _x1, _x2, _y1, _y2, _z1, _z2, and marImageData::GetImageData().
Referenced by wxMaracasRenderTabbedPanel::addMPROptions(), wxMPRWidget::ConfigureVTK(), and wxMaracas_ViewerWidget::ConfigureVTK().
00047 { 00048 vtkImageData* img = _marImageData->GetImageData(); 00049 if(img !=NULL){ 00050 img->GetExtent (_x1,_x2,_y1,_y2,_z1,_z2); 00051 //std::cout<<"vtkMPRBaseData::Configure() _x1= "<<_x1<<" _x2= "<<_x2<<" _y1= "<<_y1<<" _y2= "<<_y2<<" _z1= "<<_z1<<" _z2= "<<_z2<<std::endl; 00052 00053 } 00054 if(_transformOrientation==NULL){ 00055 _transformOrientation=vtkTransform::New(); 00056 } 00057 _transformOrientation->Identity(); 00058 }
void vtkMPRBaseData::GetDimensionExtention | ( | int * | x1, | |
int * | x2, | |||
int * | y1, | |||
int * | y2, | |||
int * | z1, | |||
int * | z2 | |||
) |
Definition at line 60 of file wxMPRBaseData.cxx.
References _x1, _x2, _y1, _y2, _z1, and _z2.
Referenced by vtkMPR3DDataViewer::SetPositionX(), vtkMPR3DDataViewer::SetPositionY(), and vtkMPR3DDataViewer::SetPositionZ().
00061 { 00062 *x1=_x1; 00063 *x2=_x2; 00064 *y1=_y1; 00065 *y2=_y2; 00066 *z1=_z1; 00067 *z2=_z2; 00068 }
vtkImageData * vtkBaseData::GetImageData | ( | ) | [inherited] |
Definition at line 25 of file vtkBaseData.cxx.
References vtkBaseData::_marImageData, vtkBaseData::_t, and marImageData::GetImageDataT().
Referenced by wxMaracasRenderTabbedPanel::addMPROptions(), wxVtkMPR3DView::Configure(), wxVtkMPR2DView::Configure(), vtkMPR3DDataViewer::Configure(), vtkClipping3DDataViewer::Configure(), vtkClipping3DDataViewer::Configure_Tissue(), vtkClipping3DDataViewer::Configure_Volume(), wxMaracas_ViewerWidget::ConfigureVTK(), wxMPRWidget::CreateMPRPanel4View(), wxMPRWidget::CreateView(), vtkmyPWCallback_3DPointWidget::Execute(), wxMaracas_ManualTree_MPRDlg::ExportPoints(), vtkPlane2DView::Extract_MIP_PlaneVTK(), vtkPlane2DView::Extract_One_PlaneVTK(), vtkPlane2DView::ExtractPlane(), wxVtkMPR3DView::GetPlaneWidget(), wxMaracasImageBrowser02::GetROI(), wxVtk2DBaseView::GetSpacing(), ContourVOIWidget::GetVOI(), wxMaracasImageBrowser02::OnBtnResetRoi(), wxVtkClipping3DViewCntrlPanel::OnBtnSaveRawVolume(), wxSegmentationFM3DWidget::OnBtnSegment(), wxVtkClipping3DViewVolCntrlPanel::OnBtnVolumeFunctions(), wxVtkClipping3DViewCntrlPanel::OnBtnVolumeFunctions(), wxVtkMPR3DViewCntrlPanel::OnEditColorTable(), wxProcessingCTWidget::OnExtract(), wxVtkMPR2DView::Refresh(), wxVtkMPR3DView::RefreshView(), wxVtk2DBaseView::ResetView(), vtkInteractorStyle3DView::SelectMarchibCubePoint(), wxPanelCuttingImageData::SetParamsOfTransformation(), vtkPlane2DView::SetPSource(), wxPanelCuttingImageData::SetVtkMPRBaseData(), wxVtkMPR3DView::TestLoic1(), wxVtkMPR3DView::TestLoic2(), vtkPlane2DView::TransfromCoordViewWorld2(), wxVtkMPR3DViewCntrlPanel::UpdateControlPanel(), wxMaracas_ViewerWidget::wxMaracas_ViewerWidget(), and wxVtkClipping3DViewCntrlPanel::wxVtkClipping3DViewCntrlPanel().
00026 { 00027 if(_marImageData){ 00028 return _marImageData->GetImageDataT(_t); 00029 }else{ 00030 return 0; 00031 } 00032 00033 }
marImageData * vtkBaseData::GetMarImageData | ( | ) | [inherited] |
Definition at line 35 of file vtkBaseData.cxx.
References vtkBaseData::_marImageData.
Referenced by wxVtk2DBaseView::Configure(), wxMaracasImageBrowser02::OnBtSaveVOIData(), and wxMaracas_ViewerWidget::SetImage().
00036 { 00037 return _marImageData; 00038 }
int vtkMPRBaseData::GetMaxPositionX | ( | ) |
Definition at line 72 of file wxMPRBaseData.cxx.
References _x2.
Referenced by wxManualRegistration3D::CreateRegistration3DControl().
00073 { 00074 return _x2; 00075 }
int vtkMPRBaseData::GetMaxPositionY | ( | ) |
Definition at line 77 of file wxMPRBaseData.cxx.
References _y2.
Referenced by wxManualRegistration3D::CreateRegistration3DControl().
00078 { 00079 return _y2; 00080 }
int vtkMPRBaseData::GetMaxPositionZ | ( | ) |
Definition at line 82 of file wxMPRBaseData.cxx.
References _z2.
Referenced by wxManualRegistration3D::CreateRegistration3DControl().
00083 { 00084 return _z2; 00085 }
int vtkBaseData::GetT | ( | ) | [inherited] |
Definition at line 93 of file vtkBaseData.cxx.
References vtkBaseData::_t.
00094 { 00095 return _t; 00096 }
vtkTransform * vtkMPRBaseData::GetTransformOrientation | ( | ) |
Definition at line 167 of file wxMPRBaseData.cxx.
References _transformOrientation.
Referenced by vtkPlane2DView::ExtractPlane(), manualViewPerpPlaneContour::FilterCordinateXYZ(), wxVtkMPR3DView::RefreshView(), wxManualRegistration3D::RefreshView(), vtkPlane2DView::RotationStart(), vtkPlane2DView::SetPSource(), and vtkPlane2DView::TransfromCoordViewWorld2().
00168 { 00169 return _transformOrientation; 00170 }
double vtkMPRBaseData::GetX | ( | ) |
Definition at line 87 of file wxMPRBaseData.cxx.
References _x.
Referenced by manualContour3VControler::AddPoint(), vtkmyPWCallback_3DPointWidget::Execute(), vtkPlane2DView::ExtractPlane(), manualViewPerpPlaneContour::FilterCordinateXYZ(), wxVtkMPR2DView::GetActualSlice(), vtkPlane2DView::GetActualSlice(), wxMaracasSuperpositionPanel::GetX(), wxMaracas_ViewerWidget::GetX(), wxMaracas_N_ViewersWidget::GetX(), manualContour3VControler::InsertPoint(), wxSTLWidget_03::OnBtnExtraction(), wxSTLWidget_02::OnBtnExtractTree2_JF(), wxSegmentationFM3DWidget::OnBtnSegment(), wxManualRegistration3D::OnTracking(), wxVtkMPR3DViewCntrlPanel::Refresh(), wxVtkMPR2DView::Refresh(), vtkMPR3DDataViewer::Refresh(), wxSphereView::RefreshPoint(), wxVtkMPR3DView::RefreshView(), wxManualRegistration3D::RefreshView(), manualContourPerpPlaneControler::ResetOrientationPlane(), manualContour3DControler::ResetOrientationPlane(), wxPanelCuttingImageData::SetParamsOfTransformation(), manualContour3VControler::SetPoint(), vtkPlane2DView::SetPSource(), manualView3DContour::TransfromCoordViewWorld(), and vtkPlane2DView::TransfromCoordViewWorld2().
00088 { 00089 00090 return _x; 00091 }
double vtkMPRBaseData::GetY | ( | ) |
Definition at line 93 of file wxMPRBaseData.cxx.
References _y.
Referenced by manualContour3VControler::AddPoint(), vtkmyPWCallback_3DPointWidget::Execute(), vtkPlane2DView::ExtractPlane(), manualViewPerpPlaneContour::FilterCordinateXYZ(), wxVtkMPR2DView::GetActualSlice(), vtkPlane2DView::GetActualSlice(), wxMaracasSuperpositionPanel::GetY(), wxMaracas_ViewerWidget::GetY(), wxMaracas_N_ViewersWidget::GetY(), manualContour3VControler::InsertPoint(), wxSTLWidget_03::OnBtnExtraction(), wxSTLWidget_02::OnBtnExtractTree2_JF(), wxSegmentationFM3DWidget::OnBtnSegment(), wxManualRegistration3D::OnTracking(), wxVtkMPR3DViewCntrlPanel::Refresh(), wxVtkMPR2DView::Refresh(), vtkMPR3DDataViewer::Refresh(), wxSphereView::RefreshPoint(), wxVtkMPR3DView::RefreshView(), wxManualRegistration3D::RefreshView(), manualContourPerpPlaneControler::ResetOrientationPlane(), manualContour3DControler::ResetOrientationPlane(), wxPanelCuttingImageData::SetParamsOfTransformation(), manualContour3VControler::SetPoint(), vtkPlane2DView::SetPSource(), manualView3DContour::TransfromCoordViewWorld(), and vtkPlane2DView::TransfromCoordViewWorld2().
00094 { 00095 return _y; 00096 }
double vtkBaseData::GetZ | ( | ) | [inherited] |
Definition at line 88 of file vtkBaseData.cxx.
References vtkBaseData::_z.
Referenced by manualContour3VControler::AddPoint(), vtkmyPWCallback_3DPointWidget::Execute(), vtkPlane2DView::ExtractPlane(), manualViewPerpPlaneContour::FilterCordinateXYZ(), wxVtkMPR2DView::GetActualSlice(), wxVtk2DBaseView::GetActualSlice(), vtkPlane2DView::GetActualSlice(), wxMaracasCoutourTool::GetDataValue(), wxMaracasSuperpositionPanel::GetZ(), wxMaracas_ViewerWidget::GetZ(), wxMaracas_N_ViewersWidget::GetZ(), manualContour3VControler::InsertPoint(), wxSTLWidget_03::OnBtnExtraction(), wxSTLWidget_02::OnBtnExtractTree2_JF(), wxSegmentationFM3DWidget::OnBtnSegment(), wxMaracasCoutourTool::OnSaveContour(), wxMaracasCoutourTool::OnSaveControlPoints(), wxManualRegistration3D::OnTracking(), wxVtkMPR3DViewCntrlPanel::Refresh(), wxVtkMPR2DView::Refresh(), wxVtk2DBaseView::Refresh(), vtkMPR3DDataViewer::Refresh(), wxProcessingCTWidget::Refresh(), wxMaracasImageBrowser02::Refresh(), wxSphereView::RefreshPoint(), wxVtkMPR3DView::RefreshView(), wxManualRegistration3D::RefreshView(), manualContourPerpPlaneControler::ResetOrientationPlane(), manualContour3DControler::ResetOrientationPlane(), wxPanelCuttingImageData::SetParamsOfTransformation(), manualContour3VControler::SetPoint(), vtkPlane2DView::SetPSource(), manualView3DContour::TransfromCoordViewWorld(), and vtkPlane2DView::TransfromCoordViewWorld2().
00089 { 00090 return _z; 00091 }
void vtkMPRBaseData::InitTransformOrientation | ( | vtkTransform * | trans | ) |
Definition at line 181 of file wxMPRBaseData.cxx.
References _transformOrientation.
Referenced by vtkPlane2DView::RotationDrag().
00182 { 00183 _transformOrientation->SetMatrix( trans->GetMatrix() ); 00184 }
void vtkBaseData::SetMarImageData | ( | marImageData * | marimagedata | ) | [inherited] |
Definition at line 18 of file vtkBaseData.cxx.
References vtkBaseData::_marImageData.
Referenced by wxMaracasRenderTabbedPanel::addMPROptions(), wxManualRegistration3D::AddPanelControl_B(), wxQuantificationWidgetCT::ConfigureVTK(), wxProcessingCTWidget::ConfigureVTK(), wxEmptyPanel_3_Widget::ConfigureVTK(), wxMaracas_ManualContour_Panel::ConfigureVTK(), wxMaracasImageBrowser02::LoadData(), wxQuantificationWidgetCT::RefreshView(), wxMPRWidget::setImageData(), wxMaracas_N_ViewersWidget::UpdateLayout(), wxMaracas_ViewerWidget::wxMaracas_ViewerWidget(), and wxSphereView::wxSphereView().
00019 { 00020 _marImageData = marimagedata; 00021 //Configure(); 00022 }
void vtkMPRBaseData::SetNormal | ( | double | nx, | |
double | ny, | |||
double | nz | |||
) |
Definition at line 172 of file wxMPRBaseData.cxx.
References _transformOrientation.
Referenced by vtkmyPWCallback_3DPointWidget::Execute(), manualContourPerpPlaneControler::ResetOrientationPlane(), and manualContour3DControler::ResetOrientationPlane().
00173 { 00174 double alfa = atan2(ny,nx) * 180.0 / 3.1416; 00175 double beta = atan2( nz, sqrt( nx*nx + ny*ny ) ) * 180.0 / 3.1416; 00176 _transformOrientation->Identity(); 00177 _transformOrientation->RotateWXYZ(alfa,0,0,1); 00178 _transformOrientation->RotateWXYZ(-beta,0,1,0); 00179 }
void vtkBaseData::SetT | ( | double | t | ) | [inherited] |
Definition at line 98 of file vtkBaseData.cxx.
References vtkBaseData::_marImageData, vtkBaseData::_t, and marImageData::GetMaxT().
00099 { 00100 int maxT = _marImageData->GetMaxT(); 00101 if (t>=maxT) 00102 { 00103 t=maxT-1; 00104 } 00105 if (t<=0) 00106 { 00107 t=0; 00108 } 00109 _t=(int)t; 00110 }
void vtkMPRBaseData::SetX | ( | double | x | ) |
Calculates the value of the slider and the layer in the image that is spouse to show
Definition at line 101 of file wxMPRBaseData.cxx.
References vtkBaseData::_marImageData, _x, and marImageData::GetImageData().
Referenced by wxMaracasRenderTabbedPanel::addMPROptions(), wxMPRWidget::ConfigureVTK(), wxMaracas_ViewerWidget::ConfigureVTK(), wxMaracas_ManualContour_Panel::ConfigureVTK(), vtkmyPWCallback_3DPointWidget::Execute(), manualContour3DControler::MouseClickLeft(), wxVtkMPR2DView::MoveX(), vtkInteractorStylePlane2D::OnLeftDClick(), wxVtkMPR3DViewCntrlPanel::OnPositionX(), vtkInteractorStyle3DView::SelectMarchibCubePoint(), wxVtkMPR2DView::SetActualSlice(), vtkPlane2DView::SetActualSlice(), and wxSphereView::SetXYZtoParent().
00102 { 00103 //int dim[3]; 00104 int ext[6]; 00105 double* origin; 00106 vtkImageData* img = _marImageData->GetImageData(); 00107 if(img!=NULL){ 00108 /*img->GetDimensions(dim); 00109 if (x<0) 00110 { 00111 x=0; 00112 } 00113 if (x>=dim[0]) 00114 { 00115 x=dim[0]-1; 00116 } 00117 _x=x;*/ 00118 img->GetExtent(ext); 00119 origin = img->GetOrigin(); 00120 if (x < ext[0]) 00121 { 00122 x=ext[0] + origin[0]; 00123 } 00124 if (x > ext[1]) 00125 { 00126 x=ext[1] + origin[0]; 00127 } 00128 00129 _x=x; 00130 } 00131 }
void vtkMPRBaseData::SetY | ( | double | y | ) |
Calculates the value of the slider and the layer in the image that is spouse to show
Definition at line 136 of file wxMPRBaseData.cxx.
References vtkBaseData::_marImageData, _y, and marImageData::GetImageData().
Referenced by wxMaracasRenderTabbedPanel::addMPROptions(), wxMPRWidget::ConfigureVTK(), wxMaracas_ViewerWidget::ConfigureVTK(), wxMaracas_ManualContour_Panel::ConfigureVTK(), vtkmyPWCallback_3DPointWidget::Execute(), manualContour3DControler::MouseClickLeft(), wxVtkMPR2DView::MoveY(), vtkInteractorStylePlane2D::OnLeftDClick(), wxVtkMPR3DViewCntrlPanel::OnPositionY(), vtkInteractorStyle3DView::SelectMarchibCubePoint(), wxVtkMPR2DView::SetActualSlice(), vtkPlane2DView::SetActualSlice(), and wxSphereView::SetXYZtoParent().
00137 { 00138 //int dim[3]; 00139 int ext[6]; 00140 double* origin; 00141 vtkImageData* img = _marImageData->GetImageData(); 00142 if(img!=NULL){ 00143 /*img->GetDimensions(dim); 00144 if (y<0) 00145 { 00146 y=0; 00147 } 00148 if (y>=dim[1]) 00149 { 00150 y=dim[1]-1; 00151 } 00152 _y=y;*/ 00153 img->GetExtent(ext); 00154 origin = img->GetOrigin(); 00155 if (y<ext[2]) 00156 { 00157 y=ext[2] + origin[1]; 00158 } 00159 if (y > ext[3]) 00160 { 00161 y=ext[3] + origin[1]; 00162 } 00163 _y=y; 00164 } 00165 }
void vtkBaseData::SetZ | ( | double | z | ) | [inherited] |
Definition at line 47 of file vtkBaseData.cxx.
References vtkBaseData::_marImageData, vtkBaseData::_z, and marImageData::GetImageData().
Referenced by wxMaracasRenderTabbedPanel::addMPROptions(), wxMPRWidget::ConfigureVTK(), wxMaracas_ViewerWidget::ConfigureVTK(), wxMaracas_ManualContour_Panel::ConfigureVTK(), wxSphereView::DefineImageSphere(), vtkmyPWCallback_3DPointWidget::Execute(), manualContour3DControler::MouseClickLeft(), wxVtkMPR2DView::MoveZ(), wxWidgetSliderMinMaxVOI::onActualChange_Bar(), wxWidgetSliderMinMaxVOI::onEndChange_Bar(), vtkInteractorStylePlane2D::OnLeftDClick(), wxVtkMPR3DViewCntrlPanel::OnPositionZ(), wxMaracasImageBrowser02::OnRefreshView2(), wxWidgetSliderMinMaxVOI::onStartChange_Bar(), wxProcessingCTWidget::OnZSlice(), wxProcessingCTWidget::Refresh(), wxMaracasImageBrowser02::Refresh(), vtkInteractorStyle3DView::SelectMarchibCubePoint(), wxVtkMPR2DView::SetActualSlice(), wxVtk2DBaseView::SetActualSlice(), vtkPlane2DView::SetActualSlice(), and wxSphereView::SetXYZtoParent().
00047 { 00048 //int maxZ; 00049 00050 // int dim[3]; 00051 // _marImageData->GetDimensions(dim); 00052 // maxZ=dim[2]; 00053 00054 int ext[6]; 00055 double *origin; 00056 00057 00058 vtkImageData* img = _marImageData->GetImageData(); 00059 if(img!=NULL){ 00060 /*img->GetWholeExtent(ext); 00061 maxZ=ext[5]-ext[4]+1; 00062 00063 if (z>=maxZ) 00064 { 00065 //z=maxZ-1; 00066 } 00067 if (z<=0) 00068 { 00069 z=0; 00070 } 00071 00072 _z=z;*/ 00073 img->GetExtent(ext); 00074 origin = img->GetOrigin(); 00075 if (z > ext[5]) 00076 { 00077 z = ext[5] + origin[2]; 00078 } 00079 if (z < ext[4]) 00080 { 00081 z = ext[4] + origin[2]; 00082 } 00083 00084 _z=z; 00085 } 00086 }
marImageData* vtkBaseData::_marImageData [protected, inherited] |
Definition at line 24 of file vtkBaseData.h.
Referenced by Configure(), vtkBaseData::GetImageData(), vtkBaseData::GetMarImageData(), vtkBaseData::SetMarImageData(), vtkBaseData::SetT(), SetX(), SetY(), vtkBaseData::SetZ(), vtkBaseData::vtkBaseData(), vtkMPRBaseData(), and ~vtkMPRBaseData().
int vtkBaseData::_t [protected, inherited] |
Definition at line 26 of file vtkBaseData.h.
Referenced by vtkBaseData::GetImageData(), vtkBaseData::GetT(), vtkBaseData::SetT(), and vtkBaseData::vtkBaseData().
vtkTransform* vtkMPRBaseData::_transformOrientation [private] |
Definition at line 81 of file wxMPRBaseData.h.
Referenced by Configure(), GetTransformOrientation(), InitTransformOrientation(), SetNormal(), vtkMPRBaseData(), and ~vtkMPRBaseData().
double vtkMPRBaseData::_x [private] |
Definition at line 80 of file wxMPRBaseData.h.
Referenced by GetX(), SetX(), and vtkMPRBaseData().
int vtkMPRBaseData::_x1 [protected] |
Definition at line 77 of file wxMPRBaseData.h.
Referenced by Configure(), GetDimensionExtention(), and vtkMPRBaseData().
int vtkMPRBaseData::_x2 [protected] |
Definition at line 77 of file wxMPRBaseData.h.
Referenced by Configure(), GetDimensionExtention(), GetMaxPositionX(), and vtkMPRBaseData().
double vtkMPRBaseData::_y [private] |
Definition at line 80 of file wxMPRBaseData.h.
Referenced by GetY(), SetY(), and vtkMPRBaseData().
int vtkMPRBaseData::_y1 [protected] |
Definition at line 77 of file wxMPRBaseData.h.
Referenced by Configure(), GetDimensionExtention(), and vtkMPRBaseData().
int vtkMPRBaseData::_y2 [protected] |
Definition at line 77 of file wxMPRBaseData.h.
Referenced by Configure(), GetDimensionExtention(), GetMaxPositionY(), and vtkMPRBaseData().
double vtkBaseData::_z [protected, inherited] |
Definition at line 25 of file vtkBaseData.h.
Referenced by vtkBaseData::GetZ(), vtkBaseData::SetZ(), vtkBaseData::vtkBaseData(), and vtkMPRBaseData().
int vtkMPRBaseData::_z1 [protected] |
Definition at line 77 of file wxMPRBaseData.h.
Referenced by Configure(), GetDimensionExtention(), and vtkMPRBaseData().
int vtkMPRBaseData::_z2 [protected] |
Definition at line 77 of file wxMPRBaseData.h.
Referenced by Configure(), GetDimensionExtention(), GetMaxPositionZ(), and vtkMPRBaseData().