Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitk::FileWriterSelector Class Reference

#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 ()
 
FileWriterSelectoroperator= (const FileWriterSelector &other)
 
bool IsEmpty () const
 
std::vector< ItemGet (const std::string &mimeType) const
 Get a sorted list of file writer info objects. More...
 
std::vector< ItemGet () 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< MimeTypeGetMimeTypes () const
 
void Swap (FileWriterSelector &fws)
 

Detailed Description

Definition at line 33 of file mitkFileWriterSelector.h.

Constructor & Destructor Documentation

mitk::FileWriterSelector::FileWriterSelector ( const FileWriterSelector other)

Definition at line 58 of file mitkFileWriterSelector.cpp.

mitk::FileWriterSelector::~FileWriterSelector ( )

Definition at line 171 of file mitkFileWriterSelector.cpp.

Member Function Documentation

std::vector< FileWriterSelector::Item > mitk::FileWriterSelector::Get ( const std::string &  mimeType) const

Get a sorted list of file writer info objects.

  1. Confidence level (ascending)
  2. File Writer service ranking (ascending)

This means the best matching item is at the back of the returned container.

Parameters
mimeType
Returns

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.

Returns
Ordered list of file writer items.

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
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().


The documentation for this class was generated from the following files: