void SetViewCoords( float x, float y );
virtual void Modified( ) const cpPlugins_OVERRIDE;
- virtual itk::ModifiedTimeType GetMTime( ) const cpPlugins_OVERRIDE;
virtual void SetITK( itk::LightObject* o );
virtual void SetVTK( vtkObjectBase* o );
template< class _TType = itk::LightObject >
- inline _TType* GetITK( );
+ inline _TType* GetITK( )
+ {
+ if( this->m_ITK.GetPointer( ) == NULL )
+ this->_UpdateITK( );
+ return( dynamic_cast< _TType* >( this->m_ITK.GetPointer( ) ) );
+ }
template< class _TType = itk::LightObject >
- inline const _TType* GetITK( ) const;
+ inline const _TType* GetITK( ) const
+ {
+ if( this->m_ITK.GetPointer( ) == NULL )
+ this->_UpdateITK( );
+ return(
+ dynamic_cast< const _TType* >( this->m_ITK.GetPointer( ) )
+ );
+ }
template< class _TType = vtkObjectBase >
- inline _TType* GetVTK( );
+ inline _TType* GetVTK( )
+ {
+ if( this->m_VTK.GetPointer( ) == NULL )
+ this->_UpdateVTK( );
+ return( dynamic_cast< _TType* >( this->m_VTK.GetPointer( ) ) );
+ }
template< class _TType = vtkObjectBase >
- inline const _TType* GetVTK( ) const;
+ inline const _TType* GetVTK( ) const
+ {
+ if( this->m_VTK.GetPointer( ) == NULL )
+ this->_UpdateVTK( );
+ return(
+ dynamic_cast< const _TType* >( this->m_VTK.GetPointer( ) )
+ );
+ }
protected:
Object( );
virtual ~Object( );
+ virtual void _UpdateITK( ) const;
+ virtual void _UpdateVTK( ) const;
+
private:
// Purposely not implemented
Object( const Self& );
} // ecapseman
-#include <cpPlugins/BaseObjects/Object.hxx>
-
#endif // __cpPlugins__BaseObjects__Object__h__
// eof - $RCSfile$