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