#ifndef __CPPLUGINS__INTERFACE__IMAGE__H__
#define __CPPLUGINS__INTERFACE__IMAGE__H__
-#include <map>
-#include <string>
-#include <itkProcessObject.h>
-#include <cpPlugins/Interface/cpPlugins_Interface_Export.h>
#include <cpPlugins/Interface/DataObject.h>
-class vtkImageData;
+#include <itkProcessObject.h>
namespace cpPlugins
{
: public DataObject
{
public:
- typedef Image Self;
- typedef DataObject Superclass;
+ typedef Image Self;
+ typedef DataObject Superclass;
+ typedef itk::SmartPointer< Self > Pointer;
+ typedef itk::SmartPointer< const Self > ConstPointer;
public:
- Image( );
- virtual ~Image( );
-
- virtual std::string GetClassName( ) const;
- virtual void SetDataObject( itk::DataObject* dobj );
+ itkNewMacro( Self );
+ itkTypeMacro( Image, DataObject );
+ cpPlugins_Id_Macro( Image, DataObject );
- vtkImageData* GetVTKImageData( ) const;
+ public:
+ virtual void SetITK( itk::LightObject* o );
+ virtual void SetVTK( vtkObjectBase* o );
protected:
+ Image( );
+ virtual ~Image( );
+
template< unsigned int D >
- void _ConnectToVTK_0( );
+ inline void _ITK_2_VTK_0( itk::LightObject* o );
template< class P, unsigned int D >
- void _ConnectToVTK_1( );
+ inline void _ITK_2_VTK_1( itk::LightObject* o );
+
+ template< class I >
+ inline void _ITK_2_VTK_2( itk::LightObject* o );
+
+ private:
+ // Purposely not implemented
+ Image( const Self& );
+ Self& operator=( const Self& );
protected:
- itk::ProcessObject::Pointer m_Image2VTKImageData;
- vtkImageData* m_VTKImageData;
+ itk::ProcessObject::Pointer m_ITKvVTK;
};
} // ecapseman
} // ecapseman
+#include <cpPlugins/Interface/Image.hxx>
+
#endif // __CPPLUGINS__INTERFACE__IMAGE__H__
// eof - $RCSfile$