DCMTK
Version 3.6.7
OFFIS DICOM Toolkit
|
the representation of one VOI Window in a DICOM image. More...
Public Member Functions | |
DVPSVOIWindow () | |
default constructor | |
DVPSVOIWindow (const DVPSVOIWindow ©) | |
copy constructor | |
DVPSVOIWindow * | clone () |
clone method. More... | |
virtual | ~DVPSVOIWindow () |
destructor | |
OFCondition | read (size_t idx, DcmDecimalString &wcenter, DcmDecimalString &wwidth, DcmLongString *expl=NULL) |
reads a VOI Window from DICOM elements. More... | |
void | clear () |
reset the object to initial state. More... | |
const char * | getExplanation () |
gets the Window center/width explanation for this VOI Window. More... | |
double | getWindowCenter () |
gets the Window Center of this VOI Window. More... | |
double | getWindowWidth () |
gets the Window Width of this VOI Window. More... | |
Private Member Functions | |
DVPSVOIWindow & | operator= (const DVPSVOIWindow &) |
private undefined assignment operator | |
the representation of one VOI Window in a DICOM image.
void DVPSVOIWindow::clear | ( | ) |
reset the object to initial state.
After this call, the object is in the same state as after creation with the default constructor.
|
inline |
clone method.
const char* DVPSVOIWindow::getExplanation | ( | ) |
gets the Window center/width explanation for this VOI Window.
If no explanation exists, NULL is returned.
|
inline |
gets the Window Center of this VOI Window.
|
inline |
gets the Window Width of this VOI Window.
OFCondition DVPSVOIWindow::read | ( | size_t | idx, |
DcmDecimalString & | wcenter, | ||
DcmDecimalString & | wwidth, | ||
DcmLongString * | expl = NULL |
||
) |
reads a VOI Window from DICOM elements.
The DICOM elements of the given VOI Window are copied to this object. If this method returns an error code, the object is in undefined state afterwards.
idx | the index of the VOI window to be read, must be < wcenter.getVM() |
wcenter | the window center(s) |
wwidth | the window width(s). wwidth.getVM() must be == wcenter.getVM(). |
expl | the window center/window width explanation. If omitted, explanation remains empty. |