]> Creatis software - cpPlugins.git/blob - lib/cpPlugins/Plugins/IO/MeshReader.h
Widget integration (step 1/6)
[cpPlugins.git] / lib / cpPlugins / Plugins / IO / MeshReader.h
1 #ifndef __CPPLUGINS__PLUGINS__MESHREADER__H__
2 #define __CPPLUGINS__PLUGINS__MESHREADER__H__
3
4 #include <cpPlugins/IO/cpPluginsIO_Export.h>
5 #include <cpPlugins/Interface/BaseProcessObjects.h>
6
7 class vtkDataReader;
8
9 namespace cpPlugins
10 {
11   namespace IO
12   {
13     /**
14      */
15     class cpPluginsIO_EXPORT MeshReader
16       : public cpPlugins::Interface::MeshSource
17     {
18     public:
19       typedef MeshReader                       Self;
20       typedef cpPlugins::Interface::MeshSource Superclass;
21       typedef itk::SmartPointer< Self >        Pointer;
22       typedef itk::SmartPointer< const Self >  ConstPointer;
23
24     public:
25       itkNewMacro( Self );
26       itkTypeMacro( MeshReader, cpPluginsInterfaceMeshSource );
27
28     public:
29       virtual bool ExecConfigurationDialog( QWidget* parent );
30
31     protected:
32       MeshReader( );
33       virtual ~MeshReader( );
34
35       virtual std::string _GenerateData( );
36
37       template< unsigned int D >
38         std::string _GD0( );
39
40       template< class P, unsigned int D >
41         std::string _GD1( );
42
43     private:
44       // Purposely not implemented
45       MeshReader( const Self& );
46       Self& operator=( const Self& );
47
48     protected:
49       vtkDataReader* m_Reader;
50     };
51
52     // ---------------------------------------------------------------------
53     CPPLUGINS_INHERIT_PROVIDER( MeshReader );
54
55   } // ecapseman
56
57 } // ecapseman
58
59 #endif // __CPPLUGINS__PLUGINS__MESHREADER__H__
60
61 // eof - $RCSfile$