marAxisContours Class Reference

#include <marAxisContours.h>

List of all members.

Public Types

enum  ContourTypes {
  LUMEN = 0, WALL, CALCIFICATION, HYPODENSE,
  ELUMEN
}

Public Member Functions

void addContour (marContourVO *cont)
void replaceContour (marContourVO *cont, int index)
marContourVOgetContour (int i)
int getTotalPlaques ()
int getContourType (int i)
int getSize ()
bool isReplaced (int i)

Private Attributes

std::vector< marContourVO * > contours

Detailed Description

Definition at line 23 of file marAxisContours.h.


Member Enumeration Documentation

Enumerator:
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         };


Member Function Documentation

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 }

Here is the call graph for this function:

Here is the caller graph for this function:

marContourVO * marAxisContours::getContour ( int  i  ) 
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 }

Here is the caller graph for this function:

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 }

Here is the caller graph for this function:

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 }

Here is the caller graph for this function:

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 }

Here is the caller graph for this function:


Member Data Documentation

std::vector<marContourVO *> marAxisContours::contours [private]

The documentation for this class was generated from the following files:

Generated on 18 Mar 2010 for creaMaracasVisu_lib by  doxygen 1.6.1