Developer documentation | Axl-2.5.1

axlVolumeDiscreteWriter.h
Go to the documentation of this file.
1 /* axlVolumeDiscreteWriter.h ---
2  *
3  * Author: Anais Ducoffe
4  * Copyright (C) 2013 - Anais Ducoffe, Inria.
5  */
6 
7 /* Commentary:
8  *
9  */
10 
11 /* Change log:
12  *
13  */
14 
15 #ifndef AXLVOLUMEDISCRETEWRITER_H
16 #define AXLVOLUMEDISCRETEWRITER_H
17 
19 
20 #include <vtkAssembly.h>
21 #include <vtkSmartPointer.h>
22 #include <vtkVersion.h>
23 #include <vtkImageData.h>
24 #include "axlVtkViewPluginExport.h"
25 
27 
28 // ///////////////////////////////////////////////////////////////////
29 // axlVolumeDiscreteWriter declaration
30 // ///////////////////////////////////////////////////////////////////
31 
33 {
34  Q_OBJECT
35 
36 public:
38 
39 public:
41 
42 
43 public:
44  QString identifier(void) const;
45  QString description(void) const;
46  QStringList handled(void) const;
47 
48  static bool registered(void);
49 
50 public:
51  bool accept(dtkAbstractData *data);
52  bool reject(dtkAbstractData *data);
53 
54  QDomElement write(QDomDocument *doc, dtkAbstractData *data);
55 
56 private :
57  QDomElement elementByWriter(axlAbstractDataWriter *axl_writer, QDomDocument *doc, dtkAbstractData *data);
58 };
59 
60 // /////////////////////////////////////////////////////////////////
61 // Instanciation function
62 // /////////////////////////////////////////////////////////////////
63 
64 AXLVTKVIEWPLUGIN_EXPORT dtkAbstractDataWriter *createaxlVolumeDiscreteWriter(void);
65 
66 #endif //AXLVOLUMEDISCRETEWRITER_H
AXLVTKVIEWPLUGIN_EXPORT dtkAbstractDataWriter * createaxlVolumeDiscreteWriter(void)
virtual bool reject(dtkAbstractData *data)=0
#define AXLVTKVIEWPLUGIN_EXPORT
virtual bool accept(dtkAbstractData *data)=0
virtual QDomElement write(QDomDocument *doc, dtkAbstractData *data)=0