33 #include "dcmtk/config/osconfig.h" 35 #include "dcmtk/dcmdata/dcitem.h" 95 virtual DcmEVR
ident()
const;
119 virtual void print(STD_NAMESPACE ostream&out,
120 const size_t flags = 0,
122 const char *pixelFileName = NULL,
123 size_t *pixelCounter = NULL);
136 const E_EncodingType enctype);
143 virtual OFBool
canWriteXfer(
const E_TransferSyntax newXfer,
144 const E_TransferSyntax oldXfer = EXS_Unknown);
162 const E_TransferSyntax xfer = EXS_Unknown,
163 const E_GrpLenEncoding glenc = EGL_noChange,
164 const Uint32 maxReadLength = DCM_MaxReadLength);
174 const E_TransferSyntax oxfer,
175 const E_EncodingType enctype,
207 const E_TransferSyntax oxfer,
208 const E_EncodingType enctype,
210 const E_GrpLenEncoding glenc,
211 const E_PaddingEncoding padenc = EPD_noChange,
212 const Uint32 padlen = 0,
213 const Uint32 subPadlen = 0,
214 Uint32 instanceLength = 0);
225 const E_TransferSyntax oxfer,
226 const E_EncodingType enctype,
236 const size_t flags = 0);
250 const E_TransferSyntax readXfer = EXS_Unknown,
251 const E_GrpLenEncoding groupLength = EGL_noChange,
252 const Uint32 maxReadLength = DCM_MaxReadLength);
267 const E_TransferSyntax writeXfer = EXS_Unknown,
268 const E_EncodingType encodingType = EET_UndefinedLength,
269 const E_GrpLenEncoding groupLength = EGL_recalcGL,
270 const E_PaddingEncoding padEncoding = EPD_noChange,
271 const Uint32 padLength = 0,
272 const Uint32 subPadLength = 0);
a class representing a list of DICOM elements in which each element has a different tag and elements ...
DcmDataset()
default constructor
DcmDataset & operator=(const DcmDataset &obj)
assignment operator
E_TransferSyntax getOriginalXfer() const
return the transfer syntax in which this dataset was originally read.
abstract base class for codec representation parameter sets.
virtual DcmObject * clone() const
clone method
This class implements a buffering mechanism that is used when writing large elements that reside in f...
base class for output streams.
Abstract base class for most classes in module dcmdata.
virtual DcmEVR ident() const
get type identifier
virtual OFCondition clear()
clear (remove) attribute value
void removeAllButCurrentRepresentations()
removes all but the current representation and sets the original representation to current ...
virtual OFCondition writeSignatureFormat(DcmOutputStream &outStream, const E_TransferSyntax oxfer, const E_EncodingType enctype, DcmWriteCache *wcache)
special write method for creation of digital signatures
virtual void print(STD_NAMESPACE ostream &out, const size_t flags=0, const int level=0, const char *pixelFileName=NULL, size_t *pixelCounter=NULL)
print all elements of the dataset to a stream
virtual OFCondition write(DcmOutputStream &outStream, const E_TransferSyntax oxfer, const E_EncodingType enctype, DcmWriteCache *wcache)
write dataset to a stream
Uint32 calcElementLength(const E_TransferSyntax xfer, const E_EncodingType enctype)
calculate the length of this DICOM element when encoded with the given transfer syntax and the given ...
void removeAllButOriginalRepresentations()
removes all but the original representation in all pixel data elements
OFCondition chooseRepresentation(const E_TransferSyntax repType, const DcmRepresentationParameter *repParam)
select a specific representation (compressed or uncompressed) of the dataset and create the represent...
virtual OFCondition read(DcmInputStream &inStream, const E_TransferSyntax xfer=EXS_Unknown, const E_GrpLenEncoding glenc=EGL_noChange, const Uint32 maxReadLength=DCM_MaxReadLength)
This function reads the information of all attributes which are captured in the input stream and capt...
virtual OFCondition loadFile(const char *fileName, const E_TransferSyntax readXfer=EXS_Unknown, const E_GrpLenEncoding groupLength=EGL_noChange, const Uint32 maxReadLength=DCM_MaxReadLength)
load object from a DICOM file.
a class handling the DICOM dataset format (files without meta header)
OFBool hasRepresentation(const E_TransferSyntax repType, const DcmRepresentationParameter *repParam)
check if all PixelData elements in this dataset have a representation conforming to the given transfe...
virtual void removeInvalidGroups()
remove all elements with an invalid group number, i.e.
virtual OFCondition copyFrom(const DcmObject &rhs)
Virtual object copying.
virtual OFCondition writeXML(STD_NAMESPACE ostream &out, const size_t flags=0)
write object in XML format.
virtual ~DcmDataset()
destructor
virtual OFBool canWriteXfer(const E_TransferSyntax newXfer, const E_TransferSyntax oldXfer=EXS_Unknown)
check if this DICOM object can be encoded in the given transfer syntax.
E_TransferSyntax Xfer
current transfer syntax of the dataset
virtual OFCondition saveFile(const char *fileName, const E_TransferSyntax writeXfer=EXS_Unknown, const E_EncodingType encodingType=EET_UndefinedLength, const E_GrpLenEncoding groupLength=EGL_recalcGL, const E_PaddingEncoding padEncoding=EPD_noChange, const Uint32 padLength=0, const Uint32 subPadLength=0)
save object to a DICOM file.
General purpose class for condition codes.