/usr/include/dcmtk/dcmiod/iodimage.h is in libdcmtk-dev 3.6.1~20160216-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 | /*
*
* Copyright (C) 2015, Open Connections GmbH
* All rights reserved. See COPYRIGHT file for details.
*
* This software and supporting documentation are maintained by
*
* OFFIS e.V.
* R&D Division Health
* Escherweg 2
* D-26121 Oldenburg, Germany
*
*
* Module: dcmiod
*
* Author: Michael Onken
*
* Purpose: Class repres. image IOD by exposing common image IOD attributes
*
*/
#ifndef IODIMAGE_H
#define IODIMAGE_H
#include "dcmtk/config/osconfig.h"
#include "dcmtk/dcmiod/iodcommn.h"
#include "dcmtk/dcmiod/modgeneralimage.h"
#include "dcmtk/dcmiod/modimagepixel.h"
/** Class for managing common image IOD attributes. At the moment support for
* the palette-related attributes and the smallest/largest image pixel value
* attributes is still missing. Also, pixel data must be handled separately.
* Modules supported on top of DcmIODCommon: General Image Module and
* Image Pixel Module.
*/
class DCMTK_DCMIOD_EXPORT DcmIODImage :
public DcmIODCommon
{
public:
/** Constructor
*/
DcmIODImage();
/** Get General Image Module
* @return Reference to General Image Module
*/
IODGeneralImageModule& getGeneralImage();
/** Get Image Pixel Module
* @return Reference to Image Pixel Module
*/
IODImagePixelModule& getImagePixel();
/** Virtual Destructor
*/
virtual ~DcmIODImage();
/** Clear (removes) all attributes handled by the modules of this IOD.
* IOD Rules are not reset.
*/
virtual void clearData();
/** Read common image module attributes (all those handled by this class)
* from given item. Reads attributes from base class DcmIODCommon before.
* The current content is deleted even if the reading process fails.
* If the log stream is set and valid the reason for any error might be
* obtained from the error/warning output.
* @param dataset Reference to DICOM dataset from which the document
* should be read
* @return EC_Normal if successful, an error code otherwise
*/
virtual OFCondition read(DcmItem &dataset);
/** Write current common image module's attributes to DICOM dataset. Also
* writes attributes of base class DcmIODCommon afterwards.
* @param dataset Reference to DICOM dataset to which the current document
* should be written. The dataset is not cleared before writing
* to it!
* @return EC_Normal if successful, an error code otherwise
*/
virtual OFCondition write(DcmItem &dataset);
private:
/// General Image Module
IODGeneralImageModule m_GeneralImage;
/// Image Pixel Module
IODImagePixelModule m_ImagePixel;
};
#endif // IODIMAGE_H
|