Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
|
#include <mitkUSDeviceReaderXML.h>
Classes | |
struct | USDeviceConfigData_ |
Public Types | |
typedef struct mitk::USDeviceReaderXML::USDeviceConfigData_ | USDeviceConfigData |
![]() | |
enum | ConfidenceLevel { Unsupported, PartiallySupported, Supported } |
A confidence level describing the confidence of the reader or writer in handling the given data. More... | |
typedef std::map< std::string, us::Any > | Options |
Options for reading or writing data. More... | |
typedef mitk::MessageAbstractDelegate1< float > | ProgressCallback |
Public Member Functions | |
USDeviceReaderXML () | |
~USDeviceReaderXML () override | |
std::vector< itk::SmartPointer< BaseData > > | Read () override |
Reads a path or stream and creates a list of BaseData objects. More... | |
bool | ReadUltrasoundDeviceConfiguration () |
void | SetFilename (std::string filename) |
USDeviceConfigData & | GetUSDeviceConfigData () |
![]() | |
void | SetInput (const std::string &location) override |
Set the input location. More... | |
void | SetInput (const std::string &location, std::istream *is) override |
Set an input stream to read from. More... | |
std::string | GetInputLocation () const override |
Get the current input location. More... | |
std::istream * | GetInputStream () const override |
Get the input stream. More... | |
MimeType | GetRegisteredMimeType () const |
DataStorage::SetOfObjects::Pointer | Read (mitk::DataStorage &ds) override |
Reads the specified file or input stream, loading its contents into the provided DataStorage. More... | |
ConfidenceLevel | GetConfidenceLevel () const override |
The confidence level of the reader or writer implementation. More... | |
Options | GetOptions () const override |
returns a list of the supported options More... | |
us::Any | GetOption (const std::string &name) const override |
void | SetOptions (const Options &options) override |
void | SetOption (const std::string &name, const us::Any &value) override |
void | AddProgressCallback (const ProgressCallback &callback) override |
void | RemoveProgressCallback (const ProgressCallback &callback) override |
us::ServiceRegistration< IFileReader > | RegisterService (us::ModuleContext *context=us::GetModuleContext()) |
void | UnregisterService () |
std::vector< std::string > | GetReadFiles () override |
![]() | |
~IFileReader () override | |
virtual | ~IFileReader () |
![]() | |
virtual | ~IFileIO () |
Protected Member Functions | |
USDeviceReaderXML (const USDeviceReaderXML &other) | |
mitk::USDeviceReaderXML * | Clone () const override |
void | ExtractAttributeInformationOfUltrasoundDeviceTag (TiXmlElement *element) |
Extracts all stored attribute information of the ULTRASOUNDDEVICE-Tag. More... | |
void | ExtractAttributeInformationOfGeneralSettingsTag (TiXmlElement *element) |
Extracts all stored attribute information of the GENERALSETTINGS-Tag. More... | |
void | ExtractProbe (TiXmlElement *element) |
Extracts all stored information of a single ultrasound probe. More... | |
![]() | |
AbstractFileReader () | |
~AbstractFileReader () override | |
AbstractFileReader (const AbstractFileReader &other) | |
AbstractFileReader (const CustomMimeType &mimeType, const std::string &description) | |
virtual us::ServiceProperties | GetServiceProperties () const |
virtual us::ServiceRegistration< CustomMimeType > | RegisterMimeType (us::ModuleContext *context) |
void | SetMimeType (const CustomMimeType &mimeType) |
const CustomMimeType * | GetMimeType () const |
void | SetMimeTypePrefix (const std::string &prefix) |
std::string | GetMimeTypePrefix () const |
void | SetDescription (const std::string &description) |
std::string | GetDescription () const |
void | SetDefaultOptions (const Options &defaultOptions) |
Options | GetDefaultOptions () const |
void | SetRanking (int ranking) |
Set the service ranking for this file reader. More... | |
int | GetRanking () const |
std::string | GetLocalFileName () const |
Get a local file name for reading. More... | |
virtual void | SetDefaultDataNodeProperties (DataNode *node, const std::string &filePath) |
Additional Inherited Members | |
![]() | |
static std::string | PROP_DESCRIPTION () |
Service property name for a description. More... | |
static std::string | PROP_MIMETYPE () |
Service property name for the mime-type associated with this file writer. More... | |
![]() | |
std::vector< std::string > | m_ReadFiles |
Definition at line 27 of file mitkUSDeviceReaderXML.h.
typedef struct mitk::USDeviceReaderXML::USDeviceConfigData_ mitk::USDeviceReaderXML::USDeviceConfigData |
mitk::USDeviceReaderXML::USDeviceReaderXML | ( | ) |
Definition at line 26 of file mitkUSDeviceReaderXML.cpp.
References mitk::AbstractFileReader::RegisterService().
Referenced by Clone().
|
override |
Definition at line 33 of file mitkUSDeviceReaderXML.cpp.
|
protected |
Definition at line 42 of file mitkUSDeviceReaderXML.cpp.
|
overrideprotectedvirtual |
Implements mitk::AbstractFileReader.
Definition at line 46 of file mitkUSDeviceReaderXML.cpp.
References USDeviceReaderXML().
|
protected |
Extracts all stored attribute information of the GENERALSETTINGS-Tag.
Definition at line 139 of file mitkUSDeviceReaderXML.cpp.
References ATTR_FILEPATH, ATTR_GREYSCALE, ATTR_OPENCVPORT, ATTR_RESOLUTIONHEIGHT, ATTR_RESOLUTIONOVERRIDE, ATTR_RESOLUTIONWIDTH, ATTR_SOURCEID, mitk::USDeviceReaderXML::USDeviceConfigData_::filepathVideoSource, mitk::USDeviceReaderXML::USDeviceConfigData_::opencvPort, mitk::USDeviceReaderXML::USDeviceConfigData_::resolutionHeight, mitk::USDeviceReaderXML::USDeviceConfigData_::resolutionWidth, mitk::USDeviceReaderXML::USDeviceConfigData_::sourceID, mitk::USDeviceReaderXML::USDeviceConfigData_::useGreyscale, and mitk::USDeviceReaderXML::USDeviceConfigData_::useResolutionOverride.
Referenced by ReadUltrasoundDeviceConfiguration().
|
protected |
Extracts all stored attribute information of the ULTRASOUNDDEVICE-Tag.
Definition at line 125 of file mitkUSDeviceReaderXML.cpp.
References ATTR_COMMENT, ATTR_FILEVERS, ATTR_HOST, ATTR_IMAGESTREAMS, ATTR_MANUFACTURER, ATTR_MODEL, ATTR_NAME, ATTR_PORT, ATTR_SERVER, ATTR_TYPE, mitk::USDeviceReaderXML::USDeviceConfigData_::comment, mitk::USDeviceReaderXML::USDeviceConfigData_::deviceName, mitk::USDeviceReaderXML::USDeviceConfigData_::deviceType, mitk::USDeviceReaderXML::USDeviceConfigData_::fileversion, mitk::USDeviceReaderXML::USDeviceConfigData_::host, mitk::USDeviceReaderXML::USDeviceConfigData_::manufacturer, mitk::USDeviceReaderXML::USDeviceConfigData_::model, mitk::USDeviceReaderXML::USDeviceConfigData_::numberOfImageStreams, mitk::USDeviceReaderXML::USDeviceConfigData_::port, and mitk::USDeviceReaderXML::USDeviceConfigData_::server.
Referenced by ReadUltrasoundDeviceConfiguration().
|
protected |
Extracts all stored information of a single ultrasound probe.
Definition at line 150 of file mitkUSDeviceReaderXML.cpp.
References ATTR_BOTTOM, ATTR_DEPTH, ATTR_LEFT, ATTR_NAME, ATTR_RIGHT, ATTR_TOP, ATTR_X, ATTR_Y, MITK_ERROR, mitk::USProbe::New(), mitk::USDeviceReaderXML::USDeviceConfigData_::probes, TAG_CROPPING, TAG_DEPTH, TAG_DEPTHS, and TAG_SPACING.
Referenced by ReadUltrasoundDeviceConfiguration().
mitk::USDeviceReaderXML::USDeviceConfigData & mitk::USDeviceReaderXML::GetUSDeviceConfigData | ( | ) |
Definition at line 37 of file mitkUSDeviceReaderXML.cpp.
Referenced by QmitkUSNewVideoDeviceWidget::OnLoadConfigurationButtonClicked().
|
overridevirtual |
Reads a path or stream and creates a list of BaseData objects.
This method must be implemented for each specific reader. Call GetInputStream() first and check for a non-null stream to read from. If the input stream is nullptr
, use GetInputLocation() to read from a local file-system path.
If the reader cannot use streams directly, use GetLocalFileName() instead.
mitk::Exception |
Implements mitk::AbstractFileReader.
Definition at line 54 of file mitkUSDeviceReaderXML.cpp.
References MITK_WARN.
bool mitk::USDeviceReaderXML::ReadUltrasoundDeviceConfiguration | ( | ) |
Definition at line 62 of file mitkUSDeviceReaderXML.cpp.
References ExtractAttributeInformationOfGeneralSettingsTag(), ExtractAttributeInformationOfUltrasoundDeviceTag(), ExtractProbe(), MITK_ERROR, MITK_INFO, MITK_WARN, mitk::USProbe::New(), mitk::USDeviceReaderXML::USDeviceConfigData_::probes, TAG_GENERALSETTINGS, TAG_PROBE, TAG_PROBES, and TAG_ULTRASOUNDDEVICE.
Referenced by QmitkUSNewVideoDeviceWidget::OnLoadConfigurationButtonClicked().
void mitk::USDeviceReaderXML::SetFilename | ( | std::string | filename | ) |
Definition at line 120 of file mitkUSDeviceReaderXML.cpp.
Referenced by QmitkUSNewVideoDeviceWidget::OnLoadConfigurationButtonClicked().