Geant4  10.03.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DicomROI Class Reference

#include <DicomROI.hh>

Public Member Functions

 DicomROI (int ROINumber, OFString ROIName)
 
 ~DicomROI ()
 
void AddContour (DicomROIContour *)
 
std::vector< DicomROIContour * > GetContours () const
 
void Print (std::ostream &out)
 
int GetNumber () const
 
OFString GetName () const
 

Detailed Description

Definition at line 35 of file DicomROI.hh.

Constructor & Destructor Documentation

DicomROI::DicomROI ( int  ROINumber,
OFString  ROIName 
)

Definition at line 29 of file DicomROI.cc.

29  : theNumber(ROINumber+1), theName(ROIName)
30 {
31  G4cout << " CREATED DicomROI " << theNumber << " : " << theName << G4endl; //GDEB
32 }
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61
DicomROI::~DicomROI ( )
inline

Definition at line 39 of file DicomROI.hh.

39 {};

Member Function Documentation

void DicomROI::AddContour ( DicomROIContour cont)

Definition at line 35 of file DicomROI.cc.

36 {
37  // check if it already exists a contour with same Z
38  G4bool bOK = false;
39  size_t ii;
40  for( ii = 0; ii < theContours.size(); ii++ ){
41  if( cont->GetZ() == theContours[ii]->GetZ() ) {
42  bOK = true;
43  break;
44  }
45  }
46  if( !bOK ) {
47  theContours.push_back( cont );
48  } else {
49  theContours[ii]->AddPoints( cont->GetPoints() );
50  delete cont;
51  }
52 
53 }
bool G4bool
Definition: G4Types.hh:79
std::vector< G4ThreeVector > GetPoints() const

Here is the call graph for this function:

std::vector<DicomROIContour*> DicomROI::GetContours ( ) const
inline

Definition at line 43 of file DicomROI.hh.

43  {
44  return theContours;
45  }
OFString DicomROI::GetName ( void  ) const
inline

Definition at line 50 of file DicomROI.hh.

50  {
51  return theName;
52  }

Here is the caller graph for this function:

int DicomROI::GetNumber ( ) const
inline

Definition at line 47 of file DicomROI.hh.

47  {
48  return theNumber;
49  }

Here is the caller graph for this function:

void DicomROI::Print ( std::ostream &  out)

Definition at line 56 of file DicomROI.cc.

57 {
58  out << "@@@@@ ROI: " << theNumber << " " << theName << G4endl;
59 
60  out <<"@@@@ NUMBER OF ContourSequences " << theContours.size() << G4endl;
61  for( size_t ii = 0; ii < theContours.size(); ii++ ) {
62  out <<"@@@@ CONTOUR " << ii << G4endl;
63  theContours[ii]->Print(out);
64  }
65 }
#define G4endl
Definition: G4ios.hh:61

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