X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcpPlugins%2FPlugins%2FMeshReader.h;h=bfd94264acab27dc6b5450dae41a61cbf843519b;hb=cb833d2fface96e020fe91584d2206860a8174ee;hp=968c4ac5ae536c10291f4f719780aa54308f7487;hpb=d97da4c5884307e660b0ed9135f87cffff174b93;p=cpPlugins.git diff --git a/lib/cpPlugins/Plugins/MeshReader.h b/lib/cpPlugins/Plugins/MeshReader.h index 968c4ac..bfd9426 100644 --- a/lib/cpPlugins/Plugins/MeshReader.h +++ b/lib/cpPlugins/Plugins/MeshReader.h @@ -2,7 +2,7 @@ #define __CPPLUGINS__PLUGINS__MESHREADER__H__ #include -#include +#include #include namespace cpPlugins @@ -12,22 +12,28 @@ namespace cpPlugins /** */ class cpPlugins_EXPORT MeshReader - : public cpPlugins::Interface::SourceObject + : public cpPlugins::Interface::MeshSource { public: - typedef MeshReader Self; - typedef cpPlugins::Interface::SourceObject Superclass; + typedef MeshReader Self; + typedef cpPlugins::Interface::MeshSource Superclass; + typedef itk::SmartPointer< Self > Pointer; + typedef itk::SmartPointer< const Self > ConstPointer; typedef Superclass::TParameter TParameter; typedef Superclass::TParameters TParameters; public: - MeshReader( ); - virtual ~MeshReader( ); + itkNewMacro( Self ); + itkTypeMacro( MeshReader, cpPluginsInterfaceMeshSource ); + public: virtual std::string GetClassName( ) const; protected: + MeshReader( ); + virtual ~MeshReader( ); + virtual std::string _GenerateData( ); template< unsigned int D > @@ -36,12 +42,17 @@ namespace cpPlugins template< class P, unsigned int D > std::string _GD1( ); - protected: - itk::ProcessObject::Pointer m_Reader; + private: + // Purposely not implemented + MeshReader( const Self& ); + Self& operator=( const Self& ); }; // --------------------------------------------------------------------- - PLUMA_INHERIT_PROVIDER( MeshReader, cpPlugins::Interface::Object ); + PLUMA_INHERIT_PROVIDER_CPPLUGINS( + MeshReader, + cpPlugins::Interface::Object + ); } // ecapseman