// Disconnect input pipelines (VTK)
bool ok = this->_DisconnectVTK< vtkImageData >( );
- if( !ok ) ok = this->_DisconnectVTK< vtkUnstructuredGrid >( );
if( !ok ) ok = this->_DisconnectVTK< vtkPolyData >( );
// Unbind source
bool cpPlugins::BaseObjects::DataObject::
_DisconnectVTK( )
{
- _TType* v = this->GetVTK< _TType >( );
+ _TType* v = dynamic_cast< _TType* >( this->m_VTK.GetPointer( ) );
if( v != NULL )
{
vtkSmartPointer< _TType > d = vtkSmartPointer< _TType >::New( );