MeVisLab Toolbox Reference
|
base class to wrap parameters to be used for reading/writing messages this is needed because the toolkits have different capabilities (merge needs file-names, offis seems to work with streams too etc.) More...
#include <DCMTree_IOParameter.h>
Public Types | |
enum | Flags { ReadPixelData = 1 , ReadPixelDataLazily = 2 , ReadPrivateTags = 4 , ConvertToUTF8 = 8 } |
Flags to be or'ed together for create(). More... | |
Public Member Functions | |
IOParameter () | |
ctor | |
IOParameter (const IOParameter &other) | |
copy - ctor | |
virtual std::string | filename () const =0 |
name of the file to be read or written | |
virtual std::string | pixelBufferFilename () const =0 |
name of the optional pixel buffer file containing the image data to be written | |
virtual int | getFlags () const =0 |
Returns the flags passed to the constructor. | |
virtual bool | readPixelData () const =0 |
true if the reader should read the binary pixel data | |
virtual bool | readPrivateTags () const =0 |
true if private tags should be read | |
virtual bool | convertToUTF8 () const =0 |
true if character should be converted to UTF8 | |
virtual | ~IOParameter () |
dtor | |
IOParameter & | operator= (const IOParameter &other) |
assignment operator (makes deep copy) | |
virtual void | setNumberOfToleratedBadTags (unsigned int numBadTags=5) |
set number of tolerated bad tags which are found in a file before skipping it as bad | |
virtual unsigned int | getNumberOfToleratedBadTags () const |
returns number of tolerated bad tags which are found in a file before skipping it as bad | |
Static Public Member Functions | |
static IOParameterPtr | create (const std::string &filename, bool readImage=true, bool readPrivateTags=true, bool convertToUTF8=true, const std::string &pixelBufferFilename=std::string()) |
abstract factory create method | |
static IOParameterPtr | create (const std::string &filename, int flags, const std::string &pixelBufferFilename=std::string()) |
abstract factory create method | |
Protected Member Functions | |
virtual IOParameterPtr | createConcrete (const std::string &filename, int flags, const std::string &pixelBufferFilename) const =0 |
concrete factory create method of the implementing prototype, called by the abstract one | |
Static Protected Member Functions | |
static Const_IOParameterPtr | prototype () |
the current concrete prototype | |
static void | setPrototype (Const_IOParameterPtr prototype) |
The concrete prototype is set by the implementing DLL. | |
base class to wrap parameters to be used for reading/writing messages this is needed because the toolkits have different capabilities (merge needs file-names, offis seems to work with streams too etc.)
the tags to be processed can be filtered by the additional members of this class processVR and processTagId shall be used by read/writer implementation to get the right decision (may be changed to a more practical rule-matching) order of 'rules' is
Definition at line 56 of file DCMTree_IOParameter.h.
Flags to be or'ed together for create().
Enumerator | |
---|---|
ReadPixelData | enables loading of pixel data as normal DCMTree::Tag with decompressed image data. |
ReadPixelDataLazily | enables lazy loading of PixelData as PixelDataTag. |
ReadPrivateTags | enables reading of private tags |
ConvertToUTF8 | if enabled, convert to character set to UTF8. |
Definition at line 66 of file DCMTree_IOParameter.h.
DCMTree::IOParameter::IOParameter | ( | ) |
ctor
|
explicit |
copy - ctor
|
virtual |
dtor
true if character should be converted to UTF8
|
static |
abstract factory create method
filename | - full path of the input DICOM file |
readImage | - if false, pixel data are skipped |
readPrivateTags | - if false, private tags are skipped |
convertToUTF8 | - if true, do character set conversion |
pixelBufferFilename | - full path of the optional pixel buffer file containing the image data to be written |
|
static |
abstract factory create method
filename | - full path of the input DICOM file |
flags | - combination of Flags enum |
pixelBufferFilename | - full path of the optional pixel buffer file containing the image data to be written |
|
protectedpure virtual |
concrete factory create method of the implementing prototype, called by the abstract one
filename | - full path of the input DICOM file |
flags | - or'ed Flags |
pixelBufferFilename | - full path of the optional pixel buffer file containing the image data to be written |
|
pure virtual |
name of the file to be read or written
Returns the flags passed to the constructor.
returns number of tolerated bad tags which are found in a file before skipping it as bad
IOParameter & DCMTree::IOParameter::operator= | ( | const IOParameter & | other | ) |
assignment operator (makes deep copy)
|
pure virtual |
name of the optional pixel buffer file containing the image data to be written
|
staticprotected |
the current concrete prototype
true if the reader should read the binary pixel data
true if private tags should be read
|
virtual |
set number of tolerated bad tags which are found in a file before skipping it as bad
|
staticprotected |
The concrete prototype is set by the implementing DLL.