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

📄 dvpsib.h

📁 转化为DIB位图再显示出来的dicom文件C++代码
💻 H
📖 第 1 页 / 共 2 页
字号:
   *  @return EC_Normal if successful, an error code otherwise.   */  OFCondition getImageReference(const char *&studyUID, const char *&seriesUID, const char *&instanceUID);  /** writes the attributes managed by this objects that are part of a    *  basic grayscale image box N-SET request into the DICOM dataset.   *  Copies of the DICOM element managed by this object are inserted into   *  the DICOM dataset.   *  @param dset the dataset to which the data is written   *  @return EC_Normal if successful, an error code otherwise.   */  OFCondition prepareBasicImageBox(DcmItem &dset);  /** sets a new log stream   *  @param stream new log stream, NULL for default logstream   *  @param verbMode verbose mode flag   *  @param dbgMode debug mode flag   */  void setLog(OFConsole *stream, OFBool verbMode, OFBool dbgMode);  /** checks whether the given Presentation LUT type could be used together   *  with this image box on a Print SCP that requires a matching alignment   *  between a Presentation LUT and the image pixel data.   *  @param align LUT alignment type   *  @return OFTrue if matching, OFFalse otherwise   */  OFBool matchesPresentationLUT(DVPSPrintPresentationLUTAlignment align) const;  /** performs a Print SCP Basic Grayscale Image Box N-SET operation.   *  The results of the N-SET operation are stored in the objects passed as    *  rsp and rspDataset.   *  @param cfg config file facility   *  @param cfgname symbolic printer name in config file   *  @param rqDataset N-SET request dataset   *  @param rsp N-SET response message   *  @param rspDataset N-SET response dataset passed back in this parameter   *  @param imageDataset a hardcopy grayscale image (without general study   *     and general series modules which must be added by the caller)    *     containing the image data from the N-SET request is written to    *     this dataset if the method returns successfully.   *  @param align describes the current Presentation LUT. Used if the Print   *     SCP has been configured to enforce a matching of Presentation LUT   *     and pixel data bit depth.   *  @param presentationLUTnegotiated    *    OFTrue if support for the Presentation LUT SOP class   *    has been negotiated at association negotiation   *  @return OFTrue if N-SET operation was successful, OFFalse otherwise.   */  OFBool printSCPSet(    DVConfiguration& cfg,    const char *cfgname,    DcmDataset *rqDataset,    T_DIMSE_Message& rsp,    DcmDataset *& rspDataset,    DcmDataset &imageDataset,    DVPSPrintPresentationLUTAlignment align,    OFBool presentationLUTnegotiated);   /** assigns new values for study instance UID, series instance UID   *  and retrieve aetitle.   *  @param studyUID new studyUID   *  @param seriesUID new seriesUID   *  @param aetitle new retrieve aetitle, must not be NULL.   *  @return EC_Normal if successful, an error code otherwise.   */     OFCondition setUIDsAndAETitle(    DcmUniqueIdentifier& studyUID,     DcmUniqueIdentifier& seriesUID,     const char *aetitle);private:  /// private undefined assignment operator  DVPSImageBoxContent& operator=(const DVPSImageBoxContent&);  /** writes a Referenced Presentation LUT SQ to the given   *  dataset. Helper function used in the more general write() method.   *  @param dset the dataset to which the data is written   *  @return EC_Normal if successful, an error code otherwise.   */  OFCondition addReferencedPLUTSQ(DcmItem &dset);  /** evaluates the contents of the Basic Grayscale Image Sequence during a   *  Print SCP Basic Grayscale Image Box N-SET operation.   *  The results of the N-SET operation are stored in the object passed as rsp.   *  @param cfg config file facility   *  @param cfgname symbolic printer name in config file   *  @param rqDataset first item of the Basic Grayscale Image Sequence   *  @param rsp N-SET response message   *  @param imageDataset a hardcopy grayscale image (without general study   *     and general series modules which must be added by the caller)    *     containing the image data from the N-SET request is written to    *     this dataset if the method returns successfully.   *  @param align describes the current Presentation LUT. Used if the Print   *     SCP has been configured to enforce a matching of Presentation LUT   *     and pixel data bit depth.   *  @param presentationLUTnegotiated    *    OFTrue if support for the Presentation LUT SOP class   *    has been negotiated at association negotiation   *  @return OFTrue if N-SET operation was successful, OFFalse otherwise.   */  OFBool printSCPEvaluateBasicGrayscaleImageSequence(   DVConfiguration& cfg,   const char *cfgname,   DcmItem *rqDataset,   T_DIMSE_Message& rsp,   DcmDataset &imageDataset,   DVPSPrintPresentationLUTAlignment align,   OFBool presentationLUTnegotiated);  /// Module=Image_Box_List, VR=UI, VM=1, Type 1(c)   DcmUniqueIdentifier      sOPInstanceUID;  /// Module=Image_Box_List, VR=US, VM=1, Type 1   DcmUnsignedShort         imageBoxPosition;  /// Module=Image_Box_List, VR=CS, VM=1, Type 2  DcmCodeString            polarity;  /// Module=Image_Box_List, VR=CS, VM=1, Type 3  DcmCodeString            magnificationType;  /// Module=Image_Box_List, VR=ST, VM=1, Type 3  DcmShortText             configurationInformation;  /// Module=Image_Box_List, VR=CS, VM=1, Type 3  DcmCodeString            smoothingType;  /// Module=Image_Box_List, VR=DS, VM=1, Type 3  DcmDecimalString         requestedImageSize;  /// Module=Image_Box_List (Supplement 38), VR=CS, VM=1, Type 3  DcmCodeString            requestedDecimateCropBehavior;  /* the following attributes belong to the ReferencedImageSequence   * which must have exactly one item here.   */  /// Module=Image_Box_List, VR=AE, VM=1-n, Type 1   DcmApplicationEntity     retrieveAETitle;  /// Module=Image_Box_List, VR=UI, VM=1, Type 1   DcmUniqueIdentifier      referencedSOPClassUID;  /// Module=Image_Box_List, VR=UI, VM=1, Type 1   DcmUniqueIdentifier      referencedSOPInstanceUID;  /// Module=Image_Box_List, VR=UI, VM=1, Type 1   DcmUniqueIdentifier      studyInstanceUID;  /// Module=Image_Box_List, VR=UI, VM=1, Type 1   DcmUniqueIdentifier      seriesInstanceUID;  /// Module=Image_Box_List, VR=IS, VM=1, Type 1c  DcmIntegerString         referencedFrameNumber;  /// Module=Image_Box_List, VR=LO, VM=1, Type 2  DcmLongString            patientID;  // we do not support the ReferencedImageOverlayBoxSequence which is retired in Supplement 35 anyway.  // the ReferencedPresentationLUTSequence is only created/read on the fly  DcmUniqueIdentifier      referencedPresentationLUTInstanceUID;  /// describes whether the image depth is 8 bit or 12 bit.  DVPSImageDepth           imageDepth;  /** output stream for error messages, never NULL   */  OFConsole *logstream;  /** flag indicating whether we're operating in verbose mode   */  OFBool verboseMode;     /** flag indicating whether we're operating in debug mode   */  OFBool debugMode;};#endif/* *  $Log: dvpsib.h,v $ *  Revision 1.21  2005/12/08 16:03:50  meichel *  Changed include path schema for all DCMTK header files * *  Revision 1.20  2001/09/26 15:36:12  meichel *  Adapted dcmpstat to class OFCondition * *  Revision 1.19  2001/06/01 15:50:17  meichel *  Updated copyright header * *  Revision 1.18  2000/07/04 15:58:01  joergr *  Added support for overriding the presentation LUT settings made for the *  image boxes. * *  Revision 1.17  2000/06/14 11:28:13  joergr *  Added methods to access the attributes Polarity and Requested Image Size. * *  Revision 1.16  2000/06/08 10:44:29  meichel *  Implemented Referenced Presentation LUT Sequence on Basic Film Session level. *    Empty film boxes (pages) are not written to file anymore. * *  Revision 1.15  2000/06/07 14:17:41  joergr *  Added methods to access the image polarity attribute. * *  Revision 1.14  2000/06/02 16:00:47  meichel *  Adapted all dcmpstat classes to use OFConsole for log and error output * *  Revision 1.13  2000/05/31 12:56:38  meichel *  Added initial Print SCP support * *  Revision 1.12  2000/03/08 16:28:53  meichel *  Updated copyright header. * *  Revision 1.11  1999/10/07 17:21:47  meichel *  Reworked management of Presentation LUTs in order to create tighter *    coupling between Softcopy and Print. * *  Revision 1.10  1999/09/24 15:23:44  meichel *  Print spooler (dcmprtsv) now logs diagnostic messages in log files *    when operating in spool mode. * *  Revision 1.9  1999/09/17 14:33:56  meichel *  Completed print spool functionality including Supplement 22 support * *  Revision 1.8  1999/09/15 17:43:27  meichel *  Implemented print job dispatcher code for dcmpstat, adapted dcmprtsv *    and dcmpsprt applications. * *  Revision 1.7  1999/09/10 12:46:46  meichel *  Added implementations for a number of print API methods. * *  Revision 1.6  1999/09/09 14:57:32  thiel *  Added methods for print spooler * *  Revision 1.5  1999/09/01 16:14:40  meichel *  Added support for requested image size to print routines * *  Revision 1.4  1999/08/31 14:09:10  meichel *  Added get/set methods for stored print attributes * *  Revision 1.3  1999/08/27 15:57:55  meichel *  Added methods for saving hardcopy images and stored print objects *    either in file or in the local database. * *  Revision 1.2  1999/08/26 09:30:59  thiel *  Add extensions for the usage of the StoredPrint * *  Revision 1.1  1999/07/30 13:34:47  meichel *  Added new classes managing Stored Print objects * * */

⌨️ 快捷键说明

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