/usr/include/dcmtk/dcmpmap/dpmparametricmapbase.h is in libdcmtk-dev 3.6.2-3build3.
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 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 | /*
*
* Copyright (C) 2016, 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: dcmpmap
*
* Author: Jan Schlamelcher
*
* Purpose: Generated base class representing the Parametric Map IOD
*
*/
#ifndef DPMPARAMETRICMAPBASE_H
#define DPMPARAMETRICMAPBASE_H
#include "dcmtk/config/osconfig.h"
#include "dcmtk/dcmfg/fginterface.h"
#include "dcmtk/dcmfg/fgderimg.h"
#include "dcmtk/dcmfg/fgfracon.h"
#include "dcmtk/dcmfg/fgframeanatomy.h"
#include "dcmtk/dcmfg/fgframevoilut.h"
#include "dcmtk/dcmfg/fgidentpixeltransform.h"
#include "dcmtk/dcmfg/fgparametricmapframetype.h"
#include "dcmtk/dcmfg/fgpixmsr.h"
#include "dcmtk/dcmfg/fgplanor.h"
#include "dcmtk/dcmfg/fgplanpo.h"
#include "dcmtk/dcmfg/fgrealworldvaluemapping.h"
#include "dcmtk/dcmiod/iodimage.h"
#include "dcmtk/dcmiod/modacquisitioncontext.h"
#include "dcmtk/dcmiod/modcommoninstanceref.h"
#include "dcmtk/dcmiod/modenhequipment.h"
#include "dcmtk/dcmiod/modequipment.h"
#include "dcmtk/dcmiod/modgeneralimage.h"
#include "dcmtk/dcmiod/modgeneralseries.h"
#include "dcmtk/dcmiod/modgeneralstudy.h"
#include "dcmtk/dcmiod/modmultiframedimension.h"
#include "dcmtk/dcmiod/modmultiframefg.h"
#include "dcmtk/dcmiod/modpatient.h"
#include "dcmtk/dcmiod/modpatientstudy.h"
#include "dcmtk/dcmiod/modsopcommon.h"
#include "dcmtk/dcmiod/modimagepixel.h"
#include "dcmtk/dcmiod/modfloatingpointimagepixel.h"
#include "dcmtk/dcmpmap/dpmmodparametricmapimage.h"
#include "dcmtk/dcmpmap/dpmmodparametricmapseries.h"
#include "dcmtk/dcmpmap/dpmdef.h"
/** Class for managing the Parametric Map IOD attributes. Template parameter defines the type of pixel data
* to use: Unsigned or signed 16 bit integer, or 32 bit floating point, or 64 bit floating point data.
*/
class DCMTK_DCMPMAP_EXPORT DPMParametricMapBase
: public DcmIODImage
<
IODImagePixelModule<Uint16>,
IODImagePixelModule<Sint16>,
IODFloatingPointImagePixelModule,
IODDoubleFloatingPointImagePixelModule
>
{
public:
/** Virtual Destructor
*/
virtual ~DPMParametricMapBase();
// -------------------- loading and saving ---------------------
/** Save current object to given filename
* @param filename The file to write to
* @param writeXfer The transfer syntax to be used
* @return EC_Normal if writing was successful, error otherwise.
*/
virtual OFCondition saveFile(const OFString& filename,
const E_TransferSyntax writeXfer = EXS_LittleEndianExplicit);
/** Write current object to given item
* @param dataset The item to write to
* @return EC_Normal if writing was successful, error otherwise.
*/
OFCondition writeDataset(DcmItem& dataset);
/** Perform some basic checking. This method is also invoked when
* writing the object to a DICOM dataset or file.
* @return OFTrue, if no errors were found, OFFalse otherwise.
*/
virtual OFBool check();
/** Get access to functional groups. This is meant for reading data from
* functional groups that are not actively managed, i.e.\ made accessible by
* DcmSegmentation. In rare cases, however, it makes sense to access it
* for writing too, e.g.\ in order to add Stacks; use with care!
* @return Reference to the functional groups
*/
virtual FGInterface& getFunctionalGroups();
/** Get Patient Module
* @return a reference to the IOD Patient Module
*/
virtual IODPatientModule& getIODPatientModule();
/** Get General Study Module
* @return a reference to the IOD General Study Module
*/
virtual IODGeneralStudyModule& getIODGeneralStudyModule();
/** Get Patient Study Module
* @return a reference to the IOD Patient Study Module
*/
virtual IODPatientStudyModule& getIODPatientStudyModule();
/** Get General Series Module
* @return a reference to the IOD General Series Module
*/
virtual IODGeneralSeriesModule& getIODGeneralSeriesModule();
/** Get Parametric Map Series Module
* @return a reference to the Parametric Map Series Module
*/
virtual DPMParametricMapSeriesModule& getDPMParametricMapSeriesModule();
/** Get General Equipment Module
* @return a reference to the General Equipment Module
*/
virtual IODGeneralEquipmentModule& getIODGeneralEquipmentModule();
/** Get Enhanced General Equipment Module
* @return a reference to the Enhanced General Equipment Module
*/
virtual IODEnhGeneralEquipmentModule& getIODEnhGeneralEquipmentModule();
/** Get General Image Module
* @return a reference to the General Image Module
*/
virtual IODGeneralImageModule& getIODGeneralImageModule();
/** Get Parametric Map Image Module
* @return a reference to the Parametric Map Image Module
*/
virtual DPMParametricMapImageModule& getDPMParametricMapImageModule();
/** Get Multi-frame Functional Groups Module
* @return a reference to the Multi-frame Functional Groups Module
*/
virtual IODMultiFrameFGModule& getIODMultiFrameFGModule();
/** Get Multi-frame Dimension Module
* @return a reference to the Multi-frame Dimension Module
*/
virtual IODMultiframeDimensionModule& getIODMultiframeDimensionModule();
/** Get Acquisition Context Module
* @return a reference to the Acquisition Context Module
*/
virtual IODAcquisitionContextModule& getIODAcquisitionContextModule();
/** Get Common Instance Reference Module
* @return a reference to the Common Instance Reference Module
*/
virtual IODCommonInstanceReferenceModule& getIODCommonInstanceReferenceModule();
/** Get SOP Common Module
* @return a reference to the SOP Common Module
*/
virtual IODSOPCommonModule& getIODSOPCommonModule();
protected:
/** Constructor; not public since object should be create via factory
* method in derived class.
*/
DPMParametricMapBase();
/** Constructor; not public since object should be create via factory
* method in derived class.
*/
template<typename ImagePixel>
DPMParametricMapBase(OFin_place_type_t(ImagePixel));
/** Read Parametric Map 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 Parametric Map'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);
/** Clear (removes) all attributes handled by the modules of this IOD.
* IOD Rules are not reset.
*/
virtual void clearData();
/** Loads file
* @param dcmff The file format to load into
* @param filename The filename of the file to load
* @param dset Pointer to dataset after loading
* @return EC_Normal if loading was successful, error otherwise
*/
static OFCondition loadFile(DcmFileFormat& dcmff,
const OFString& filename,
DcmDataset*& dset);
/// Multi-frame Functional Groups high level interface
FGInterface m_FGInterface;
/// Parametric Map Series Module
DPMParametricMapSeriesModule m_DPMParametricMapSeriesModule;
/// Enhanced General Equipment Module
IODEnhGeneralEquipmentModule m_IODEnhGeneralEquipmentModule;
/// Parametric Map Image Module
DPMParametricMapImageModule m_DPMParametricMapImageModule;
/// Multi-frame Functional Groups Module
IODMultiFrameFGModule m_IODMultiFrameFGModule;
/// Multi-frame Dimension Module
IODMultiframeDimensionModule m_IODMultiframeDimensionModule;
/// Acquisition Context Module
IODAcquisitionContextModule m_IODAcquisitionContextModule;
/// Common Instance Reference Module
IODCommonInstanceReferenceModule m_IODCommonInstanceReferenceModule;
};
#endif // DPMPARAMETRICMAPBASE_H
|