Slicer  4.8
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 // SlicerQt includes
22 #include "qSlicerFileReader.h"
23 
24 class qSlicerMarkupsReaderPrivate;
26 
27 //----------------------------------------------------------------------------
30  : public qSlicerFileReader
31 {
32  Q_OBJECT
33 public:
35  qSlicerMarkupsReader(QObject* parent = 0);
36  qSlicerMarkupsReader(vtkSlicerMarkupsLogic* logic, QObject* parent = 0);
37  virtual ~qSlicerMarkupsReader();
38 
41 
42  virtual QString description()const;
43  virtual IOFileType fileType()const;
44  virtual QStringList extensions()const;
45 
46  virtual bool load(const IOProperties& properties);
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(QObject *parent=0)
virtual ~qSlicerMarkupsReader()
QScopedPointer< qSlicerMarkupsReaderPrivate > d_ptr
qSlicerFileReader Superclass
virtual IOFileType fileType() const
Multiple readers can share the same file type.
virtual bool load(const IOProperties &properties)
Properties availables : fileMode, multipleFiles, fileType.
vtkSlicerMarkupsLogic * markupsLogic() const
virtual QStringList extensions() const
virtual QString description() const
Unique name of the reader/writer.
QString IOFileType
Definition: qSlicerIO.h:50
void setMarkupsLogic(vtkSlicerMarkupsLogic *logic)