]> Creatis software - cpPlugins.git/blob - lib/cpPlugins/Interface/Object.hxx
914d5caf81f846a890c1c8c281d41b1e7aea13c7
[cpPlugins.git] / lib / cpPlugins / Interface / Object.hxx
1 #ifndef __CPPLUGINS__INTERFACE__OBJECT__HXX__
2 #define __CPPLUGINS__INTERFACE__OBJECT__HXX__
3
4 // -------------------------------------------------------------------------
5 template< class T >
6 T* cpPlugins::Interface::Object::
7 GetITK( )
8 {
9   return( dynamic_cast< T* >( this->m_ITKObject.GetPointer( ) ) );
10 }
11
12 // -------------------------------------------------------------------------
13 template< class T >
14 const T* cpPlugins::Interface::Object::
15 GetITK( ) const
16 {
17   return( dynamic_cast< const T* >( this->m_ITKObject.GetPointer( ) ) );
18 }
19
20 // -------------------------------------------------------------------------
21 template< class T >
22 T* cpPlugins::Interface::Object::
23 GetVTK( )
24 {
25   return( dynamic_cast< T* >( this->m_VTKObject.GetPointer( ) ) );
26 }
27
28 // -------------------------------------------------------------------------
29 template< class T >
30 const T* cpPlugins::Interface::Object::
31 GetVTK( ) const
32 {
33   return( dynamic_cast< const T* >( this->m_VTKObject.GetPointer( ) ) );
34 }
35
36 #endif // __CPPLUGINS__INTERFACE__OBJECT__HXX__
37
38 // eof - $RCSfile$