1 /*=========================================================================
4 Module: $RCSfile: marAxisContours.cpp,v $
6 Date: $Date: 2009/05/14 13:55:07 $
7 Version: $Revision: 1.1 $
9 Copyright: (c) 2002, 2003
12 This software is distributed WITHOUT ANY WARRANTY; without even
13 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 PURPOSE. See the above copyright notice for more information.
16 =========================================================================*/
17 #include "marAxisContours.h"
21 // ----------------------------------------------------------------------------
22 void marAxisContours::addContour(marContourVO* cont) {
24 if (cont->getType() == LUMEN && contours.size() > 1)
26 contours[LUMEN] = cont;
28 else if (cont->getType() == WALL && contours.size() > 2)
30 contours[WALL] = cont;
34 contours.push_back(cont);
39 // ----------------------------------------------------------------------------
40 void marAxisContours::replaceContour(marContourVO* cont, int index) {
41 if (contours.size() > index + 1)
43 contours[index] = cont;
47 contours.push_back(cont);
51 // ----------------------------------------------------------------------------
52 marContourVO* marAxisContours::getContour(int i ) {
57 // ----------------------------------------------------------------------------
58 int marAxisContours::getTotalPlaques() {
61 for (int i = 0; i < contours.size(); i++)
63 if (contours[i]->getType() == CALCIFICATION)
72 // ----------------------------------------------------------------------------
73 int marAxisContours::getContourType(int i) {
75 return contours[i]->getType();
78 int marAxisContours::getSize() {
79 return contours.size();
82 // ----------------------------------------------------------------------------
83 bool marAxisContours::isReplaced(int i)
85 return contours[i]->isReplaced();