Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
#include <mitkFileWriterSelector.h>
Classes | |
class | Item |
Public Member Functions | |
FileWriterSelector (const FileWriterSelector &other) | |
FileWriterSelector (const BaseData *baseData, const std::string &destMimeType=std::string(), const std::string &path=std::string()) | |
~FileWriterSelector () | |
FileWriterSelector & | operator= (const FileWriterSelector &other) |
bool | IsEmpty () const |
std::vector< Item > | Get (const std::string &mimeType) const |
Get a sorted list of file writer info objects. More... | |
std::vector< Item > | Get () const |
Get a sorted list of file writer info objects. More... | |
Item | Get (long id) const |
Item | GetDefault () const |
long | GetDefaultId () const |
Item | GetSelected () const |
long | GetSelectedId () const |
bool | Select (const std::string &mimeType) |
bool | Select (const Item &item) |
bool | Select (long id) |
std::vector< MimeType > | GetMimeTypes () const |
void | Swap (FileWriterSelector &fws) |
Definition at line 33 of file mitkFileWriterSelector.h.
mitk::FileWriterSelector::FileWriterSelector | ( | const FileWriterSelector & | other | ) |
Definition at line 58 of file mitkFileWriterSelector.cpp.
mitk::FileWriterSelector::FileWriterSelector | ( | const BaseData * | baseData, |
const std::string & | destMimeType = std::string() , |
||
const std::string & | path = std::string() |
||
) |
Definition at line 59 of file mitkFileWriterSelector.cpp.
References us::any_cast(), mitk::BaseData::GetClassHierarchy(), mitk::IFileIO::GetConfidenceLevel(), mitk::IMimeTypeProvider::GetMimeTypeForName(), mitk::CoreServices::GetMimeTypeProvider(), mitk::IMimeTypeProvider::GetMimeTypesForFile(), mitk::FileWriterSelector::Item::GetReference(), mitk::FileWriterSelector::Item::GetServiceId(), mitk::MimeType::IsValid(), max(), MITK_WARN, mitk::IFileWriter::PROP_BASEDATA_TYPE(), mitk::IFileIO::PROP_MIMETYPE(), us::ServiceConstants::SERVICE_ID(), mitk::IFileWriter::SetInput(), mitk::IFileIO::Unsupported, and us::BadAnyCastException::what().
mitk::FileWriterSelector::~FileWriterSelector | ( | ) |
Definition at line 171 of file mitkFileWriterSelector.cpp.
std::vector< FileWriterSelector::Item > mitk::FileWriterSelector::Get | ( | const std::string & | mimeType | ) | const |
Get a sorted list of file writer info objects.
This means the best matching item is at the back of the returned container.
mimeType |
Definition at line 179 of file mitkFileWriterSelector.cpp.
Referenced by mitkPointSetWriterTest(), and QmitkFileWriterOptionsDialog::QmitkFileWriterOptionsDialog().
std::vector< FileWriterSelector::Item > mitk::FileWriterSelector::Get | ( | ) | const |
Get a sorted list of file writer info objects.
The returned objects will have the same mime-type as the currently selected item.
Definition at line 195 of file mitkFileWriterSelector.cpp.
References GetSelected().
Referenced by GetDefault(), GetSelected(), and Select().
FileWriterSelector::Item mitk::FileWriterSelector::Get | ( | long | id | ) | const |
Definition at line 200 of file mitkFileWriterSelector.cpp.
FileWriterSelector::Item mitk::FileWriterSelector::GetDefault | ( | ) | const |
Definition at line 210 of file mitkFileWriterSelector.cpp.
References Get().
long mitk::FileWriterSelector::GetDefaultId | ( | ) | const |
Definition at line 211 of file mitkFileWriterSelector.cpp.
std::vector< MimeType > mitk::FileWriterSelector::GetMimeTypes | ( | ) | const |
Definition at line 237 of file mitkFileWriterSelector.cpp.
FileWriterSelector::Item mitk::FileWriterSelector::GetSelected | ( | ) | const |
Definition at line 212 of file mitkFileWriterSelector.cpp.
References Get().
Referenced by Get(), and mitk::IOUtil::SaveInfo::operator<().
long mitk::FileWriterSelector::GetSelectedId | ( | ) | const |
Definition at line 213 of file mitkFileWriterSelector.cpp.
Referenced by QmitkFileWriterOptionsDialog::QmitkFileWriterOptionsDialog().
bool mitk::FileWriterSelector::IsEmpty | ( | ) | const |
Definition at line 178 of file mitkFileWriterSelector.cpp.
Referenced by mitk::IOUtil::Save().
FileWriterSelector & mitk::FileWriterSelector::operator= | ( | const FileWriterSelector & | other | ) |
Definition at line 172 of file mitkFileWriterSelector.cpp.
bool mitk::FileWriterSelector::Select | ( | const std::string & | mimeType | ) |
Definition at line 214 of file mitkFileWriterSelector.cpp.
References Get().
Referenced by QmitkFileWriterOptionsDialog::accept(), QmitkIOUtil::Save(), and Select().
bool mitk::FileWriterSelector::Select | ( | const Item & | item | ) |
Definition at line 222 of file mitkFileWriterSelector.cpp.
References Select().
bool mitk::FileWriterSelector::Select | ( | long | id | ) |
Definition at line 223 of file mitkFileWriterSelector.cpp.
void mitk::FileWriterSelector::Swap | ( | FileWriterSelector & | fws | ) |
Definition at line 245 of file mitkFileWriterSelector.cpp.
References us::ExplicitlySharedDataPointer< T >::Swap().
Referenced by mitk::swap().