Medical Imaging Interaction Toolkit  2018.4.99-c0f884b2
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 29 of file mitkFileWriterSelector.h.

Constructor & Destructor Documentation

◆ FileWriterSelector() [1/2]

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

Definition at line 54 of file mitkFileWriterSelector.cpp.

◆ FileWriterSelector() [2/2]

◆ ~FileWriterSelector()

mitk::FileWriterSelector::~FileWriterSelector ( )

Definition at line 167 of file mitkFileWriterSelector.cpp.

Member Function Documentation

◆ Get() [1/3]

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 175 of file mitkFileWriterSelector.cpp.

Referenced by mitkPointSetWriterTest(), and QmitkFileWriterOptionsDialog::QmitkFileWriterOptionsDialog().

◆ Get() [2/3]

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 191 of file mitkFileWriterSelector.cpp.

References GetSelected().

Referenced by GetDefault(), GetSelected(), and Select().

◆ Get() [3/3]

FileWriterSelector::Item mitk::FileWriterSelector::Get ( long  id) const

Definition at line 196 of file mitkFileWriterSelector.cpp.

◆ GetDefault()

FileWriterSelector::Item mitk::FileWriterSelector::GetDefault ( ) const

Definition at line 206 of file mitkFileWriterSelector.cpp.

References Get().

◆ GetDefaultId()

long mitk::FileWriterSelector::GetDefaultId ( ) const

Definition at line 207 of file mitkFileWriterSelector.cpp.

◆ GetMimeTypes()

std::vector< MimeType > mitk::FileWriterSelector::GetMimeTypes ( ) const

Definition at line 233 of file mitkFileWriterSelector.cpp.

Referenced by QmitkIOUtil::SavePointSetWithDialog().

◆ GetSelected()

FileWriterSelector::Item mitk::FileWriterSelector::GetSelected ( ) const

Definition at line 208 of file mitkFileWriterSelector.cpp.

References Get().

Referenced by Get(), and mitk::IOUtil::SaveInfo::operator<().

◆ GetSelectedId()

long mitk::FileWriterSelector::GetSelectedId ( ) const

◆ IsEmpty()

bool mitk::FileWriterSelector::IsEmpty ( ) const

Definition at line 174 of file mitkFileWriterSelector.cpp.

Referenced by mitk::IOUtil::Save().

◆ operator=()

FileWriterSelector & mitk::FileWriterSelector::operator= ( const FileWriterSelector other)

Definition at line 168 of file mitkFileWriterSelector.cpp.

◆ Select() [1/3]

bool mitk::FileWriterSelector::Select ( const std::string &  mimeType)

Definition at line 210 of file mitkFileWriterSelector.cpp.

References Get().

Referenced by QmitkFileWriterOptionsDialog::accept(), QmitkIOUtil::Save(), and Select().

◆ Select() [2/3]

bool mitk::FileWriterSelector::Select ( const Item item)

Definition at line 218 of file mitkFileWriterSelector.cpp.

References Select().

◆ Select() [3/3]

bool mitk::FileWriterSelector::Select ( long  id)

Definition at line 219 of file mitkFileWriterSelector.cpp.

◆ Swap()

void mitk::FileWriterSelector::Swap ( FileWriterSelector fws)

Definition at line 241 of file mitkFileWriterSelector.cpp.

References us::ExplicitlySharedDataPointer< T >::Swap().

Referenced by mitk::swap().


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