X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=lib%2FcpPlugins%2FInterface%2FDataObject.h;h=05b70239dc06bda7ff7ac5e7451bbca89f050b95;hb=de874ea850042e77a99a456188f423c8df2e374f;hp=3347b64d1ad4312784056b01bb1b838a5239f10e;hpb=d1d816d1eaf980d5cd266798b8f7a0bbb089a383;p=cpPlugins.git diff --git a/lib/cpPlugins/Interface/DataObject.h b/lib/cpPlugins/Interface/DataObject.h index 3347b64..05b7023 100644 --- a/lib/cpPlugins/Interface/DataObject.h +++ b/lib/cpPlugins/Interface/DataObject.h @@ -1,11 +1,9 @@ #ifndef __CPPLUGINS__INTERFACE__DATAOBJECT__H__ #define __CPPLUGINS__INTERFACE__DATAOBJECT__H__ -#include #include #include - #include #include @@ -13,6 +11,9 @@ namespace cpPlugins { namespace Interface { + // Some forward declarations + class ProcessObject; + /** */ class cpPlugins_Interface_EXPORT DataObject @@ -25,12 +26,14 @@ namespace cpPlugins typedef itk::SmartPointer< const Self > ConstPointer; public: + itkNewMacro( Self ); itkTypeMacro( DataObject, Object ); + cpPlugins_Id_Macro( DataObject, BasicObject ); public: - Object* GetSource( ); - const Object* GetSource( ) const; - void SetSource( Object* src ); + ProcessObject* GetSource( ); + const ProcessObject* GetSource( ) const; + void SetSource( ProcessObject* src ); void DisconnectPipeline( ); @@ -58,7 +61,7 @@ namespace cpPlugins protected: itk::Object::Pointer m_ITKObject; vtkSmartPointer< vtkObject > m_VTKObject; - Object::Pointer m_Source; + ProcessObject* m_Source; }; } // ecapseman