#include <vtkBaseData.h>
Public Member Functions | |
vtkBaseData () | |
virtual | ~vtkBaseData () |
vtkImageData * | GetImageData () |
marImageData * | GetMarImageData () |
void | SetMarImageData (marImageData *marimagedata) |
virtual void | Configure () |
double | GetZ () |
void | SetZ (double z) |
int | GetT () |
void | SetT (double t) |
Protected Attributes | |
marImageData * | _marImageData |
double | _z |
int | _t |
Definition at line 9 of file vtkBaseData.h.
vtkBaseData::vtkBaseData | ( | ) |
Definition at line 4 of file vtkBaseData.cxx.
References _marImageData, _t, and _z.
00005 { 00006 00007 _z = 0; 00008 _t = 0; 00009 _marImageData = NULL; 00010 }
vtkBaseData::~vtkBaseData | ( | ) | [virtual] |
Definition at line 13 of file vtkBaseData.cxx.
void vtkBaseData::Configure | ( | ) | [virtual] |
vtkImageData * vtkBaseData::GetImageData | ( | ) |
Definition at line 25 of file vtkBaseData.cxx.
References _marImageData, _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(), wxMaracas_ViewerWidget::wxMaracas_ViewerWidget(), and wxVtkClipping3DViewCntrlPanel::wxVtkClipping3DViewCntrlPanel().
00026 { 00027 return _marImageData->GetImageDataT(_t); 00028 }
marImageData * vtkBaseData::GetMarImageData | ( | ) |
Definition at line 30 of file vtkBaseData.cxx.
References _marImageData.
Referenced by wxVtk2DBaseView::Configure(), wxMaracasImageBrowser02::OnBtSaveVOIData(), and wxMaracas_ViewerWidget::SetImage().
00031 { 00032 return _marImageData; 00033 }
int vtkBaseData::GetT | ( | ) |
double vtkBaseData::GetZ | ( | ) |
Definition at line 79 of file vtkBaseData.cxx.
References _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().
00080 { 00081 return _z; 00082 }
void vtkBaseData::SetMarImageData | ( | marImageData * | marimagedata | ) |
Definition at line 18 of file vtkBaseData.cxx.
References _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 vtkBaseData::SetT | ( | double | t | ) |
Definition at line 89 of file vtkBaseData.cxx.
References _marImageData, _t, and marImageData::GetMaxT().
00090 { 00091 int maxT = _marImageData->GetMaxT(); 00092 if (t>=maxT) 00093 { 00094 t=maxT-1; 00095 } 00096 if (t<=0) 00097 { 00098 t=0; 00099 } 00100 _t=(int)t; 00101 }
void vtkBaseData::SetZ | ( | double | z | ) |
Definition at line 42 of file vtkBaseData.cxx.
References _marImageData, _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().
00042 { 00043 //int maxZ; 00044 00045 // int dim[3]; 00046 // _marImageData->GetDimensions(dim); 00047 // maxZ=dim[2]; 00048 00049 int ext[6]; 00050 vtkImageData* img = _marImageData->GetImageData(); 00051 if(img!=NULL){ 00052 /*img->GetWholeExtent(ext); 00053 maxZ=ext[5]-ext[4]+1; 00054 00055 if (z>=maxZ) 00056 { 00057 //z=maxZ-1; 00058 } 00059 if (z<=0) 00060 { 00061 z=0; 00062 } 00063 00064 _z=z;*/ 00065 img->GetExtent(ext); 00066 if (z > ext[5]) 00067 { 00068 z = ext[5]; 00069 } 00070 if (z < ext[4]) 00071 { 00072 z = ext[4]; 00073 } 00074 00075 _z=z; 00076 } 00077 }
marImageData* vtkBaseData::_marImageData [protected] |
Definition at line 24 of file vtkBaseData.h.
Referenced by vtkMPRBaseData::Configure(), GetImageData(), GetMarImageData(), SetMarImageData(), SetT(), vtkMPRBaseData::SetX(), vtkMPRBaseData::SetY(), SetZ(), vtkBaseData(), vtkMPRBaseData::vtkMPRBaseData(), and vtkMPRBaseData::~vtkMPRBaseData().
int vtkBaseData::_t [protected] |
Definition at line 26 of file vtkBaseData.h.
Referenced by GetImageData(), GetT(), SetT(), and vtkBaseData().
double vtkBaseData::_z [protected] |
Definition at line 25 of file vtkBaseData.h.
Referenced by GetZ(), SetZ(), vtkBaseData(), and vtkMPRBaseData::vtkMPRBaseData().