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

📄 dsrcitem.h

📁 转化为DIB位图再显示出来的dicom文件C++代码
💻 H
📖 第 1 页 / 共 2 页
字号:
/* * *  Copyright (C) 2000-2005, OFFIS * *  This software and supporting documentation were developed by * *    Kuratorium OFFIS e.V. *    Healthcare Information and Communication Systems *    Escherweg 2 *    D-26121 Oldenburg, Germany * *  THIS SOFTWARE IS MADE AVAILABLE,  AS IS,  AND OFFIS MAKES NO  WARRANTY *  REGARDING  THE  SOFTWARE,  ITS  PERFORMANCE,  ITS  MERCHANTABILITY  OR *  FITNESS FOR ANY PARTICULAR USE, FREEDOM FROM ANY COMPUTER DISEASES  OR *  ITS CONFORMITY TO ANY SPECIFICATION. THE ENTIRE RISK AS TO QUALITY AND *  PERFORMANCE OF THE SOFTWARE IS WITH THE USER. * *  Module: dcmsr * *  Author: Joerg Riesmeier * *  Purpose: *    classes: DSRContentItem * *  Last Update:      $Author: meichel $ *  Update Date:      $Date: 2005/12/08 16:04:50 $ *  CVS/RCS Revision: $Revision: 1.18 $ *  Status:           $State: Exp $ * *  CVS/RCS Log at end of file * */#ifndef DSRCITEM_H#define DSRCITEM_H#include "dcmtk/config/osconfig.h"   /* make sure OS specific configuration is included first */#include "dcmtk/dcmsr/dsrtypes.h"#include "dcmtk/dcmsr/dsrdoctn.h"#include "dcmtk/dcmsr/dsrcodvl.h"#include "dcmtk/dcmsr/dsrnumvl.h"#include "dcmtk/dcmsr/dsrscovl.h"#include "dcmtk/dcmsr/dsrtcovl.h"#include "dcmtk/dcmsr/dsrcomvl.h"#include "dcmtk/dcmsr/dsrimgvl.h"#include "dcmtk/dcmsr/dsrwavvl.h"#include "dcmtk/ofstd/ofstring.h"/*---------------------* *  class declaration  * *---------------------*//** Interface class for content items. *  This class allows to access the document tree nodes without using any pointers. */class DSRContentItem  : protected DSRTypes{    // allow DSRDocumentTree to access protected method setTreeNode()    friend class DSRDocumentTree;  public:    /** destructor     */    virtual ~DSRContentItem();    /** check for validity/completeness.     *  Applicable to all content items.     ** @return OFTrue if current content item is valid, OFFalse otherwise     */    OFBool isValid() const;    /** check for mark flag.     *  Applicable to all content items.     ** @return OFTrue if current content item is marked, OFFalse otherwise     */    OFBool isMarked() const;    /** mark/unmark item.     *  Applicable to all content items.     ** @param  flag  mark item if OFTrue, unmark otherwise     */    void setMark(const OFBool flag);    /** get value type.     *  Applicable to all content items.     ** @return value type of current content item if valid, VT_invalid otherwise     */    E_ValueType getValueType() const;    /** get relationship type.     *  Applicable to all content items.     ** @return relationship type of current content item if valid, RT_invalid otherwise     */    E_RelationshipType getRelationshipType() const;    /** get ID of the referenced node.     *  Applicable to: byReference relationships     ** @return ID of the referenced node if valid, 0 otherwise     */    size_t getReferencedNodeID() const;    /** get string value.     *  Applicable to: TEXT, DATETIME, DATE, TIME, UIDREF, PNAME     ** @return string value of current content item if valid, EmptyString otherwise     */    const OFString &getStringValue() const;    /** set string value.  Please use the correct format for the string value depending on     *  the corresponding content item (value type).     *  Applicable to: TEXT, DATETIME, DATE, TIME, UIDREF, PNAME     ** @param  stringValue  value to be set     ** @return status, EC_Normal if successful, an error code otherwise     */    OFCondition setStringValue(const OFString &stringValue);    /** get pointer to code value.     *  Applicable to: CODE     ** @return pointer to code value of current content item if valid, NULL otherwise     */    DSRCodedEntryValue *getCodeValuePtr();    /** get code value.     *  Applicable to: CODE     ** @return coded entry value of current content item if valid, EmptyCodedEntry otherwise     */    const DSRCodedEntryValue &getCodeValue() const;    /** get copy of code value.     *  Applicable to: CODE     ** @param  codeValue  variable where the copy should be stored     ** @return status, EC_Normal if successful, an error code otherwise     */    OFCondition getCodeValue(DSRCodedEntryValue &codeValue) const;    /** set code value.     *  Applicable to: CODE     ** @param  codeValue  value to be set     ** @return status, EC_Normal if successful, an error code otherwise     */    OFCondition setCodeValue(const DSRCodedEntryValue &codeValue);    /** get pointer to numeric value.     *  Applicable to: NUM     ** @return pointer to numeric value of current content item if valid, NULL otherwise     */    DSRNumericMeasurementValue *getNumericValuePtr();    /** get numeric value.     *  Applicable to: NUM     ** @return numeric measurement value of current content item if valid, EmptyNumericMeasurement otherwise     */    const DSRNumericMeasurementValue &getNumericValue() const;    /** get copy of numeric value.     *  Applicable to: NUM     ** @param  numericValue  variable where the copy should be stored (cleared if an error occurs)     ** @return status, EC_Normal if successful, an error code otherwise     */    OFCondition getNumericValue(DSRNumericMeasurementValue &numericValue) const;    /** set numeric value.     *  Applicable to: NUM     ** @param  numericValue  value to be set     ** @return status, EC_Normal if successful, an error code otherwise     */    OFCondition setNumericValue(const DSRNumericMeasurementValue &numericValue);    /** get pointer to spatial coordinates.     *  Applicable to: SCOORD     ** @return pointer to spatial coordinates value of current content item if valid, NULL otherwise     */    DSRSpatialCoordinatesValue *getSpatialCoordinatesPtr();    /** get spatial coordinates.     *  Applicable to: SCOORD     ** @return spatial coordinates value of current content item if valid, EmptySpatialCoordinates otherwise     */    const DSRSpatialCoordinatesValue &getSpatialCoordinates() const;    /** get copy of spatial coordinates.     *  Applicable to: SCOORD     ** @param  coordinatesValue  variable where the copy should be stored (cleared if an error occurs)     ** @return status, EC_Normal if successful, an error code otherwise     */    OFCondition getSpatialCoordinates(DSRSpatialCoordinatesValue &coordinatesValue) const;    /** set spatial coordinates.     *  Applicable to: SCOORD     ** @param  coordinatesValue  value to be set     ** @return status, EC_Normal if successful, an error code otherwise     */    OFCondition setSpatialCoordinates(const DSRSpatialCoordinatesValue &coordinatesValue);    /** get pointer to temporal coordinates.     *  Applicable to: TCOORD     ** @return pointer to temporal coordinates value of current content item if valid, NULL otherwise     */    DSRTemporalCoordinatesValue *getTemporalCoordinatesPtr();    /** get temporal coordinates.     *  Applicable to: TCOORD     ** @return temporal coordinates value of current content item if valid, EmptyTemporalCoordinates otherwise     */    const DSRTemporalCoordinatesValue &getTemporalCoordinates() const;    /** get copy of temporal coordinates.     *  Applicable to: TCOORD     ** @param  coordinatesValue  variable where the copy should be stored (cleared if an error occurs)     ** @return status, EC_Normal if successful, an error code otherwise     */    OFCondition getTemporalCoordinates(DSRTemporalCoordinatesValue &coordinatesValue) const;    /** set temporal coordinates.     *  Applicable to: TCOORD     ** @param  coordinatesValue  value to be set     ** @return status, EC_Normal if successful, an error code otherwise     */    OFCondition setTemporalCoordinates(const DSRTemporalCoordinatesValue &coordinatesValue);    /** get pointer to composite reference.     *  Applicable to: COMPOSITE     ** @return pointer to reference value of current content item if valid, NULL otherwise     */    DSRCompositeReferenceValue *getCompositeReferencePtr();    /** get composite reference.     *  Applicable to: COMPOSITE     ** @return reference value of current content item if valid, EmptyReference otherwise     */    const DSRCompositeReferenceValue &getCompositeReference() const;    /** get copy of composite reference.     *  Applicable to: COMPOSITE     ** @param  referenceValue  variable where the copy should be stored (cleared if an error occurs)     ** @return status, EC_Normal if successful, an error code otherwise     */    OFCondition getCompositeReference(DSRCompositeReferenceValue &referenceValue) const;    /** set composite reference.     *  Applicable to: COMPOSITE     ** @param  referenceValue  value to be set     ** @return status, EC_Normal if successful, an error code otherwise     */    OFCondition setCompositeReference(const DSRCompositeReferenceValue &referenceValue);    /** get pointer to image reference.     *  Applicable to: IMAGE     ** @return pointer to image reference value of current content item if valid, NULL otherwise     */    DSRImageReferenceValue *getImageReferencePtr();

⌨️ 快捷键说明

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