#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>
+#include <itkProcessObject.h>
+
class vtkImageData;
+// -------------------------------------------------------------------------
namespace cpPlugins
{
namespace Interface
: 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( );
+ itkNewMacro( Self );
+ itkTypeMacro( Image, DataObject );
+
+ public:
+ template< class I >
+ inline void SetITKImage( itk::DataObject* object );
+
+ template< class I >
+ inline I* GetITKImage( );
- virtual std::string GetClassName( ) const;
- virtual void SetDataObject( itk::DataObject* dobj );
+ template< class I >
+ inline const I* GetITKImage( ) const;
- vtkImageData* GetVTKImageData( ) const;
- void UpdateVTKImageData( );
+ virtual void SetVTKImageData( vtkImageData* image );
+ virtual vtkImageData* GetVTKImageData( );
+ virtual const vtkImageData* GetVTKImageData( ) const;
protected:
- template< unsigned int D >
- void _ConnectToVTK_0( );
+ Image( );
+ virtual ~Image( );
template< class P, unsigned int D >
- void _ConnectToVTK_1( );
+ inline void _ITK_2_VTK( itk::DataObject* object );
+
+ private:
+ // Purposely not implemented
+ Image( const Self& );
+ Self& operator=( const Self& );
protected:
- itk::ProcessObject::Pointer m_Image2VTKImageData;
- vtkImageData* m_VTKImageData;
+ itk::ProcessObject::Pointer m_ITKvVTKConnection;
};
} // ecapseman
} // ecapseman
+#include <cpPlugins/Interface/Image.hxx>
+
#endif // __CPPLUGINS__INTERFACE__IMAGE__H__
// eof - $RCSfile$