⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dcfilefo.h

📁 转化为DIB位图再显示出来的dicom文件C++代码
💻 H
📖 第 1 页 / 共 2 页
字号:
    // choose Representation changes the representation of    // PixelData Elements in the data set to the given representation    // If the representation does not exists it creates one.    OFCondition chooseRepresentation(const E_TransferSyntax repType,                                     const DcmRepresentationParameter *repParam)    {        return getDataset()->chooseRepresentation(repType, repParam);    }    // checks if all PixelData elements have a conforming representation    // (for definition of conforming representation see dcpixel.h).    // if one PixelData element has no conforming representation    // OFFalse is returned.    OFBool hasRepresentation(const E_TransferSyntax repType,                             const DcmRepresentationParameter *repParam)    {        return getDataset()->hasRepresentation(repType, repParam);    }    /** removes all but the original representation in all pixel data elements     */    void removeAllButOriginalRepresentations()    {        getDataset()->removeAllButOriginalRepresentations();    }    /** removes all but the current representation in all pixel data elements.     *  Makes the current representation original.     */    void removeAllButCurrentRepresentations()    {        getDataset()->removeAllButCurrentRepresentations();    }    /** get current file read mode.  This mode specifies whether a file is read as a     *  fileformat or dataset (without meta header).  In addition, the reading can be     *  restricted to DICOM files only.     *  @return file read mode     */    E_FileReadMode getReadMode() const    {        return FileReadMode;    }    /** set current file read mode.  This mode specifies whether a file is read as a     *  fileformat or dataset (without meta header).  In addition, the reading can be     *  restricted to DICOM files only.     *  @param readMode file read mode to be set     */    void setReadMode(const E_FileReadMode readMode)    {        FileReadMode = readMode;    }// The following methods have no meaning in DcmFileFormat and shall not be// called. Since it is not possible to delete inherited methods from a class// stubs are defined that create an error.    virtual OFCondition insertItem(DcmItem *item,                                   const unsigned long where = DCM_EndOfListIndex);    virtual DcmItem *remove(const unsigned long num);    virtual DcmItem *remove(DcmItem *item);    virtual OFCondition clear();  private:    OFCondition checkValue(DcmMetaInfo *metainfo,                           DcmDataset *dataset,                           const DcmTagKey &atagkey,                           DcmObject *obj,                           const E_TransferSyntax oxfer);    E_TransferSyntax lookForXfer(DcmMetaInfo *metainfo);    /// file read mode, specifies whether to read the meta header or not    E_FileReadMode FileReadMode;};#endif // DCFILEFO_H/*** CVS/RCS Log:** $Log: dcfilefo.h,v $** Revision 1.25  2005/12/08 16:28:13  meichel** Changed include path schema for all DCMTK header files**** Revision 1.24  2005/12/02 08:48:17  joergr** Added new file read mode that makes it possible to distinguish between DICOM** files, datasets and other non-DICOM files.  For this reason, the last** parameter of method loadFile() changed from OFBool to E_FileReadMode.**** Revision 1.23  2004/07/01 12:28:25  meichel** Introduced virtual clone method for DcmObject and derived classes.**** Revision 1.22  2002/12/06 12:49:10  joergr** Enhanced "print()" function by re-working the implementation and replacing** the boolean "showFullData" parameter by a more general integer flag.** Added doc++ documentation.** Made source code formatting more consistent with other modules/files.**** Revision 1.21  2002/08/27 16:55:32  meichel** Initial release of new DICOM I/O stream classes that add support for stream**   compression (deflated little endian explicit VR transfer syntax)**** Revision 1.20  2002/08/20 12:18:35  meichel** Changed parameter list of loadFile and saveFile methods in class**   DcmFileFormat. Removed loadFile and saveFile from class DcmObject.**** Revision 1.19  2002/04/25 09:39:47  joergr** Added support for XML output of DICOM objects.**** Revision 1.18  2002/04/11 12:22:51  joergr** Added new methods for loading and saving DICOM files.**** Revision 1.17  2001/09/25 17:19:26  meichel** Adapted dcmdata to class OFCondition**** Revision 1.16  2001/06/01 15:48:40  meichel** Updated copyright header**** Revision 1.15  2000/04/14 15:31:32  meichel** Removed default value from output stream passed to print() method.**   Required for use in multi-thread environments.**** Revision 1.14  2000/03/08 16:26:14  meichel** Updated copyright header.**** Revision 1.13  2000/03/03 14:05:23  meichel** Implemented library support for redirecting error messages into memory**   instead of printing them to stdout/stderr for GUI applications.**** Revision 1.12  2000/02/10 10:50:51  joergr** Added new feature to dcmdump (enhanced print method of dcmdata): write** pixel data/item value fields to raw files.**** Revision 1.11  1999/03/31 09:24:38  meichel** Updated copyright header in module dcmdata**** Revision 1.10  1998/11/12 16:47:39  meichel** Implemented operator= for all classes derived from DcmObject.**** Revision 1.9  1997/07/21 08:14:39  andreas** - New environment for encapsulated pixel representations. DcmPixelData**   can contain different representations and uses codecs to convert**   between them. Codecs are derived from the DcmCodec class. New error**   codes are introduced for handling of representations. New internal**   value representation (only for ident()) for PixelData** - Replace all boolean types (BOOLEAN, CTNBOOLEAN, DICOM_BOOL, BOOL)**   with one unique boolean type OFBool.**** Revision 1.8  1997/05/27 13:48:27  andreas** - Add method canWriteXfer to class DcmObject and all derived classes.**   This method checks whether it is possible to convert the original**   transfer syntax to an new transfer syntax. The check is used in the**   dcmconv utility to prohibit the change of a compressed transfer**   syntax to a uncompressed.**** Revision 1.7  1997/05/16 08:23:47  andreas** - Revised handling of GroupLength elements and support of**   DataSetTrailingPadding elements. The enumeratio E_GrpLenEncoding**   got additional enumeration values (for a description see dctypes.h).**   addGroupLength and removeGroupLength methods are replaced by**   computeGroupLengthAndPadding. To support Padding, the parameters of**   element and sequence write functions changed.** - Added a new method calcElementLength to calculate the length of an**   element, item or sequence. For elements it returns the length of**   tag, length field, vr field, and value length, for item and**   sequences it returns the length of the whole item. sequence including**   the Delimitation tag (if appropriate).  It can never return**   UndefinedLength.**** Revision 1.6  1996/08/05 08:45:21  andreas** new print routine with additional parameters:**         - print into files**         - fix output length for elements** corrected error in search routine with parameter ESM_fromStackTop**** Revision 1.5  1996/07/29 15:46:23  andreas** Add method getAndRemoveDataset to remove connection of dataset from fileformat**** Revision 1.4  1996/01/09 11:06:15  andreas** New Support for Visual C++** Correct problems with inconsistent const declarations**** Revision 1.3  1996/01/05 13:22:55  andreas** - changed to support new streaming facilities** - more cleanups** - merged read / write methods for block and file transfer***/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -