X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcpPlugins%2FInterface%2FObject.h;fp=lib%2FcpPlugins%2FInterface%2FObject.h;h=0adfa8e9ab62a323ffd148eac2ef1e52f9c6060e;hb=273699a71c538630c162de031f0c95014319311d;hp=345be7f9cb8a9733bb2eb40636e9643e16c1b99c;hpb=19a9e1774044cc32c415ad38695800c1d169820d;p=cpPlugins.git diff --git a/lib/cpPlugins/Interface/Object.h b/lib/cpPlugins/Interface/Object.h index 345be7f..0adfa8e 100644 --- a/lib/cpPlugins/Interface/Object.h +++ b/lib/cpPlugins/Interface/Object.h @@ -4,9 +4,13 @@ #include #include + #include #include +#include +#include + namespace cpPlugins { namespace Interface @@ -36,11 +40,20 @@ namespace cpPlugins itkSetMacro( ViewY, float ); public: - inline float SetViewCoords( float x, float y ) - { - this->SetViewX( x ); - this->SetViewY( y ); - } + virtual void Modified( ) const; + float SetViewCoords( float x, float y ); + + template< class T > + inline T* GetITK( ); + + template< class T > + inline const T* GetITK( ) const; + + template< class T > + inline T* GetVTK( ); + + template< class T > + inline const T* GetVTK( ) const; protected: Object( ); @@ -52,14 +65,20 @@ namespace cpPlugins Self& operator=( const Self& ); protected: - std::string m_Name; - float m_ViewX, m_ViewY; + itk::LightObject::Pointer m_ITKObject; + vtkSmartPointer< vtkObjectBase > m_VTKObject; + std::string m_Name; + + float m_ViewX; + float m_ViewY; }; } // ecapseman } // ecapseman +#include + #endif // __CPPLUGINS__INTERFACE__OBJECT__H__ // eof - $RCSfile$