Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
#include <mitkFileReaderSelector.h>
Classes | |
class | Item |
Public Member Functions | |
FileReaderSelector (const FileReaderSelector &other) | |
FileReaderSelector (const std::string &path) | |
~FileReaderSelector () | |
FileReaderSelector & | operator= (const FileReaderSelector &other) |
bool | IsEmpty () const |
std::vector< MimeType > | GetMimeTypes () const |
std::vector< Item > | Get () const |
Get a sorted list of file reader items. More... | |
Item | Get (long id) const |
Item | GetDefault () const |
long | GetDefaultId () const |
Item | GetSelected () const |
long | GetSelectedId () const |
bool | Select (const Item &item) |
bool | Select (long id) |
void | Swap (FileReaderSelector &fws) |
Definition at line 33 of file mitkFileReaderSelector.h.
mitk::FileReaderSelector::FileReaderSelector | ( | const FileReaderSelector & | other | ) |
Definition at line 52 of file mitkFileReaderSelector.cpp.
mitk::FileReaderSelector::FileReaderSelector | ( | const std::string & | path | ) |
Definition at line 53 of file mitkFileReaderSelector.cpp.
References us::any_cast(), mitk::IFileIO::GetConfidenceLevel(), mitk::CoreServices::GetMimeTypeProvider(), mitk::IMimeTypeProvider::GetMimeTypesForFile(), MITK_WARN, us::ServiceConstants::SERVICE_ID(), mitk::IFileReader::SetInput(), mitk::IFileIO::Unsupported, and us::BadAnyCastException::what().
mitk::FileReaderSelector::~FileReaderSelector | ( | ) |
Definition at line 128 of file mitkFileReaderSelector.cpp.
std::vector< FileReaderSelector::Item > mitk::FileReaderSelector::Get | ( | ) | const |
Get a sorted list of file reader items.
This means the best matching item is at the back of the returned container.
Definition at line 137 of file mitkFileReaderSelector.cpp.
Referenced by GetDefault(), GetSelected(), and QmitkFileReaderOptionsDialog::QmitkFileReaderOptionsDialog().
FileReaderSelector::Item mitk::FileReaderSelector::Get | ( | long | id | ) | const |
Definition at line 150 of file mitkFileReaderSelector.cpp.
FileReaderSelector::Item mitk::FileReaderSelector::GetDefault | ( | ) | const |
Definition at line 160 of file mitkFileReaderSelector.cpp.
References Get().
long mitk::FileReaderSelector::GetDefaultId | ( | ) | const |
Definition at line 161 of file mitkFileReaderSelector.cpp.
std::vector< MimeType > mitk::FileReaderSelector::GetMimeTypes | ( | ) | const |
Definition at line 136 of file mitkFileReaderSelector.cpp.
FileReaderSelector::Item mitk::FileReaderSelector::GetSelected | ( | ) | const |
Definition at line 162 of file mitkFileReaderSelector.cpp.
References Get().
long mitk::FileReaderSelector::GetSelectedId | ( | ) | const |
Definition at line 163 of file mitkFileReaderSelector.cpp.
Referenced by QmitkFileReaderOptionsDialog::QmitkFileReaderOptionsDialog().
bool mitk::FileReaderSelector::IsEmpty | ( | ) | const |
Definition at line 135 of file mitkFileReaderSelector.cpp.
FileReaderSelector & mitk::FileReaderSelector::operator= | ( | const FileReaderSelector & | other | ) |
Definition at line 129 of file mitkFileReaderSelector.cpp.
bool mitk::FileReaderSelector::Select | ( | const Item & | item | ) |
Definition at line 164 of file mitkFileReaderSelector.cpp.
Referenced by QmitkFileReaderOptionsDialog::accept().
bool mitk::FileReaderSelector::Select | ( | long | id | ) |
Definition at line 165 of file mitkFileReaderSelector.cpp.
void mitk::FileReaderSelector::Swap | ( | FileReaderSelector & | fws | ) |
Definition at line 179 of file mitkFileReaderSelector.cpp.
References us::ExplicitlySharedDataPointer< T >::Swap().
Referenced by mitk::swap().