X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcpExtensions%2FIO%2FMeshReader.h;h=af162931cb346ca6c9e92bf6b10b3476e6a03712;hb=f47059eb39b5c9eef5cd2ee1b6c013cd75eff97f;hp=94880a9644f67ed4f0065128a62e0eb9dc84a9d5;hpb=2361f4f97631e09d88d8a5510a369817dcaa19db;p=cpPlugins.git diff --git a/lib/cpExtensions/IO/MeshReader.h b/lib/cpExtensions/IO/MeshReader.h index 94880a9..af16293 100644 --- a/lib/cpExtensions/IO/MeshReader.h +++ b/lib/cpExtensions/IO/MeshReader.h @@ -5,57 +5,59 @@ #include namespace cpExtensions +{ + namespace IO { - namespace IO + /** + */ + template< typename M > + class MeshReader + : public itk::MeshSource< M > { - /** - */ - template< typename M > - class MeshReader - : public itk::MeshSource< M > - { - public: - typedef MeshReader Self; - typedef itk::MeshSource< M > Superclass; - typedef itk::SmartPointer< Self > Pointer; - typedef itk::SmartPointer< const Self > ConstPointer; + public: + typedef MeshReader Self; + typedef itk::MeshSource< M > Superclass; + typedef itk::SmartPointer< Self > Pointer; + typedef itk::SmartPointer< const Self > ConstPointer; - typedef M MeshType; + typedef M MeshType; - public: - itkNewMacro( Self ); - itkTypeMacro( MeshReader, itkMeshSource ); + public: + itkNewMacro( Self ); + itkTypeMacro( MeshReader, itkMeshSource ); - itkSetStringMacro( FileName ); - itkGetStringMacro( FileName ); + itkSetStringMacro( FileName ); + itkGetStringMacro( FileName ); - public: - virtual itk::ModifiedTimeType GetMTime( ) const; + public: + virtual itk::ModifiedTimeType GetMTime( ) const; - protected: - MeshReader( ); - virtual ~MeshReader( ); + protected: + MeshReader( ); + virtual ~MeshReader( ); - virtual void GenerateData( ); + virtual void GenerateData( ); - template< class R > - void _Read( ); + template< class R > + void _Read( ); - private: - // Purposely not implemented - MeshReader( const Self& ); - Self& operator=( const Self & ); + private: + // Purposely not implemented + MeshReader( const Self& ); + Self& operator=( const Self & ); - protected: - typename Superclass::Pointer m_Reader; - std::string m_FileName; - }; + protected: + typename Superclass::Pointer m_Reader; + std::string m_FileName; + }; - } // ecapseman + } // ecapseman } // ecapseman +#ifndef ITK_MANUAL_INSTANTIATION #include +#endif // ITK_MANUAL_INSTANTIATION #endif // __CPEXTENSIONS__IO__MESHREADER__H__