X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcpPlugins%2FPlugins%2FImageWriter.h;h=4a02fe20f7c052955f830a71b94114063d0a6732;hb=e286ff49ea3582a5f4fad437dd133ec6c05c34dc;hp=78f00efc0985c3da4772dcff57e99acc12dd9328;hpb=cf8ebcdb1e31f332e74569b2be5dfb5f5100df07;p=cpPlugins.git diff --git a/lib/cpPlugins/Plugins/ImageWriter.h b/lib/cpPlugins/Plugins/ImageWriter.h index 78f00ef..4a02fe2 100644 --- a/lib/cpPlugins/Plugins/ImageWriter.h +++ b/lib/cpPlugins/Plugins/ImageWriter.h @@ -1,7 +1,8 @@ #ifndef __CPPLUGINS__PLUGINS__IMAGEWRITER__H__ #define __CPPLUGINS__PLUGINS__IMAGEWRITER__H__ -#include +#include +#include #include namespace cpPlugins @@ -10,37 +11,42 @@ namespace cpPlugins { /** */ - class ImageWriter - : public cpPlugins::Interface::SinkObject + class cpPlugins_EXPORT ImageWriter + : public cpPlugins::Interface::ImageSink { public: - typedef ImageWriter Self; - typedef cpPlugins::Interface::SinkObject Superclass; - - typedef Superclass::TParameter TParameter; - typedef Superclass::TParameters TParameters; + typedef ImageWriter Self; + typedef cpPlugins::Interface::ImageSink Superclass; + typedef itk::SmartPointer< Self > Pointer; + typedef itk::SmartPointer< const Self > ConstPointer; public: - ImageWriter( ); - virtual ~ImageWriter( ); + itkNewMacro( Self ); + itkTypeMacro( ImageWriter, cpPluginsInterfaceImageSink ); + public: virtual std::string GetClassName( ) const; protected: + ImageWriter( ); + virtual ~ImageWriter( ); + virtual std::string _GenerateData( ); template< unsigned int D > - std::string _GenerateData0( ); + std::string _GD0( ); template< class P, unsigned int D > - std::string _GenerateData1( ); + std::string _GD1( ); - protected: - itk::ProcessObject::Pointer m_Writer; + private: + // Purposely not implemented + ImageWriter( const Self& ); + Self& operator=( const Self& ); }; // --------------------------------------------------------------------- - PLUMA_INHERIT_PROVIDER( ImageWriter, cpPlugins::Interface::Object ); + CPPLUGINS_INHERIT_PROVIDER( ImageWriter ); } // ecapseman