#ifndef __CPPLUGINS__PLUGINS__IMAGEWRITER__H__
#define __CPPLUGINS__PLUGINS__IMAGEWRITER__H__
-#include <cpPlugins/Interface/SourceObject.h>
+#include <cpPlugins/Plugins/cpPlugins_Export.h>
+#include <cpPlugins/Interface/SinkObject.h>
+#include <itkProcessObject.h>
namespace cpPlugins
{
{
/**
*/
- class ImageWriter
- : public cpPlugins::Interface::SourceObject
+ class cpPlugins_EXPORT ImageWriter
+ : public cpPlugins::Interface::SinkObject
{
public:
- typedef ImageWriter Self;
- typedef cpPlugins::Interface::SourceObject Superclass;
+ typedef ImageWriter Self;
+ typedef cpPlugins::Interface::SinkObject Superclass;
typedef Superclass::TParameter TParameter;
typedef Superclass::TParameters TParameters;
virtual ~ImageWriter( );
virtual std::string GetClassName( ) const;
- virtual bool Update( );
+
+ protected:
+ virtual std::string _GenerateData( );
+
+ template< unsigned int D >
+ std::string _GD0( );
+
+ template< class P, unsigned int D >
+ std::string _GD1( );
+
+ protected:
+ itk::ProcessObject::Pointer m_Writer;
};
// ---------------------------------------------------------------------