#include <marInterfaceCT.h>
Public Member Functions | |
marInterfaceCT () | |
~marInterfaceCT () | |
bool | loadParameters (std::string pFile) |
bool | saveParameters (std::string pFile) |
bool | loadParameters () |
bool | saveParameters () |
bool | initExperiment () |
bool | saveExperiment (std::string nFile) |
bool | loadExperiment (std::string nFile) |
void | reset () |
void | SetParamFileName (std::string pFileName) |
std::string | GetParamFileName () |
void | SetDicom (marFilesBase *dicom) |
void | appendAxis (marAxis *ax) |
marAxisCT * | getAxis (int i=-1) |
void | setAxis (int i) |
int | getQuantStart () |
int | getQuantFinish () |
void | prepareQuantification () |
vtkImageData * | getSliceImage (int i) |
vtkProbeFilter * | get3DSlice (int i) |
double | getTotalLength () |
double | getSubAxisLength () |
double | getReferenceArea () |
double | getReferenceAverDiam () |
double | getAverageArea (int pIni, int pEnd) |
int | getNumberOfSlices () |
marContour * | getContour (int point, int contour) |
vtkPoints * | get3Dcontour (int point, int contour) |
vtkPolyData * | get2Dcontour (int point, int contour) |
vtkPoints * | get2DDiameterMin (int point, int contour) |
vtkPoints * | get2DDiameterMax (int point, int contour) |
marParameters * | getParameters () |
marDynData * | getDynData () |
void | getVOI (int *voi) |
void | setVOI (int *voi) |
int | getActualQuant () |
int | getHealthySlice () |
int | getHealthySliceStart () |
int | getHealthySliceEnd () |
void | setHealthySlice (int hsS, int hs, int hsE) |
void | setActualQuant (int act) |
void | replaceContour2D (int i, int size, double *vx, double *vy) |
void | replaceContour2D (int size, double *vx, double *vy, int type) |
void | cleanContours (int type) |
void | EraseContour (int i) |
void | ClearContours () |
void | RegenerateAxis () |
void | RegenerateSignal () |
void | RecalculateAxis () |
void | ClearContoursPartial (int start) |
void | getMinMax (double &min, double &max) |
int | getNumberOfContours (int point) |
void | updateLumenPercentage (int percentage) |
void | updateCalcPercentage (int percentage) |
void | updateDiscontinuityThreshold (int percentage) |
marIsocontour * | loadMarIsocontour (int size, double *vx, double *vy) |
double | performXOR (int type, std::vector< marIsocontour * > manual) |
double | performAND (int type, std::vector< marIsocontour * > manual) |
double | performUnion (int type, std::vector< marIsocontour * > manual) |
void | histogram (int point) |
int | getContourType (int point, int index) |
void | setCalibration (bool calib) |
bool | getCalibration () |
void | setStartIndex (int start) |
int | getPointSize () |
marPoint * | getPoint (int i) |
void | markUpLumen (int point) |
void | generateFile () |
marExperimentCT * | GetExperiment () |
Public Attributes | |
marFilesBase * | _dicom |
marParameters * | _parameters |
Protected Attributes | |
std::string | m_paramFileName |
Private Attributes | |
marExperimentCT * | _experiment |
Definition at line 30 of file marInterfaceCT.h.
marInterfaceCT::marInterfaceCT | ( | ) |
Definition at line 29 of file marInterfaceCT.cpp.
References _experiment, _parameters, m_paramFileName, and MAR_DEFAULT_FILE_PARAMETERS.
00030 : _parameters( NULL ), _dicom( NULL ), 00031 _experiment( NULL ) 00032 { 00033 m_paramFileName=MAR_DEFAULT_FILE_PARAMETERS; 00034 _parameters = new marParameters( ); 00035 00036 _experiment = new marExperimentCT( _parameters ); 00037 00038 00039 }
marInterfaceCT::~marInterfaceCT | ( | ) |
Definition at line 42 of file marInterfaceCT.cpp.
References reset().
00042 { 00043 reset( ); 00044 }
void marInterfaceCT::appendAxis | ( | marAxis * | ax | ) |
Definition at line 210 of file marInterfaceCT.cpp.
References _experiment, and marExperiment::appendAxis().
Referenced by wxProcessingCTWidget::OnExtract().
00211 { 00212 _experiment->appendAxis(ax); 00213 }
void marInterfaceCT::cleanContours | ( | int | type | ) |
Definition at line 476 of file marInterfaceCT.cpp.
References _experiment, and marExperimentCT::cleanContours().
Referenced by wxQuantificationWidgetCT::OnReplaceContourCalc(), wxQuantificationWidgetCT::OnReplaceContourLumen(), and wxQuantificationWidgetCT::OnReplaceContourWall().
00477 { 00478 _experiment->cleanContours(type); 00479 }
void marInterfaceCT::ClearContours | ( | ) |
Definition at line 335 of file marInterfaceCT.cpp.
References _experiment, and marExperiment::ClearContours().
Referenced by wxMaracasQuantificationCT::CleanContours().
00335 { 00336 _experiment->ClearContours(); 00337 }
void marInterfaceCT::ClearContoursPartial | ( | int | start | ) |
Definition at line 440 of file marInterfaceCT.cpp.
References _experiment, and marExperimentCT::ClearContoursPartial().
Referenced by wxQuantificationWidgetCT::OnCalibration().
00441 { 00442 _experiment->ClearContoursPartial(start); 00443 }
void marInterfaceCT::EraseContour | ( | int | i | ) |
Definition at line 330 of file marInterfaceCT.cpp.
References _experiment, marAxis::EraseContour(), and marExperiment::getAxis().
Referenced by wxQuantificationWidgetCT::SetManualContour_AddPoint_2DWorld().
00330 { 00331 _experiment->getAxis()->EraseContour( i ); 00332 }
void marInterfaceCT::generateFile | ( | ) |
Definition at line 470 of file marInterfaceCT.cpp.
References _experiment, and marExperimentCT::generateFile().
Referenced by wxQuantificationWidgetCT::OnFile().
00471 { 00472 _experiment->generateFile(); 00473 }
vtkPolyData * marInterfaceCT::get2Dcontour | ( | int | point, | |
int | contour | |||
) |
Definition at line 370 of file marInterfaceCT.cpp.
References _experiment, and marExperimentCT::get2Dcontour().
Referenced by wxQuantificationWidgetCT::RefreshAxis().
00370 { 00371 return _experiment->get2Dcontour(point,contour); 00372 }
vtkPoints * marInterfaceCT::get2DDiameterMax | ( | int | point, | |
int | contour | |||
) |
Definition at line 380 of file marInterfaceCT.cpp.
References _experiment, and marExperimentCT::get2DDiameterMax().
00380 { 00381 return _experiment->get2DDiameterMax(point,contour); 00382 }
vtkPoints * marInterfaceCT::get2DDiameterMin | ( | int | point, | |
int | contour | |||
) |
Definition at line 375 of file marInterfaceCT.cpp.
References _experiment, and marExperimentCT::get2DDiameterMin().
00375 { 00376 return _experiment->get2DDiameterMin(point,contour); 00377 }
vtkPoints * marInterfaceCT::get3Dcontour | ( | int | point, | |
int | contour | |||
) |
Definition at line 365 of file marInterfaceCT.cpp.
References _experiment, and marExperimentCT::get3Dcontour().
Referenced by wxQuantificationWidgetCT::OnContour_BT().
00365 { 00366 return _experiment->get3Dcontour(point,contour); 00367 }
vtkProbeFilter * marInterfaceCT::get3DSlice | ( | int | i | ) |
Definition at line 249 of file marInterfaceCT.cpp.
References _experiment, and marExperiment::get3DSlice().
Referenced by wxQuantificationWidgetCT::RefreshAxis(), and vtk3DQuantSurfaceWidget::ShowMARACASDataAndAxeCT().
00249 { 00250 return _experiment->get3DSlice( i ); 00251 }
int marInterfaceCT::getActualQuant | ( | ) |
Definition at line 284 of file marInterfaceCT.cpp.
References _experiment, marAxis::getActualQuant(), and marExperiment::getAxis().
Referenced by wxQuantificationWidgetCT::addManualContours(), wxQuantificationWidgetCT::CreateManualContours(), wxQuantificationWidgetCT::OnCalibration(), wxQuantificationWidgetCT::OnContourCalc(), wxQuantificationWidgetCT::OnContourHypo(), wxQuantificationWidgetCT::OnContourLumen(), wxQuantificationWidgetCT::OnContourWall(), wxQuantificationWidgetCT::OnReplaceContourCalc(), wxQuantificationWidgetCT::OnReplaceContourLumen(), wxQuantificationWidgetCT::OnReplaceContourWall(), wxQuantificationWidgetCT::OnShowCalc(), wxQuantificationWidgetCT::OnShowHypo(), wxQuantificationWidgetCT::OnShowLumen(), wxQuantificationWidgetCT::OnShowWall(), wxQuantificationWidgetCT::OnSliderCalcPercentageScroll(), wxQuantificationWidgetCT::performAND(), wxQuantificationWidgetCT::performXOR(), wxQuantificationWidgetCT::RefreshAxis(), and wxQuantificationWidgetCT::showVariables().
00284 { 00285 return _experiment->getAxis()->getActualQuant(); 00286 }
double marInterfaceCT::getAverageArea | ( | int | pIni, | |
int | pEnd | |||
) |
Definition at line 274 of file marInterfaceCT.cpp.
References _experiment, and marExperiment::getAverageArea().
00274 { 00275 return _experiment->getAverageArea(pIni,pEnd); 00276 }
marAxisCT * marInterfaceCT::getAxis | ( | int | i = -1 |
) |
Definition at line 217 of file marInterfaceCT.cpp.
References _experiment, and marExperiment::getAxis().
Referenced by wxQuantificationWidgetCT::AddAxisActors(), wxQuantificationWidgetCT::CallBackOnLeftDClick(), and vtk3DQuantSurfaceWidget::ShowMARACASDataAndAxeCT().
00217 { 00218 return (marAxisCT *) _experiment->getAxis(i); 00219 }
bool marInterfaceCT::getCalibration | ( | ) |
Definition at line 434 of file marInterfaceCT.cpp.
References _experiment, and marExperimentCT::getCalibration().
00435 { 00436 return _experiment->getCalibration(); 00437 }
marContour * marInterfaceCT::getContour | ( | int | point, | |
int | contour | |||
) |
Definition at line 360 of file marInterfaceCT.cpp.
References _experiment, and marExperimentCT::getContour().
Referenced by wxQuantificationWidgetCT::GetStenosisArea(), and wxQuantificationWidgetCT::GetStenosisDiameter().
00360 { 00361 return _experiment->getContour(point,contour); 00362 }
int marInterfaceCT::getContourType | ( | int | point, | |
int | index | |||
) |
Definition at line 416 of file marInterfaceCT.cpp.
References _experiment, and marExperimentCT::getContourType().
Referenced by wxQuantificationWidgetCT::RefreshAxis().
00417 { 00418 return _experiment->getContourType(point,index); 00419 }
marDynData * marInterfaceCT::getDynData | ( | ) |
Definition at line 389 of file marInterfaceCT.cpp.
References _experiment, and marExperiment::getDynData().
Referenced by wxQuantificationWidgetCT::MoveSlider(), and vtk3DSurfaceWidget::ShowMARACASDataCT().
00389 { 00390 return _experiment->getDynData(); 00391 }
marExperimentCT * marInterfaceCT::GetExperiment | ( | ) |
Definition at line 289 of file marInterfaceCT.cpp.
References _experiment.
Referenced by wxQuantificationWidgetCT::MoveSlider(), and vtk3DSurfaceWidget::ShowMARACASDataCT().
00290 { 00291 return _experiment; 00292 }
int marInterfaceCT::getHealthySlice | ( | ) |
Definition at line 295 of file marInterfaceCT.cpp.
References _experiment, marExperiment::getAxis(), and marAxis::getHealthySlice().
Referenced by wxQuantificationWidgetCT::GetHealthySlice(), wxQuantificationWidgetCT::OnHealthySlice_CB(), and wxQuantificationWidgetCT::showVariables().
00295 { 00296 return _experiment->getAxis( )->getHealthySlice( ); 00297 }
int marInterfaceCT::getHealthySliceEnd | ( | ) |
Definition at line 305 of file marInterfaceCT.cpp.
References _experiment, marExperiment::getAxis(), and marAxis::getHealthySliceEnd().
Referenced by wxQuantificationWidgetCT::GetHealthySliceRange(), and wxQuantificationWidgetCT::showVariables().
00305 { 00306 return _experiment->getAxis()->getHealthySliceEnd( ); 00307 }
int marInterfaceCT::getHealthySliceStart | ( | ) |
Definition at line 300 of file marInterfaceCT.cpp.
References _experiment, marExperiment::getAxis(), and marAxis::getHealthySliceStart().
Referenced by wxQuantificationWidgetCT::GetHealthySliceRange(), and wxQuantificationWidgetCT::showVariables().
00300 { 00301 return _experiment->getAxis()->getHealthySliceStart( ); 00302 }
void marInterfaceCT::getMinMax | ( | double & | min, | |
double & | max | |||
) |
Definition at line 355 of file marInterfaceCT.cpp.
References _experiment, marExperiment::getDynData(), and marDynData::getVolume().
Referenced by wxQuantificationWidgetCT::ShowMARACASData().
00355 { 00356 _experiment->getDynData( )->getVolume( )->getMinMax( min, max ); 00357 }
int marInterfaceCT::getNumberOfContours | ( | int | point | ) |
Definition at line 394 of file marInterfaceCT.cpp.
References _experiment, and marExperimentCT::getNumberOfContours().
Referenced by wxQuantificationWidgetCT::RefreshAxis().
00394 { 00395 return _experiment->getNumberOfContours(point); 00396 }
int marInterfaceCT::getNumberOfSlices | ( | ) |
Definition at line 279 of file marInterfaceCT.cpp.
References _experiment, and marExperiment::getNumberOfSlices().
Referenced by wxQuantificationWidgetCT::Clean3D(), wxQuantificationWidgetCT::CreateManualContours(), wxQuantificationWidgetCT::OnCleanAll_BT(), wxProcessingCTWidget::OnExtract(), wxQuantificationWidgetCT::Reset_sl_Slider(), wxQuantificationWidgetCT::ShowMARACASData(), and vtk3DQuantSurfaceWidget::ShowMARACASDataAndAxeCT().
00279 { 00280 return _experiment->getNumberOfSlices( ); 00281 }
marParameters * marInterfaceCT::getParameters | ( | ) |
Definition at line 385 of file marInterfaceCT.cpp.
References _parameters.
Referenced by wxProcessingCTWidget::OnExtract().
00385 { 00386 return _parameters; 00387 }
std::string marInterfaceCT::GetParamFileName | ( | ) |
Definition at line 201 of file marInterfaceCT.cpp.
References m_paramFileName.
00201 { 00202 return m_paramFileName; 00203 }
marPoint * marInterfaceCT::getPoint | ( | int | i | ) |
Definition at line 458 of file marInterfaceCT.cpp.
References _experiment, and marExperimentCT::getPoint().
Referenced by wxQuantificationWidgetCT::RefreshAxis().
00459 { 00460 return _experiment->getPoint(i); 00461 }
int marInterfaceCT::getPointSize | ( | ) |
Definition at line 452 of file marInterfaceCT.cpp.
References _experiment, and marExperimentCT::getPointSize().
Referenced by wxQuantificationWidgetCT::RefreshAxis().
00453 { 00454 return _experiment->getPointSize(); 00455 }
int marInterfaceCT::getQuantFinish | ( | ) |
Definition at line 233 of file marInterfaceCT.cpp.
References _experiment, and marExperiment::getQuantFinish().
Referenced by wxQuantificationWidgetCT::showVariables().
00233 { 00234 return _experiment->getQuantFinish( ); 00235 }
int marInterfaceCT::getQuantStart | ( | ) |
Definition at line 228 of file marInterfaceCT.cpp.
References _experiment, and marExperiment::getQuantStart().
Referenced by wxQuantificationWidgetCT::showVariables().
00228 { 00229 return _experiment->getQuantStart( ); 00230 }
double marInterfaceCT::getReferenceArea | ( | ) |
Definition at line 264 of file marInterfaceCT.cpp.
References _experiment, and marExperiment::getReferenceArea().
Referenced by wxQuantificationWidgetCT::GetStenosisArea(), and wxQuantificationWidgetCT::showVariables().
00264 { 00265 return _experiment->getReferenceArea( ); 00266 }
double marInterfaceCT::getReferenceAverDiam | ( | ) |
Definition at line 269 of file marInterfaceCT.cpp.
References _experiment, and marExperiment::getReferenceAverDiam().
Referenced by wxQuantificationWidgetCT::GetStenosisDiameter(), and wxQuantificationWidgetCT::showVariables().
00269 { 00270 return _experiment->getReferenceAverDiam( ); 00271 }
vtkImageData * marInterfaceCT::getSliceImage | ( | int | i | ) |
Definition at line 244 of file marInterfaceCT.cpp.
References _experiment, and marExperiment::getSliceImage().
Referenced by wxQuantificationWidgetCT::GetVolumeAxisExtended(), wxQuantificationWidgetCT::RefreshAxis(), and wxQuantificationWidgetCT::ShowMARACASData().
00244 { 00245 return _experiment->getSliceImage( i ); 00246 }
double marInterfaceCT::getSubAxisLength | ( | ) |
Definition at line 259 of file marInterfaceCT.cpp.
References _experiment, and marExperiment::getSubAxisLength().
Referenced by wxQuantificationWidgetCT::showVariables().
00259 { 00260 return _experiment->getSubAxisLength( ); 00261 }
double marInterfaceCT::getTotalLength | ( | ) |
Definition at line 254 of file marInterfaceCT.cpp.
References _experiment, and marExperiment::getTotalLength().
00254 { 00255 return _experiment->getTotalLength( ); 00256 }
void marInterfaceCT::getVOI | ( | int * | voi | ) | [inline] |
Definition at line 84 of file marInterfaceCT.h.
00084 { _experiment->getVOI(voi); };
void marInterfaceCT::histogram | ( | int | point | ) |
Definition at line 422 of file marInterfaceCT.cpp.
References _experiment, and marExperimentCT::histogram().
00423 { 00424 _experiment->histogram(point); 00425 }
bool marInterfaceCT::initExperiment | ( | ) |
Definition at line 119 of file marInterfaceCT.cpp.
References _dicom, _experiment, marFilesBase::getVolume(), marExperiment::initExperiment(), and marExperiment::reset().
00120 { 00121 _experiment->reset( ); 00122 _experiment->initExperiment( _dicom->getVolume( ) ); 00123 return( true ); 00124 00125 }
bool marInterfaceCT::loadExperiment | ( | std::string | nFile | ) |
Definition at line 156 of file marInterfaceCT.cpp.
References _dicom, _experiment, _parameters, marExperiment::load(), marObject::load(), marParameters::load(), marExperiment::reset(), marObject::reset(), and marParameters::reset().
00157 { 00158 std::ifstream is( nFile.c_str( ) ,std::ios::binary|std::ios::in ); 00159 00160 //EEDxx2.4 DEBuG 00161 // wxLogDebug(wxString("Loading experiment from file ") 00162 // + wxString(nFile.c_str())); 00163 00164 wxString errorMsg; 00165 errorMsg= wxString(_T("Cannot open file ")) 00166 + wxString((wxChar*)nFile.c_str(), wxConvUTF8) 00167 + wxString(_T(" to load experiment")); 00168 00169 if( is !=NULL) { 00170 00171 _parameters->reset( ); 00172 _dicom->reset( ); 00173 _experiment->reset( ); 00174 00175 _parameters->load( is ); 00176 _dicom->load( is ); 00177 _experiment->load( is ); 00178 is.close( ); 00179 return( true ); 00180 00181 } // fi 00182 //EEDxx2.4 DEBuG 00183 // wxLogDebug(errorMsg); 00184 return( false ); 00185 }
marIsocontour * marInterfaceCT::loadMarIsocontour | ( | int | size, | |
double * | vx, | |||
double * | vy | |||
) |
Definition at line 482 of file marInterfaceCT.cpp.
References _experiment, and marExperimentCT::loadMarIsocontour().
Referenced by wxQuantificationWidgetCT::performAND(), and wxQuantificationWidgetCT::performXOR().
00483 { 00484 return _experiment->loadMarIsocontour(size,vx,vy); 00485 }
bool marInterfaceCT::loadParameters | ( | ) | [inline] |
Definition at line 40 of file marInterfaceCT.h.
References loadParameters().
Referenced by loadParameters().
00040 {return loadParameters(m_paramFileName);}
bool marInterfaceCT::loadParameters | ( | std::string | pFile | ) |
Definition at line 47 of file marInterfaceCT.cpp.
References _parameters, marParameters::load(), and marParameters::reset().
00048 { 00049 std::ifstream is( pFile.c_str( ),std::ios::binary|std::ios::in); 00050 00051 //EEDxx2.4 DEBuG 00052 // wxLogDebug(wxString("Loading parameters from file ") 00053 // + wxString(pFile.c_str())); 00054 00055 if( is==NULL ) 00056 { 00057 wxString errorMsg; 00058 errorMsg= wxString(_T("Error : Cannot open file ")) 00059 + wxString((wxChar*)pFile.c_str(), wxConvUTF8) 00060 + wxString(_T(" to load parameters")); 00061 //EEDxx2.4 DEBuG 00062 // wxLogDebug(errorMsg); 00063 return (false); 00064 } 00065 _parameters->reset( ); 00066 if (_parameters->load( is )) 00067 { 00068 is.close( ); 00069 return( true ); 00070 } 00071 else 00072 { 00073 is.close(); 00074 //EEDxx2.4 DEBuG 00075 // wxLogDebug(wxString("Error : Cannot load parameters from file ") 00076 // + wxString(pFile.c_str()) 00077 // + wxString(": file may be corrupted")); 00078 return (false); 00079 } 00080 }
void marInterfaceCT::markUpLumen | ( | int | point | ) |
Definition at line 464 of file marInterfaceCT.cpp.
References _experiment, and marExperimentCT::markUpLumen().
Referenced by wxQuantificationWidgetCT::OnCalibration().
00465 { 00466 _experiment->markUpLumen(point); 00467 }
double marInterfaceCT::performAND | ( | int | type, | |
std::vector< marIsocontour * > | manual | |||
) |
Definition at line 494 of file marInterfaceCT.cpp.
References _experiment, and marExperimentCT::performAND().
Referenced by wxQuantificationWidgetCT::performXOR().
00495 { 00496 return _experiment->performAND(type, manual); 00497 }
double marInterfaceCT::performUnion | ( | int | type, | |
std::vector< marIsocontour * > | manual | |||
) |
Definition at line 500 of file marInterfaceCT.cpp.
References _experiment, and marExperimentCT::performUnion().
Referenced by wxQuantificationWidgetCT::performXOR().
00501 { 00502 return _experiment->performUnion(type, manual); 00503 }
double marInterfaceCT::performXOR | ( | int | type, | |
std::vector< marIsocontour * > | manual | |||
) |
Definition at line 488 of file marInterfaceCT.cpp.
References _experiment, and marExperimentCT::performXOR().
Referenced by wxQuantificationWidgetCT::performXOR().
00489 { 00490 return _experiment->performXOR(type, manual); 00491 }
void marInterfaceCT::prepareQuantification | ( | ) |
Definition at line 238 of file marInterfaceCT.cpp.
References _experiment, and marExperimentCT::prepareQuantification().
Referenced by wxProcessingCTWidget::OnExtract(), and wxQuantificationWidgetCT::ShowMARACASData().
00238 { 00239 _experiment->prepareQuantification( ); 00240 }
void marInterfaceCT::RecalculateAxis | ( | ) |
Definition at line 350 of file marInterfaceCT.cpp.
References _experiment, and marExperimentCT::RegenerateAxis().
Referenced by wxMaracasQuantificationCT::RegenerateAll().
00350 { 00351 _experiment->RegenerateAxis(); 00352 }
void marInterfaceCT::RegenerateAxis | ( | ) |
Definition at line 340 of file marInterfaceCT.cpp.
References _experiment, and marExperimentCT::RegenerateAxis().
Referenced by wxMaracasQuantificationCT::RegenerateAll().
00340 { 00341 _experiment->RegenerateAxis(); 00342 }
void marInterfaceCT::RegenerateSignal | ( | ) |
Definition at line 345 of file marInterfaceCT.cpp.
References _experiment, and marExperiment::RegenerateSignal().
Referenced by wxMaracasQuantificationCT::RegenerateSignal().
00345 { 00346 _experiment->RegenerateSignal(); 00347 }
void marInterfaceCT::replaceContour2D | ( | int | size, | |
double * | vx, | |||
double * | vy, | |||
int | type | |||
) |
Definition at line 324 of file marInterfaceCT.cpp.
References _experiment, and marExperimentCT::replaceContour2D().
00325 { 00326 _experiment->replaceContour2D(size,vx,vy,type); 00327 }
void marInterfaceCT::replaceContour2D | ( | int | i, | |
int | size, | |||
double * | vx, | |||
double * | vy | |||
) |
Definition at line 320 of file marInterfaceCT.cpp.
References _experiment, marExperiment::getAxis(), and marAxis::replaceContour2D().
Referenced by wxQuantificationWidgetCT::OnReplaceContourCalc(), wxQuantificationWidgetCT::OnReplaceContourLumen(), and wxQuantificationWidgetCT::OnReplaceContourWall().
00320 { 00321 _experiment->getAxis()->replaceContour2D(i,size,vx,vy); 00322 }
void marInterfaceCT::reset | ( | ) |
Definition at line 188 of file marInterfaceCT.cpp.
References _dicom, _experiment, and _parameters.
Referenced by ~marInterfaceCT().
00188 { 00189 if( _experiment != NULL ) delete _experiment; 00190 if( _dicom != NULL ) delete _dicom; 00191 if( _parameters != NULL ) delete _parameters; 00192 _experiment = NULL; 00193 _dicom = NULL; 00194 _parameters = NULL; 00195 }
bool marInterfaceCT::saveExperiment | ( | std::string | nFile | ) |
Definition at line 127 of file marInterfaceCT.cpp.
References _dicom, _experiment, _parameters, marExperiment::save(), marObject::save(), and marParameters::save().
00128 { 00129 std::ofstream os( nFile.c_str( ),std::ios::binary | std::ios::out ); 00130 00131 //EEDxx2.4 DEBuG 00132 // wxLogDebug(wxString("Saving experiment to file ") 00133 // + wxString(nFile.c_str())); 00134 00135 wxString errorMsg; 00136 errorMsg= wxString(_T("Cannot open file ")) 00137 + wxString((wxChar*)nFile.c_str(), wxConvUTF8) 00138 + wxString(_T(" to save experiment")); 00139 00140 00141 if( os !=NULL ) { 00142 00143 _parameters->save( os ); 00144 _dicom->save( os ); 00145 _experiment->save( os ); 00146 os.close( ); 00147 return( true ); 00148 00149 } // fi 00150 //EEDxx2.4 DEBuG 00151 // wxLogDebug(errorMsg); 00152 return( false ); 00153 }
bool marInterfaceCT::saveParameters | ( | ) | [inline] |
Definition at line 41 of file marInterfaceCT.h.
References saveParameters().
Referenced by saveParameters().
00041 {return saveParameters(m_paramFileName);}
bool marInterfaceCT::saveParameters | ( | std::string | pFile | ) |
Definition at line 83 of file marInterfaceCT.cpp.
References _parameters, and marParameters::save().
00084 { 00085 std::ofstream os(pFile.c_str( ),std::ios::binary | std::ios::out); 00086 00087 //EEDxx2.4 DEBuG 00088 // wxLogDebug(wxString("Saving parameters to file ") 00089 // + wxString(pFile.c_str())); 00090 00091 00092 if( os==NULL ) 00093 { 00094 wxString errorMsg; 00095 errorMsg= wxString(_T("Error : Cannot open file ")) 00096 + wxString( (wxChar*)pFile.c_str(), wxConvUTF8) 00097 + wxString(_T(" to save parameters")); 00098 //EEDxx2.4 DEBuG 00099 // wxLogDebug(errorMsg); 00100 return( false ); 00101 } 00102 if(_parameters->save( os )) 00103 { 00104 os.close( ); 00105 return( true ); 00106 } 00107 else 00108 { 00109 os.close(); 00110 //EEDxx2.4 DEBuG 00111 // wxLogDebug(wxString("Error : Cannot save parameters to file ") 00112 // + wxString(pFile.c_str())); 00113 return (false); 00114 } 00115 00116 }
void marInterfaceCT::setActualQuant | ( | int | act | ) |
Definition at line 315 of file marInterfaceCT.cpp.
References _experiment, marExperiment::getAxis(), and marAxis::setActualQuant().
Referenced by wxQuantificationWidgetCT::MoveSlider(), wxQuantificationWidgetCT::ResetAxis(), and wxQuantificationWidgetCT::ShowMARACASData().
00315 { 00316 _experiment->getAxis()->setActualQuant( act ) ; 00317 }
void marInterfaceCT::setAxis | ( | int | i | ) |
Definition at line 222 of file marInterfaceCT.cpp.
References _experiment, and marExperiment::setAxis().
Referenced by wxProcessingCTWidget::OnExtract(), and vtk3DQuantSurfaceWidget::ShowMARACASDataAndAxeCT().
00223 { 00224 _experiment->setAxis(i); 00225 }
void marInterfaceCT::setCalibration | ( | bool | calib | ) |
Definition at line 428 of file marInterfaceCT.cpp.
References _experiment, and marExperimentCT::setCalibration().
Referenced by wxQuantificationWidgetCT::OnCalibration().
00429 { 00430 _experiment->setCalibration(calib); 00431 }
void marInterfaceCT::SetDicom | ( | marFilesBase * | dicom | ) |
Definition at line 205 of file marInterfaceCT.cpp.
References _dicom.
00205 { 00206 _dicom=dicom; 00207 }
void marInterfaceCT::setHealthySlice | ( | int | hsS, | |
int | hs, | |||
int | hsE | |||
) |
Definition at line 310 of file marInterfaceCT.cpp.
References _experiment, marExperiment::getAxis(), and marAxis::setHealthySlice().
Referenced by wxQuantificationWidgetCT::ResetAxis().
00310 { 00311 _experiment->getAxis()->setHealthySlice(hsS,hs,hsE); 00312 00313 }
void marInterfaceCT::SetParamFileName | ( | std::string | pFileName | ) |
Definition at line 197 of file marInterfaceCT.cpp.
References m_paramFileName.
00197 { 00198 m_paramFileName=pFileName; 00199 }
void marInterfaceCT::setStartIndex | ( | int | start | ) |
Definition at line 446 of file marInterfaceCT.cpp.
References _experiment, and marExperimentCT::setStartIndex().
Referenced by wxQuantificationWidgetCT::OnCalibration().
00447 { 00448 _experiment->setStartIndex(start); 00449 }
void marInterfaceCT::setVOI | ( | int * | voi | ) | [inline] |
Definition at line 85 of file marInterfaceCT.h.
00085 { _experiment->setVOI(voi); };
void marInterfaceCT::updateCalcPercentage | ( | int | percentage | ) |
Definition at line 405 of file marInterfaceCT.cpp.
References _experiment, and marExperimentCT::updateCalcPercentage().
Referenced by wxQuantificationWidgetCT::OnSliderCalcPercentageScroll().
00405 { 00406 _experiment->updateCalcPercentage(percentage); 00407 }
void marInterfaceCT::updateDiscontinuityThreshold | ( | int | percentage | ) |
Definition at line 410 of file marInterfaceCT.cpp.
References _experiment, and marExperimentCT::updateDiscontinuityThreshold().
Referenced by wxQuantificationWidgetCT::OnSliderDiscontinuityScroll().
00410 { 00411 _experiment->updateDiscontinuityThreshold(percentage); 00412 //TODO HACER RESET DEL CONTORNO 00413 }
void marInterfaceCT::updateLumenPercentage | ( | int | percentage | ) |
Definition at line 400 of file marInterfaceCT.cpp.
References _experiment, and marExperimentCT::updateLumenPercentage().
Referenced by wxQuantificationWidgetCT::OnSliderLumenPercentageScroll().
00400 { 00401 _experiment->updateLumenPercentage(percentage); 00402 }
Definition at line 134 of file marInterfaceCT.h.
Referenced by initExperiment(), loadExperiment(), reset(), saveExperiment(), and SetDicom().
marExperimentCT* marInterfaceCT::_experiment [private] |
Definition at line 142 of file marInterfaceCT.h.
Referenced by appendAxis(), cleanContours(), ClearContours(), ClearContoursPartial(), EraseContour(), generateFile(), get2Dcontour(), get2DDiameterMax(), get2DDiameterMin(), get3Dcontour(), get3DSlice(), getActualQuant(), getAverageArea(), getAxis(), getCalibration(), getContour(), getContourType(), getDynData(), GetExperiment(), getHealthySlice(), getHealthySliceEnd(), getHealthySliceStart(), getMinMax(), getNumberOfContours(), getNumberOfSlices(), getPoint(), getPointSize(), getQuantFinish(), getQuantStart(), getReferenceArea(), getReferenceAverDiam(), getSliceImage(), getSubAxisLength(), getTotalLength(), histogram(), initExperiment(), loadExperiment(), loadMarIsocontour(), marInterfaceCT(), markUpLumen(), performAND(), performUnion(), performXOR(), prepareQuantification(), RecalculateAxis(), RegenerateAxis(), RegenerateSignal(), replaceContour2D(), reset(), saveExperiment(), setActualQuant(), setAxis(), setCalibration(), setHealthySlice(), setStartIndex(), updateCalcPercentage(), updateDiscontinuityThreshold(), and updateLumenPercentage().
Definition at line 135 of file marInterfaceCT.h.
Referenced by getParameters(), loadExperiment(), loadParameters(), marInterfaceCT(), reset(), saveExperiment(), and saveParameters().
std::string marInterfaceCT::m_paramFileName [protected] |
Definition at line 139 of file marInterfaceCT.h.
Referenced by GetParamFileName(), marInterfaceCT(), and SetParamFileName().