Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
DicomROI Class Reference

#include <Doxymodules_medical.h>

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
 

Private Attributes

int theNumber
 
OFString theName
 
std::vector< DicomROIContour * > theContours
 

Detailed Description

Definition at line 54 of file Doxymodules_medical.h.

Constructor & Destructor Documentation

◆ DicomROI()

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}
int theNumber
Definition DicomROI.hh:55
OFString theName
Definition DicomROI.hh:56

◆ ~DicomROI()

DicomROI::~DicomROI ( )
inline

Definition at line 39 of file DicomROI.hh.

39{};

Member Function Documentation

◆ AddContour()

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}
std::vector< G4ThreeVector > GetPoints() const
std::vector< DicomROIContour * > theContours
Definition DicomROI.hh:58

◆ GetContours()

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

Definition at line 43 of file DicomROI.hh.

43 {
44 return theContours;
45 }

◆ Print()

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}

◆ GetNumber()

int DicomROI::GetNumber ( ) const
inline

Definition at line 47 of file DicomROI.hh.

47 {
48 return theNumber;
49 }

◆ GetName()

OFString DicomROI::GetName ( ) const
inline

Definition at line 50 of file DicomROI.hh.

50 {
51 return theName;
52 }

Member Data Documentation

◆ theNumber

int DicomROI::theNumber
private

Definition at line 55 of file DicomROI.hh.

◆ theName

OFString DicomROI::theName
private

Definition at line 56 of file DicomROI.hh.

◆ theContours

std::vector<DicomROIContour*> DicomROI::theContours
private

Definition at line 58 of file DicomROI.hh.


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

Applications | User Support | Publications | Collaboration