X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcpPlugins%2FInterface%2FWorkspace.h;h=7d76c05b13a4dbde315159d15aa677c965e2793f;hb=4985f4ba986f600298676866c5099b2f84bee50b;hp=73db780f9dab7dcb800d5c249d15d268b3f23053;hpb=9f494b26ae4e5de45b4c2119a10de67ac0beeedf;p=cpPlugins.git diff --git a/lib/cpPlugins/Interface/Workspace.h b/lib/cpPlugins/Interface/Workspace.h index 73db780..7d76c05 100644 --- a/lib/cpPlugins/Interface/Workspace.h +++ b/lib/cpPlugins/Interface/Workspace.h @@ -38,10 +38,14 @@ namespace cpPlugins */ public: - itkNewMacro( Self ); itkTypeMacro( Workspace, itk::Object ); public: + // Factory methods + static Pointer New( ); + virtual itk::LightObject::Pointer CreateAnother( ) const cpPlugins_OVERRIDE; + Pointer Clone( ) const; + // Workspace IO void Load( const std::string& fname ); void Save( const std::string& fname ) const; @@ -72,36 +76,6 @@ namespace cpPlugins // Interactors void AddInteractor( vtkRenderWindowInteractor* iren ); - // Exposed ports - /* TODO - const TExposedPorts& GetExposedInputs( ) const; - const TExposedPorts& GetExposedOutputs( ) const; - cpPlugins::BaseObjects::DataObject* GetExposedOutput( - const std::string& name - ); - const cpPlugins::BaseObjects::DataObject* GetExposedOutput( - const std::string& name - ) const; - bool ExposeInput( - const std::string& name, - const std::string& filter, const std::string& filter_input - ); - bool ExposeOutput( - const std::string& name, - const std::string& filter, const std::string& filter_output - ); - void HideInput( const std::string& name ); - void HideOutput( const std::string& name ); - bool RenameExposedInput( - const std::string& old_name, - const std::string& new_name - ); - bool RenameExposedOutput( - const std::string& old_name, - const std::string& new_name - ); - */ - // Connection management bool Connect( const std::string& origin_filter,