#include <marAxisContours.h>
Public Types | |
enum | ContourTypes { LUMEN = 0, WALL, CALCIFICATION, HYPODENSE, ELUMEN } |
Public Member Functions | |
void | addContour (marContourVO *cont) |
void | replaceContour (marContourVO *cont, int index) |
marContourVO * | getContour (int i) |
int | getTotalPlaques () |
int | getContourType (int i) |
int | getSize () |
bool | isReplaced (int i) |
Private Attributes | |
std::vector< marContourVO * > | contours |
Definition at line 23 of file marAxisContours.h.
LUMEN |
Lumen Type partial. |
WALL |
Wall Type. |
CALCIFICATION |
Calcification Type. |
HYPODENSE |
Hypodense Type. |
ELUMEN |
Extracted Lumen |
Definition at line 27 of file marAxisContours.h.
00028 { 00029 LUMEN = 0, 00030 WALL, 00031 CALCIFICATION, 00032 HYPODENSE, 00033 ELUMEN 00034 };
void marAxisContours::addContour | ( | marContourVO * | cont | ) |
Definition at line 22 of file marAxisContours.cpp.
References contours, marContourVO::getType(), LUMEN, and WALL.
Referenced by marAxisCT::cleanContours(), marAxisCT::create2Dcontours(), and marAxisCT::extractLumen().
00022 { 00023 00024 if (cont->getType() == LUMEN && contours.size() > 1) 00025 { 00026 contours[LUMEN] = cont; 00027 } 00028 else if (cont->getType() == WALL && contours.size() > 2) 00029 { 00030 contours[WALL] = cont; 00031 } 00032 else 00033 { 00034 contours.push_back(cont); 00035 } 00036 00037 }
marContourVO * marAxisContours::getContour | ( | int | i | ) |
Definition at line 52 of file marAxisContours.cpp.
References contours.
Referenced by marAxisCT::create2DDiametersMax(), marAxisCT::create2DDiametersMin(), marAxisCT::create3Dcontours(), marAxisCT::createContours(), marAxisCT::get2Dcontour(), marAxisCT::get2DDiameterMax(), marAxisCT::get2DDiameterMin(), and marAxisCT::get3Dcontour().
00052 { 00053 00054 return contours[i]; 00055 }
int marAxisContours::getContourType | ( | int | i | ) |
Definition at line 73 of file marAxisContours.cpp.
References contours.
Referenced by marAxisCT::extractLumen().
00073 { 00074 00075 return contours[i]->getType(); 00076 }
int marAxisContours::getSize | ( | ) |
Definition at line 78 of file marAxisContours.cpp.
References contours.
Referenced by marAxisCT::create2DDiametersMax(), marAxisCT::create2DDiametersMin(), marAxisCT::create3Dcontours(), marAxisCT::createContours(), and marAxisCT::extractLumen().
00078 { 00079 return contours.size(); 00080 }
int marAxisContours::getTotalPlaques | ( | ) |
Definition at line 58 of file marAxisContours.cpp.
References CALCIFICATION, and contours.
00058 { 00059 00060 int tam = 0; 00061 for (int i = 0; i < contours.size(); i++) 00062 { 00063 if (contours[i]->getType() == CALCIFICATION) 00064 { 00065 tam++; 00066 } 00067 } 00068 00069 return tam; 00070 }
bool marAxisContours::isReplaced | ( | int | i | ) |
Definition at line 83 of file marAxisContours.cpp.
References contours.
Referenced by marAxisCT::extractLumen().
00084 { 00085 return contours[i]->isReplaced(); 00086 }
void marAxisContours::replaceContour | ( | marContourVO * | cont, | |
int | index | |||
) |
Definition at line 40 of file marAxisContours.cpp.
References contours.
Referenced by marAxisCT::extractLumen().
00040 { 00041 if (contours.size() > index + 1) 00042 { 00043 contours[index] = cont; 00044 } 00045 else 00046 { 00047 contours.push_back(cont); 00048 } 00049 }
std::vector<marContourVO *> marAxisContours::contours [private] |
Definition at line 46 of file marAxisContours.h.
Referenced by addContour(), getContour(), getContourType(), getSize(), getTotalPlaques(), isReplaced(), and replaceContour().