Inheritance diagram for DcmPixelItem:
Public Member Functions | |
DcmPixelItem (const DcmTag &tag, const Uint32 len=0) | |
constructor | |
DcmPixelItem (const DcmPixelItem &old) | |
copy constructor | |
virtual | ~DcmPixelItem () |
destructor | |
DcmPixelItem & | operator= (const DcmPixelItem &obj) |
copy assignment operator | |
virtual DcmObject * | clone () const |
clone method | |
virtual DcmEVR | ident (void) const |
get type identifier | |
virtual OFCondition | copyFrom (const DcmObject &rhs) |
Virtual object copying. | |
virtual void | print (STD_NAMESPACE ostream &out, const size_t flags=0, const int level=0, const char *pixelFileName=NULL, size_t *pixelCounter=NULL) |
print all elements of the item to a stream | |
virtual OFCondition | createOffsetTable (const DcmOffsetList &offsetList) |
creates in this object an offset table for a compressed pixel sequence. | |
virtual OFCondition | writeXML (STD_NAMESPACE ostream &out, const size_t flags=0) |
write object in XML format | |
virtual OFCondition | writeSignatureFormat (DcmOutputStream &outStream, const E_TransferSyntax oxfer, const E_EncodingType enctype, DcmWriteCache *wcache) |
special write method for creation of digital signatures | |
Protected Member Functions | |
virtual OFCondition | writeTagAndLength (DcmOutputStream &outStream, const E_TransferSyntax oxfer, Uint32 &writtenBytes) const |
write tag, VR and length field to the given output stream |
Instances of this class use the same attribute tags as sequence items, but are maintained within a pixel data element (class DcmPixelSequence) with undefined length and contain no DICOM structure, but raw data. Therefore, this class is derived from DcmOtherByteOtherWord, the class that is used for OB raw data which is handled very similar.
Definition at line 45 of file dcpxitem.h.
DcmPixelItem::DcmPixelItem | ( | const DcmTag & | tag, | |
const Uint32 | len = 0 | |||
) |
DcmPixelItem::DcmPixelItem | ( | const DcmPixelItem & | old | ) |
copy constructor
old | element to be copied |
DcmPixelItem& DcmPixelItem::operator= | ( | const DcmPixelItem & | obj | ) | [inline] |
copy assignment operator
obj | element to be copied |
Definition at line 66 of file dcpxitem.h.
References DcmOtherByteOtherWord::operator=().
virtual DcmObject* DcmPixelItem::clone | ( | ) | const [inline, virtual] |
clone method
Reimplemented from DcmOtherByteOtherWord.
Definition at line 71 of file dcpxitem.h.
References DcmPixelItem().
virtual DcmEVR DcmPixelItem::ident | ( | void | ) | const [inline, virtual] |
get type identifier
Reimplemented from DcmOtherByteOtherWord.
Definition at line 79 of file dcpxitem.h.
virtual OFCondition DcmPixelItem::copyFrom | ( | const DcmObject & | rhs | ) | [virtual] |
Virtual object copying.
This method can be used for DcmObject and derived classes to get a deep copy of an object. Internally the assignment operator is called if the given DcmObject parameter is of the same type as "this" object instance. If not, an error is returned. This function permits copying an object by value in a virtual way which therefore is different to just calling the assignment operator of DcmElement which could result in slicing the object.
rhs | - [in] The instance to copy from. Has to be of the same class type as "this" object |
Reimplemented from DcmOtherByteOtherWord.
virtual void DcmPixelItem::print | ( | STD_NAMESPACE ostream & | out, | |
const size_t | flags = 0 , |
|||
const int | level = 0 , |
|||
const char * | pixelFileName = NULL , |
|||
size_t * | pixelCounter = NULL | |||
) | [virtual] |
print all elements of the item to a stream
out | output stream | |
flags | optional flag used to customize the output (see DCMTypes::PF_xxx) | |
level | current level of nested items. Used for indentation. | |
pixelFileName | optional filename used to write the raw pixel data file | |
pixelCounter | optional counter used for automatic pixel data filename creation |
Reimplemented from DcmOtherByteOtherWord.
virtual OFCondition DcmPixelItem::createOffsetTable | ( | const DcmOffsetList & | offsetList | ) | [virtual] |
creates in this object an offset table for a compressed pixel sequence.
offsetList | list of size entries for each individual encoded frame provided by the compression codec. All entries are expected to have an even value (i.e. the pixel items are padded). |
virtual OFCondition DcmPixelItem::writeXML | ( | STD_NAMESPACE ostream & | out, | |
const size_t | flags = 0 | |||
) | [virtual] |
write object in XML format
out | output stream to which the XML document is written | |
flags | optional flag used to customize the output (see DCMTypes::XF_xxx) |
Reimplemented from DcmOtherByteOtherWord.
virtual OFCondition DcmPixelItem::writeSignatureFormat | ( | DcmOutputStream & | outStream, | |
const E_TransferSyntax | oxfer, | |||
const E_EncodingType | enctype, | |||
DcmWriteCache * | wcache | |||
) | [virtual] |
special write method for creation of digital signatures
outStream | DICOM output stream | |
oxfer | output transfer syntax | |
enctype | encoding types (undefined or explicit length) | |
wcache | pointer to write cache object, may be NULL |
Reimplemented from DcmOtherByteOtherWord.
virtual OFCondition DcmPixelItem::writeTagAndLength | ( | DcmOutputStream & | outStream, | |
const E_TransferSyntax | oxfer, | |||
Uint32 & | writtenBytes | |||
) | const [protected, virtual] |
write tag, VR and length field to the given output stream
outStream | output stream | |
oxfer | transfer syntax for writing | |
writtenBytes | number of bytes written to stream returned in this parameter |
Reimplemented from DcmObject.