X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcpPlugins%2FPlugins%2FImageWriter.h;h=4fc04f5a34545eb862e2093c1ad6077d6fa580e3;hb=eb0114f00af5dea973ae7b7e412f4db7514f9433;hp=78f00efc0985c3da4772dcff57e99acc12dd9328;hpb=cf8ebcdb1e31f332e74569b2be5dfb5f5100df07;p=cpPlugins.git diff --git a/lib/cpPlugins/Plugins/ImageWriter.h b/lib/cpPlugins/Plugins/ImageWriter.h index 78f00ef..4fc04f5 100644 --- a/lib/cpPlugins/Plugins/ImageWriter.h +++ b/lib/cpPlugins/Plugins/ImageWriter.h @@ -1,8 +1,8 @@ #ifndef __CPPLUGINS__PLUGINS__IMAGEWRITER__H__ #define __CPPLUGINS__PLUGINS__IMAGEWRITER__H__ -#include -#include +#include +#include namespace cpPlugins { @@ -10,37 +10,36 @@ 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: + itkNewMacro( Self ); + itkTypeMacro( ImageWriter, cpPluginsInterfaceImageSink ); + + protected: ImageWriter( ); virtual ~ImageWriter( ); - virtual std::string GetClassName( ) const; - - protected: virtual std::string _GenerateData( ); - template< unsigned int D > - std::string _GenerateData0( ); - - template< class P, unsigned int D > - std::string _GenerateData1( ); + template< class I > + inline std::string _RealGD( itk::DataObject* image ); - 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