Slicer 5.9
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
qSlicerMarkupsReader Class Reference

#include <Modules/Loadable/Markups/qSlicerMarkupsReader.h>

Inheritance diagram for qSlicerMarkupsReader:
Collaboration diagram for qSlicerMarkupsReader:

Public Types

typedef qSlicerFileReader Superclass
 
- Public Types inherited from qSlicerFileReader
typedef qSlicerIO Superclass
 
- Public Types inherited from qSlicerIO
typedef QString IOFileType
 
typedef QVariantMap IOProperties
 
typedef QObject Superclass
 

Public Member Functions

double canLoadFileConfidence (const QString &file) const override
 
QString description () const override
 Unique name of the reader/writer.
 
QStringList extensions () const override
 
IOFileType fileType () const override
 Multiple readers can share the same file type.
 
bool load (const IOProperties &properties) override
 Properties available: fileMode, multipleFiles, fileType.
 
vtkSlicerMarkupsLogicmarkupsLogic () const
 
 qSlicerMarkupsReader (QObject *parent=nullptr)
 
 qSlicerMarkupsReader (vtkSlicerMarkupsLogic *logic, QObject *parent=nullptr)
 
void setMarkupsLogic (vtkSlicerMarkupsLogic *logic)
 
 ~qSlicerMarkupsReader () override
 
- Public Member Functions inherited from qSlicerFileReader
virtual Q_INVOKABLE bool canLoadFile (const QString &file) const
 
virtual Q_INVOKABLE bool examineFileInfoList (QFileInfoList &fileInfoList, QFileInfo &archetypeFileInfo, qSlicerIO::IOProperties &ioProperties) const
 
virtual Q_INVOKABLE QStringList loadedNodes () const
 
 qSlicerFileReader (QObject *parent=nullptr)
 
Q_INVOKABLE QStringList supportedNameFilters (const QString &fileName, int *longestExtensionMatchPtr=nullptr) const
 
 ~qSlicerFileReader () override
 
- Public Member Functions inherited from qSlicerIO
virtual Q_INVOKABLE qSlicerIOOptionsoptions () const
 
 qSlicerIO (QObject *parent=nullptr)
 
Q_INVOKABLE vtkMRMLMessageCollectionuserMessages () const
 Additional warning or error messages occurred during IO operation.
 
 ~qSlicerIO () override
 
- Public Member Functions inherited from qSlicerObject
vtkMRMLScenemrmlScene () const
 Return a pointer on the MRML scene.
 
 qSlicerObject ()
 
virtual void setMRMLScene (vtkMRMLScene *)
 Set the current MRML scene to the widget.
 
virtual ~qSlicerObject ()
 

Protected Attributes

QScopedPointer< qSlicerMarkupsReaderPrivate > d_ptr
 
- Protected Attributes inherited from qSlicerFileReader
QScopedPointer< qSlicerFileReaderPrivate > d_ptr
 
- Protected Attributes inherited from qSlicerIO
QScopedPointer< qSlicerIOPrivate > d_ptr
 
- Protected Attributes inherited from qSlicerObject
QScopedPointer< qSlicerObjectPrivate > d_ptr
 

Additional Inherited Members

- Protected Member Functions inherited from qSlicerFileReader
virtual void setLoadedNodes (const QStringList &nodes)
 

Detailed Description

Definition at line 28 of file qSlicerMarkupsReader.h.

Member Typedef Documentation

◆ Superclass

Constructor & Destructor Documentation

◆ qSlicerMarkupsReader() [1/2]

qSlicerMarkupsReader::qSlicerMarkupsReader ( QObject * parent = nullptr)

◆ qSlicerMarkupsReader() [2/2]

qSlicerMarkupsReader::qSlicerMarkupsReader ( vtkSlicerMarkupsLogic * logic,
QObject * parent = nullptr )

◆ ~qSlicerMarkupsReader()

qSlicerMarkupsReader::~qSlicerMarkupsReader ( )
override

Member Function Documentation

◆ canLoadFileConfidence()

double qSlicerMarkupsReader::canLoadFileConfidence ( const QString & file) const
overridevirtual

Returns a positive number (>0) if the reader can load this file. In case the file uses a generic file extension (such as .json) then the confidence value is adjusted based on the file content: if the file contains markups information then confidence is increased to 0.6, otherwise the confidence is decreased to 0.4.

Reimplemented from qSlicerFileReader.

◆ description()

QString qSlicerMarkupsReader::description ( ) const
overridevirtual

Unique name of the reader/writer.

Implements qSlicerIO.

◆ extensions()

QStringList qSlicerMarkupsReader::extensions ( ) const
overridevirtual

Return a list of the supported extensions. Please read QFileDialog::nameFilters for the allowed formats Example: "Image (*.jpg *.png *.tiff)", "Model (*.vtk)"

Reimplemented from qSlicerFileReader.

◆ fileType()

IOFileType qSlicerMarkupsReader::fileType ( ) const
overridevirtual

Multiple readers can share the same file type.

Implements qSlicerIO.

◆ load()

bool qSlicerMarkupsReader::load ( const IOProperties & properties)
overridevirtual

Properties available: fileMode, multipleFiles, fileType.

Reimplemented from qSlicerFileReader.

◆ markupsLogic()

vtkSlicerMarkupsLogic * qSlicerMarkupsReader::markupsLogic ( ) const

◆ setMarkupsLogic()

void qSlicerMarkupsReader::setMarkupsLogic ( vtkSlicerMarkupsLogic * logic)

Member Data Documentation

◆ d_ptr

QScopedPointer<qSlicerMarkupsReaderPrivate> qSlicerMarkupsReader::d_ptr
protected

Definition at line 54 of file qSlicerMarkupsReader.h.


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