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
qSlicerTablesReader.h
Go to the documentation of this file.
1/*==============================================================================
2
3 Program: 3D Slicer
4
5 Portions (c) Copyright 2015 Brigham and Women's Hospital (BWH) All Rights Reserved.
6
7 See COPYRIGHT.txt
8 or http://www.slicer.org/copyright/copyright.txt for details.
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15
16 This file was originally developed by Andras Lasso (PerkLab, Queen's
17 University) and Kevin Wang (Princess Margaret Hospital, Toronto) and was
18 supported through OCAIRO and the Applied Cancer Research Unit program of
19 Cancer Care Ontario.
20
21==============================================================================*/
22
23#ifndef qSlicerTablesReader_h
24#define qSlicerTablesReader_h
25
26// Slicer includes
27#include "qSlicerFileReader.h"
28
29class qSlicerTablesReaderPrivate;
31
32//-----------------------------------------------------------------------------
34 : public qSlicerFileReader
35{
36 Q_OBJECT
37public:
39 qSlicerTablesReader(QObject* parent = nullptr);
41 QObject* parent = nullptr);
43
46
47 QString description()const override;
48 IOFileType fileType()const override;
49 QStringList extensions()const override;
50
55 double canLoadFileConfidence(const QString& file)const override;
56
57 bool load(const IOProperties& properties) override;
58protected:
59 QScopedPointer<qSlicerTablesReaderPrivate> d_ptr;
60
61private:
62 Q_DECLARE_PRIVATE(qSlicerTablesReader);
63 Q_DISABLE_COPY(qSlicerTablesReader);
64};
65
66#endif
qSlicerFileReader(QObject *parent=nullptr)
QString IOFileType
Definition qSlicerIO.h:52
QVariantMap IOProperties
Definition qSlicerIO.h:53
bool load(const IOProperties &properties) override
Properties available: fileMode, multipleFiles, fileType.
vtkSlicerTablesLogic * logic() const
double canLoadFileConfidence(const QString &file) const override
QStringList extensions() const override
void setLogic(vtkSlicerTablesLogic *logic)
qSlicerTablesReader(vtkSlicerTablesLogic *logic, QObject *parent=nullptr)
QScopedPointer< qSlicerTablesReaderPrivate > d_ptr
IOFileType fileType() const override
Multiple readers can share the same file type.
QString description() const override
Unique name of the reader/writer.
~qSlicerTablesReader() override
qSlicerFileReader Superclass
qSlicerTablesReader(QObject *parent=nullptr)
Slicer logic class for double array manipulation This class manages the logic associated with reading...