Inheritance diagram for DiOverlay:
Public Member Functions | |
DiOverlay (const DiDocument *docu=NULL, const Uint16 alloc=0) | |
constructor | |
DiOverlay (const DiOverlay *overlay, const signed long left_pos, const signed long top_pos, const double xfactor, const double yfactor) | |
constructor, clip/scale | |
DiOverlay (const DiOverlay *overlay, const int horz, const int vert, const Uint16 columns, const Uint16 rows) | |
constructor, flip | |
DiOverlay (const DiOverlay *overlay, const int degree, const Uint16 columns, const Uint16 rows) | |
constructor, rotate | |
virtual | ~DiOverlay () |
destructor | |
int | isPlaneVisible (unsigned int plane) |
check whether specified plane is currently visible (not hidden) | |
int | showPlane (unsigned int plane) |
make specified plane visible | |
int | showPlane (unsigned int plane, const double fore, const double thresh, const EM_Overlay mode) |
make specified plane visible and set parameters | |
int | showPlane (unsigned int plane, const Uint16 pvalue) |
make specified plane visible and set p-value. | |
int | showAllPlanes () |
make all planes visible | |
int | showAllPlanes (const double fore, const double thresh, const EM_Overlay mode) |
make all planes visible | |
int | hidePlane (unsigned int plane) |
make specified plane invisible | |
int | hideAllPlanes () |
make all planes invisible | |
int | placePlane (unsigned int plane, const signed int left_pos, const signed int top_pos) |
move plane to a new place | |
unsigned int | getPlaneGroupNumber (unsigned int plane) const |
get group number of specified plane | |
const char * | getPlaneLabel (unsigned int plane) const |
get label of specified plane | |
const char * | getPlaneDescription (unsigned int plane) const |
get description of specified plane | |
EM_Overlay | getPlaneMode (unsigned int plane) const |
get overlay mode of specified plane | |
unsigned int | getCount () const |
get number of overlay planes | |
signed long | getLeft () const |
get current x-coordinate of overlay origin. | |
signed long | getTop () const |
get current y-coordinate of overlay origin. | |
int | hasEmbeddedData () const |
check whether there are any overlay planes embedded in the pixel data | |
int | addPlane (const unsigned int group, const signed int left_pos, const signed int top_pos, const unsigned int columns, const unsigned int rows, const DcmOverlayData &data, const DcmLongString &label, const DcmLongString &description, const EM_Overlay mode) |
add plane to list of additional overlay planes | |
int | removePlane (const unsigned int group) |
remove specified plane from list of additional overlay planes | |
DiOverlayPlane * | getPlane (const unsigned int plane) const |
int | hasPlane (unsigned int plane, const int visible=0) const |
check whether specified plane exists | |
void * | getPlaneData (const unsigned long frame, unsigned int plane, unsigned int &left_pos, unsigned int &top_pos, unsigned int &width, unsigned int &height, EM_Overlay &mode, const Uint16 columns, const Uint16 rows, const int bits=8, const Uint16 fore=0xff, const Uint16 back=0x0) |
get overlay plane data as an array of 1/8/16 bit values. | |
void * | getFullPlaneData (const unsigned long frame, unsigned int plane, unsigned int &width, unsigned int &height, const int bits=8, const Uint16 fore=0xff, const Uint16 back=0x0) |
get overlay plane data as an array of 1/8/16 bit values. | |
unsigned long | create6xxx3000PlaneData (Uint8 *&buffer, unsigned int plane, unsigned int &width, unsigned int &height, unsigned long &frames) |
create overlay plane data in (6xxx,3000) format. | |
Static Public Attributes | |
static const unsigned int | MaxOverlayCount |
constant defining the maximum number of overlay planes (16) | |
static const unsigned int | FirstOverlayGroup |
constant defining the group number of the first overlay plane (0x6000) | |
Protected Member Functions | |
Uint16 * | Init (const DiOverlay *overlay) |
initialize new overlay managing object | |
int | convertToPlaneNumber (unsigned int &plane, const int mode) const |
convert given plane or group number to a valid plane number | |
unsigned int | convertToGroupNumber (const unsigned int plane) const |
convert five plane number to corresponding group number | |
int | isValidGroupNumber (const unsigned int group) const |
check whether given group number is valid. | |
int | checkPlane (const unsigned int plane, const int mode=1) |
check whether the specified plane is valid. | |
Private Member Functions | |
DiOverlay (const DiOverlay &) | |
DiOverlay & | operator= (const DiOverlay &) |
Private Attributes | |
signed long | Left |
left offset to all planes | |
signed long | Top |
top offset to all planes | |
Uint16 | Width |
maximum width of all planes | |
Uint16 | Height |
maximum height of all planes | |
unsigned long | Frames |
maximum number of frames | |
int | AdditionalPlanes |
status, if true planes are added later with addPlane() | |
DiOverlayData * | Data |
points to overlay data (provides shared data) |
Definition at line 63 of file diovlay.h.
|
constructor
|
|
constructor, clip/scale
|
|
constructor, flip
|
|
constructor, rotate
|
|
add plane to list of additional overlay planes
|
|
check whether the specified plane is valid. and determine maximum resolution and number of frames which are common for all overlay planes so far.
|
|
convert five plane number to corresponding group number
|
|
convert given plane or group number to a valid plane number
Referenced by hasPlane(). |
|
create overlay plane data in (6xxx,3000) format. (1 bit allocated and stored, foreground color is 1, background color is 0, data is 16 bit padded - even length) Memory isn't handled internally and must therefore be deleted from calling program.
Referenced by hasPlane(). |
|
get number of overlay planes
Definition at line 242 of file diovlay.h. References DiOverlayData::Count, and Data. Referenced by DicomImage::getOverlayCount(). |
|
get overlay plane data as an array of 1/8/16 bit values. Memory isn't handled internally and must therefore be deleted from calling program.
Referenced by hasPlane(). |
|
get current x-coordinate of overlay origin. This value is added to the origin of all overlay planes.
Definition at line 252 of file diovlay.h. References Left. Referenced by DiMonoOutputPixelTemplate< T1, T2, T3 >::overlay(). |
|
get overlay plane data as an array of 1/8/16 bit values. Memory isn't handled internally and must therefore be deleted from calling program.
Referenced by hasPlane(). |
|
get description of specified plane
Referenced by DicomImage::getOverlayDescription(). |
|
get group number of specified plane
Referenced by DicomImage::getOverlayGroupNumber(). |
|
get label of specified plane
Referenced by DicomImage::getOverlayLabel(). |
|
get overlay mode of specified plane
Referenced by DicomImage::getOverlayMode(). |
|
get current y-coordinate of overlay origin. This value is added to the origin of all overlay planes.
Definition at line 262 of file diovlay.h. References Top. Referenced by DiMonoOutputPixelTemplate< T1, T2, T3 >::overlay(). |
|
check whether there are any overlay planes embedded in the pixel data
|
|
check whether specified plane exists
Definition at line 321 of file diovlay.h. References AdditionalPlanes, convertToPlaneNumber(), create6xxx3000PlaneData(), Data, getFullPlaneData(), getPlaneData(), DiOverlayPlane::isVisible(), and DiOverlayData::Planes. |
|
make all planes invisible
Referenced by DicomImage::hideAllOverlays(). |
|
make specified plane invisible
Referenced by DicomImage::hideOverlay(). |
|
initialize new overlay managing object
|
|
check whether specified plane is currently visible (not hidden)
Referenced by DicomImage::isOverlayVisible(). |
|
check whether given group number is valid. Valid means that the number is even and between 0x6000 and 0x60ff.
|
|
move plane to a new place
Referenced by DicomImage::placeOverlay(). |
|
remove specified plane from list of additional overlay planes
Referenced by DicomImage::removeOverlay(). |
|
make all planes visible
|
|
make all planes visible
Referenced by DicomImage::showAllOverlays(). |
|
make specified plane visible and set p-value. Only applicable for bitmap shutters.
|
|
make specified plane visible and set parameters
|
|
make specified plane visible
Referenced by DicomImage::showOverlay(). |