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

📄 dvpssp.h

📁 转化为DIB位图再显示出来的dicom文件C++代码
💻 H
📖 第 1 页 / 共 4 页
字号:
  /** gets the (optional) configuration information.   *  @return configuration information, may be NULL.   */  const char *getConfigurationInformation();  /** gets the (optional) requestes resolution ID   *  @return requested resolution ID, may be NULL.   */  const char *getResolutionID();  /** gets the (optional) border density.   *  @return border density, may be NULL.   */  const char *getBorderDensity();  /** gets the (optional) empty image density.   *  @return empty image density, may be NULL.   */  const char *getEmtpyImageDensity();  /** gets the (optional) max density.   *  The string returned becomes invalid after the next   *  call to getMaxDensity or getMinDensity.   *  @return max density, may be NULL.   */  const char *getMaxDensity();  /** gets the (optional) min density.   *  The string returned becomes invalid after the next   *  call to getMaxDensity or getMinDensity.   *  @return min density, may be NULL.   */  const char *getMinDensity();  /** gets the (optional) max density.   *  @return max density (default: 300).   */  Uint16 getMaxDensityValue();  /** gets the (optional) min density.   *  @return min density (default: 20).   */  Uint16 getMinDensityValue();  /** gets the number of images currently registered in this object.   *  @return number of images.   */  size_t getNumberOfImages()  {    return imageBoxContentList.size();  }  /** gets the number of annotations currently registered in this object.   *  @return number of annotations.   */  size_t getNumberOfAnnotations()  {    return annotationContentList.size();  }  /** deletes one of the registered images.   *  @param idx index, must be < getNumberOfImages()   *  @return EC_Normal if successful, an error code otherwise.   */  OFCondition deleteImage(size_t idx);  /** deletes multiple of the registered   *  images, starting with the first one.   *  @param number number of images to delete, must be <= getNumberOfImages()   *  @return EC_Normal if successful, an error code otherwise.   */  OFCondition deleteMultipleImages(size_t number);  /** deletes as many images as fit on the current page according   *  to the image display format settings. Used to remove images   *  from the queue after a print job with one film box has been   *  spooled.   *  @return EC_Normal if successful, an error code otherwise.   */  OFCondition deleteSpooledImages();  /** checks if one of the registered images has additional settings that are not   *  default values on the image box level.   *  @param idx index, must be < getNumberOfImages()   *  @return EC_Normal if successful, an error code otherwise.   */  OFBool imageHasAdditionalSettings(size_t idx)  {    return imageBoxContentList.imageHasAdditionalSettings(idx);  }  /** sets the polarity for the given registered image box.   *  @param idx index, must be < getNumberOfImages()   *  @param value new attribute value (NORMAL or REVERSE), may be NULL.   *  @return EC_Normal if successful, an error code otherwise.   */  OFCondition setImagePolarity(size_t idx, const char *value)  {    return imageBoxContentList.setImagePolarity(idx, value);  }  /** sets the requested size for the given registered image box.   *  @param idx index, must be < getNumberOfImages()   *  @param value new attribute value (in mm), may be NULL.   *  @return EC_Normal if successful, an error code otherwise.   */  OFCondition setImageRequestedSize(size_t idx, const char *value)  {    return imageBoxContentList.setImageRequestedSize(idx, value);  }  /** sets the (optional) magnification type for the given registered image box.   *  @param idx index, must be < getNumberOfImages()   *  @param value new attribute value, may be NULL.   *    The caller is responsible for making sure   *    that the value is valid for the selected printer.   *  @return EC_Normal if successful, an error code otherwise.   */  OFCondition setImageMagnificationType(size_t idx, const char *value)  {    return imageBoxContentList.setImageMagnificationType(idx, value);  }  /** sets the (optional) smoothing type for the given registered image box.   *  @param idx index, must be < getNumberOfImages()   *  @param value new attribute value, may be NULL.   *    The caller is responsible for making sure   *    that the value is valid for the selected printer.   *  @return EC_Normal if successful, an error code otherwise.   */  OFCondition setImageSmoothingType(size_t idx, const char *value)  {    return imageBoxContentList.setImageSmoothingType(idx, value);  }  /** sets the (optional) configuration information for the given registered image box.   *  @param idx index, must be < getNumberOfImages()   *  @param value new attribute value, may be NULL.   *    The caller is responsible for making sure   *    that the value is valid for the selected printer.   *  @return EC_Normal if successful, an error code otherwise.   */  OFCondition setImageConfigurationInformation(size_t idx, const char *value)  {    return imageBoxContentList.setImageConfigurationInformation(idx, value);  }  /** gets the polarity for the given registered image box.   *  @param idx index, must be < getNumberOfImages()   *  @return polarity (NORMAL or REVERSE), may be NULL.   */  const char *getImagePolarity(size_t idx)  {    return imageBoxContentList.getImagePolarity(idx);  }  /** gets the requested size for the given registered image box.   *  @param idx index, must be < getNumberOfImages()   *  @return requested size (in mm), may be NULL.   */  const char *getImageRequestedSize(size_t idx)  {    return imageBoxContentList.getImageRequestedSize(idx);  }  /** gets the (optional) magnification type for the given registered image box.   *  @param idx index, must be < getNumberOfImages()   *  @return magnification type, may be NULL.   */  const char *getImageMagnificationType(size_t idx)  {    return imageBoxContentList.getImageMagnificationType(idx);  }  /** gets the (optional) smoothing type for the given registered image box.   *  @param idx index, must be < getNumberOfImages()   *  @return smoothing type, may be NULL.   */  const char *getImageSmoothingType(size_t idx)  {    return imageBoxContentList.getImageSmoothingType(idx);  }  /** gets the (optional) configuration information for the given registered image box.   *  @param idx index, must be < getNumberOfImages()   *  @return configuration information, may be NULL.   */  const char *getImageConfigurationInformation(size_t idx)  {    return imageBoxContentList.getImageConfigurationInformation(idx);  }  /** gets the presentation LUT for the given registered image box.   *  If not available the presentation LUT of the film box is used.   *  @param idx index, must be < getNumberOfImages()   *  @return pointer to presentation LUT, may be NULL.   */  DVPSPresentationLUT *getImagePresentationLUT(size_t idx);  /** gets the "global" presentation LUT which overrides the settings for the image boxes.   *  If not available the presentation LUT of the image box is used.   *  @return pointer to presentation LUT, may be NULL.   */  DVPSPresentationLUT *getPresentationLUT();  /** resets the Presentation LUT to the default setting. i.e. the presentation LUT   *  which is specified separately for each image box is used.   *  @return EC_Normal if successful, an error code otherwise.   */  OFCondition setDefaultPresentationLUT();  /** sets the current Presentation LUT shape (overrides the image box settings).   *  Only DVPSP_identity and DVPSP_lin_od are allowed.   *  @param shape the new presentation LUT shape.   *  @return EC_Normal if successful, an error code otherwise.   */  OFCondition setPresentationLUTShape(DVPSPresentationLUTType shape);  /** stores a presentation lookup table in the stored print object.   *  This method stores a presentation lookup table in the   *  stored print object and activates it. This LUT overrides the   *  settings made for the individual image boxes. If unsuccessful,   *  LUT is not set.   *  @param dset dataset from which the Presentation LUT SQ or Shape is read.   *  @return EC_Normal if successful, an error code otherwise.   */  OFCondition setPresentationLookupTable(DcmItem &dset);  /** converts an optical density (OD) value to an 8/12/16-bit P-value which is linear to luminance.   *  The output is not calibrated according to the GSDF.  This can be done by convertPValueToDDL() in   *  class DVPSPresentationState.  The attributes illumination, reflected ambient light and min/max   *  density (default 20/300) from this stored print object are used for the calculation.   *  @param density in hundreds of OD (e.g. 150 corressponds to 1.5 OD)   *  @param bits number of bits used for the output value (8, 12, 16)   *  @return P-Value, 0..0xFF, 0..0xFFF, 0..0xFFFF, < 0 if an error occurred.   */  Sint32 convertODtoPValue(Uint16 density, unsigned int bits = 8);  /** writes the general study and series module attributes for a grayscale hardcopy image   *  that is related to this stored print object to a DICOM dataset.   *  Copies of the DICOM elements 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 writeHardcopyImageAttributes(DcmItem &dset);  /** creates a new image box object and sets the content of this image box object.   *  @param retrieveaetitle retrieve AETITLE of the referenced image   *  @param refstudyuid Study instance UID of the referenced image   *  @param refseriesuid Series instance UID of the referenced image   *  @param refsopclassuid SOP Class UID of the referenced image   *  @param refsopinstanceuid SOP instance UID of the referenced image   *  @param requestedimagesize requested images size for this image, may be NULL (absent)   *  @param patientid patient ID for the referenced image, may be NULL (absent)   *  @param presentationlut presentation LUT to be used, may be NULL (absent)   *  @param inversePLUT true if presentation LUT is for Monochrome1 and must be inversed.   *  @return EC_Normal if successful, an error code otherwise.   */  OFCondition addImageBox(    const char *retrieveaetitle,    const char *refstudyuid,    const char *refseriesuid,    const char *refsopclassuid,    const char *refsopinstanceuid,    const char *requestedimagesize,    const char *patientid,    DVPSPresentationLUT *presentationlut,    OFBool inversePLUT);  /** creates a new image box object and sets the content of this image box object.   *  This is a specialized version of the method with the same name and more parameters.   *  SOP Class is assumed to be Grayscale Hardcopy, Study and Series are derived from   *  the Stored Print internal defaults.   *  @param retrieveaetitle retrieve AETITLE of the referenced image   *  @param refsopinstanceuid SOP instance UID of the referenced image   *  @param requestedimagesize requested images size for this image, default: absent   *  @param patientid patient ID for the referenced image, default: absent   *  @param presentationlut presentation LUT to be used, may be NULL (absent)   *  @param inversePLUT true if presentation LUT is for Monochrome1 and must be inversed.   *  @return EC_Normal if successful, an error code otherwise.   */  OFCondition addImageBox(    const char *retrieveaetitle,    const char *refsopinstanceuid,    const char *requestedimagesize=NULL,    const char *patientid=NULL,    DVPSPresentationLUT *presentationlut=NULL,    OFBool inversePLUT=OFFalse);  /** deletes all existing annotations and creates a new one,   *  with given text and position. Sets annotation display format   *  to the given value.   *   *  @param displayformat annotation display format   *  @param text annotation text   *  @param position annotation position   *  @return EC_Normal if successful, an error code otherwise.   */  OFCondition setSingleAnnotation(    const char *displayformat,    const char *text,    Uint16 position);  /** deletes all annotations, clears annotation display format.   */  void deleteAnnotations();  /** sets a new SOP Instance UID for the Stored Print object.   *  @param uid new SOP Instance UID   *  @return EC_Normal if successful, an error code otherwise.   */  OFCondition setInstanceUID(const char *uid);  /** clears the SOP instance UID for the Stored Print object.   *  a new UID is assigned automatically when writing the object.   */  void clearInstanceUID() { sOPInstanceUID.clear(); }  /** returns the image UIDs that are required to look up the referenced image in the database   *  @param idx index, must be < getNumberOfImages()

⌨️ 快捷键说明

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