}
// -------------------------------------------------------------------------
-bool cpPlugins::Interface::Workspace::
+cpPlugins::Interface::Workspace::
+TFilter* cpPlugins::Interface::Workspace::
CreateFilter( const std::string& filter, const std::string& name )
{
if( this->m_Plugins == NULL )
- return( false );
+ return( NULL );
// Get or create new filter from name
if( !( this->m_Graph->HasVertexIndex( name ) ) )
TObject::Pointer o = f.GetPointer( );
this->m_Graph->SetVertex( name, o );
- return( true );
- }
- else
- return( false );
+
+ } // fi
+ return( f.GetPointer( ) );
}
else
- return( true );
+ return( this->GetFilter( name ) );
}
// -------------------------------------------------------------------------
return( false );
// Real connection
- dest->SetInput( input_name, orig->GetOutput< TData >( output_name ) );
+ dest->SetInput( input_name, orig->GetOutputPort( output_name ) );
this->m_Graph->AddEdge(
orig_filter, dest_filter,
TConnection( output_name, input_name )
// -------------------------------------------------------------------------
bool cpPlugins::Interface::Workspace::
-Connect( TData* input_object, const std::string& input_name )
+Connect( TData::Pointer* input_object, const std::string& input_name )
{
auto port = this->m_ExposedInputPorts.find( input_name );
if( port != this->m_ExposedInputPorts.end( ) )