Slicer  4.13
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
qSlicerMarkupsReader.h
Go to the documentation of this file.
1 /*==============================================================================
2 
3  Program: 3D Slicer
4 
5  Copyright (c) BWH
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 ==============================================================================*/
17 
18 #ifndef __qSlicerMarkupsReader
19 #define __qSlicerMarkupsReader
20 
21 // Slicer includes
22 #include "qSlicerFileReader.h"
23 
24 class qSlicerMarkupsReaderPrivate;
26 
27 //----------------------------------------------------------------------------
30  : public qSlicerFileReader
31 {
32  Q_OBJECT
33 public:
35  qSlicerMarkupsReader(QObject* parent = nullptr);
36  qSlicerMarkupsReader(vtkSlicerMarkupsLogic* logic, QObject* parent = nullptr);
37  ~qSlicerMarkupsReader() override;
38 
41 
42  QString description()const override;
43  IOFileType fileType()const override;
44  QStringList extensions()const override;
45 
46  bool load(const IOProperties& properties) override;
47 
48 protected:
49  QScopedPointer<qSlicerMarkupsReaderPrivate> d_ptr;
50 
51 private:
52  Q_DECLARE_PRIVATE(qSlicerMarkupsReader);
53  Q_DISABLE_COPY(qSlicerMarkupsReader);
54 };
55 
56 #endif
~qSlicerMarkupsReader() override
IOFileType fileType() const override
Multiple readers can share the same file type.
QString description() const override
Unique name of the reader/writer.
QScopedPointer< qSlicerMarkupsReaderPrivate > d_ptr
qSlicerFileReader Superclass
qSlicerMarkupsReader(QObject *parent=nullptr)
vtkSlicerMarkupsLogic * markupsLogic() const
QStringList extensions() const override
QString IOFileType
Definition: qSlicerIO.h:52
void setMarkupsLogic(vtkSlicerMarkupsLogic *logic)
bool load(const IOProperties &properties) override
Properties availables : fileMode, multipleFiles, fileType.