X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcpPlugins%2FInterface%2FDataObject.h;h=05b70239dc06bda7ff7ac5e7451bbca89f050b95;hb=de874ea850042e77a99a456188f423c8df2e374f;hp=c6a2129576e27fcb81cce76559092b06bef7ba34;hpb=cb833d2fface96e020fe91584d2206860a8174ee;p=cpPlugins.git diff --git a/lib/cpPlugins/Interface/DataObject.h b/lib/cpPlugins/Interface/DataObject.h index c6a2129..05b7023 100644 --- a/lib/cpPlugins/Interface/DataObject.h +++ b/lib/cpPlugins/Interface/DataObject.h @@ -1,16 +1,19 @@ #ifndef __CPPLUGINS__INTERFACE__DATAOBJECT__H__ #define __CPPLUGINS__INTERFACE__DATAOBJECT__H__ -#include -#include -#include -#include #include +#include +#include +#include + namespace cpPlugins { namespace Interface { + // Some forward declarations + class ProcessObject; + /** */ class cpPlugins_Interface_EXPORT DataObject @@ -25,19 +28,26 @@ namespace cpPlugins public: itkNewMacro( Self ); itkTypeMacro( DataObject, Object ); + cpPlugins_Id_Macro( DataObject, BasicObject ); public: - virtual std::string GetClassName( ) const; - virtual std::string GetClassType( ) const; + ProcessObject* GetSource( ); + const ProcessObject* GetSource( ) const; + void SetSource( ProcessObject* src ); - itk::DataObject* GetRealDataObject( ) const; - virtual void SetRealDataObject( itk::DataObject* dobj ); + void DisconnectPipeline( ); - Object* GetSource( ); - const Object* GetSource( ) const; - void SetSource( Object* src ); + template< class T > + inline T* GetITK( ); - void DisconnectPipeline( ); + template< class T > + inline const T* GetITK( ) const; + + template< class T > + inline T* GetVTK( ); + + template< class T > + inline const T* GetVTK( ) const; protected: DataObject( ); @@ -49,14 +59,17 @@ namespace cpPlugins Self& operator=( const Self& ); protected: - itk::DataObject::Pointer m_RealDataObject; - Object::Pointer m_Source; + itk::Object::Pointer m_ITKObject; + vtkSmartPointer< vtkObject > m_VTKObject; + ProcessObject* m_Source; }; } // ecapseman } // ecapseman +#include + #endif // __CPPLUGINS__INTERFACE__DATAOBJECT__H__ // eof - $RCSfile$