Computer Assisted Medical Intervention Tool Kit  version 5.2
WorkspaceExtension Class Reference

Manage workspace as a normal extension. More...

#include <WorkspaceExtension.h>

+ Inheritance diagram for WorkspaceExtension:
+ Collaboration diagram for WorkspaceExtension:

Public Member Functions

virtual QString getDescription () const override
 Method returning the component extension description. More...
 
virtual QStringList getFileExtensions () const override
 Get the list of managed extensions. More...
 
virtual QString getName () const override
 Method returning the component extension name. More...
 
camitk::Componentopen (const QString &) override
 .camitk may results in more than one instanciation. More...
 
bool save (camitk::Component *component) const override
 .camitk should be saved by calling the save workspace. More...
 
 WorkspaceExtension ()
 Constructor. More...
 
- Public Member Functions inherited from camitk::ComponentExtension
 ~ComponentExtension () override=default
 protected destructor, More...
 
virtual bool hasDataDirectory () const
 return true if this component manages directory instead of individual files (e.g. Dicom series are stored in directories, not files) More...
 
QString getLocation () const
 get the file path (location of the .dll/.so/.dylib) of this plugin More...
 
void setLocation (const QString loc)
 set the file path (once loaded as a dynamic library) More...
 
void initResources ()
 Load, for the selected langage (asked to the Application), the associated .qm file. More...
 

Protected Member Functions

virtual ~WorkspaceExtension ()=default
 Destructor. More...
 
- Protected Member Functions inherited from camitk::ComponentExtension
 ComponentExtension ()
 protected constructor, More...
 

Detailed Description

Manage workspace as a normal extension.

Although camitk-imp has a specific menu, this extension simplifies the management of workspace .camitk files. .camitk documents can therefore be opened as any other component extension, although this extension does not instanciate any Component class.

Constructor & Destructor Documentation

◆ WorkspaceExtension()

WorkspaceExtension::WorkspaceExtension ( )
inline

Constructor.

◆ ~WorkspaceExtension()

virtual WorkspaceExtension::~WorkspaceExtension ( )
protectedvirtualdefault

Destructor.

Member Function Documentation

◆ getDescription()

QString WorkspaceExtension::getDescription ( ) const
overridevirtual

Method returning the component extension description.

Implements camitk::ComponentExtension.

◆ getFileExtensions()

QStringList WorkspaceExtension::getFileExtensions ( ) const
overridevirtual

Get the list of managed extensions.

Implements camitk::ComponentExtension.

◆ getName()

QString WorkspaceExtension::getName ( ) const
overridevirtual

Method returning the component extension name.

Implements camitk::ComponentExtension.

◆ open()

Component * WorkspaceExtension::open ( const QString &  fileName)
overridevirtual

.camitk may results in more than one instanciation.

This method calls the OpenWorkspace action and returns nullptr.

Implements camitk::ComponentExtension.

References camitk::Action::applyInPipeline(), CAMITK_ERROR, and camitk::Application::getAction().

+ Here is the call graph for this function:

◆ save()

bool WorkspaceExtension::save ( camitk::Component component) const
overridevirtual

.camitk should be saved by calling the save workspace.

This method should never be available/called.

Returns
false unconditionally

Reimplemented from camitk::ComponentExtension.


The documentation for this class was generated from the following files: