X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcpPlugins%2FPlugins%2FImageWriter.h;h=1dcd98f5dbaf9534c2634a3160aca1b8cb10d95a;hb=cb833d2fface96e020fe91584d2206860a8174ee;hp=af80058b2081bc457600f4649bfdec067e292776;hpb=8c23766af88a29c3e830299dffc4b95d9fe61df9;p=cpPlugins.git diff --git a/lib/cpPlugins/Plugins/ImageWriter.h b/lib/cpPlugins/Plugins/ImageWriter.h index af80058..1dcd98f 100644 --- a/lib/cpPlugins/Plugins/ImageWriter.h +++ b/lib/cpPlugins/Plugins/ImageWriter.h @@ -1,7 +1,9 @@ #ifndef __CPPLUGINS__PLUGINS__IMAGEWRITER__H__ #define __CPPLUGINS__PLUGINS__IMAGEWRITER__H__ -#include +#include +#include +#include namespace cpPlugins { @@ -9,26 +11,48 @@ namespace cpPlugins { /** */ - class ImageWriter - : public cpPlugins::Interface::SourceObject + class cpPlugins_EXPORT ImageWriter + : public cpPlugins::Interface::ImageSink { public: - typedef ImageWriter Self; - typedef cpPlugins::Interface::SourceObject Superclass; + typedef ImageWriter Self; + typedef cpPlugins::Interface::ImageSink Superclass; + typedef itk::SmartPointer< Self > Pointer; + typedef itk::SmartPointer< const Self > ConstPointer; typedef Superclass::TParameter TParameter; typedef Superclass::TParameters TParameters; public: + itkNewMacro( Self ); + itkTypeMacro( ImageWriter, cpPluginsInterfaceImageSink ); + + public: + virtual std::string GetClassName( ) const; + + protected: ImageWriter( ); virtual ~ImageWriter( ); - virtual std::string GetClassName( ) const; - virtual bool Update( ); + virtual std::string _GenerateData( ); + + template< unsigned int D > + std::string _GD0( ); + + template< class P, unsigned int D > + std::string _GD1( ); + + private: + // Purposely not implemented + ImageWriter( const Self& ); + Self& operator=( const Self& ); }; // --------------------------------------------------------------------- - PLUMA_INHERIT_PROVIDER( ImageWriter, cpPlugins::Interface::Object ); + PLUMA_INHERIT_PROVIDER_CPPLUGINS( + ImageWriter, + cpPlugins::Interface::Object + ); } // ecapseman