CTK  0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
Public Member Functions | List of all members
ctkCmdLineModuleFrontendFactory Class Referenceabstract

Factory class to create new front-ends. More...

#include <Libs/CommandLineModules/Core/ctkCmdLineModuleFrontendFactory.h>

Inheritance diagram for ctkCmdLineModuleFrontendFactory:
Inheritance graph
[legend]

Public Member Functions

virtual ctkCmdLineModuleFrontendcreate (const ctkCmdLineModuleReference &moduleRef)=0
 Creates front-end instances. More...
 
virtual QString description () const =0
 Get the description for this factory. More...
 
virtual QString name () const =0
 Get the name of this factory. More...
 
virtual ~ctkCmdLineModuleFrontendFactory ()
 

Detailed Description

Factory class to create new front-ends.

Front-end implementors are advised to create and export a sub-class of this class to unify the creation process of front-ends.

See also
ctkCmdLineModuleFrontend

Definition at line 40 of file ctkCmdLineModuleFrontendFactory.h.

Constructor & Destructor Documentation

◆ ~ctkCmdLineModuleFrontendFactory()

virtual ctkCmdLineModuleFrontendFactory::~ctkCmdLineModuleFrontendFactory ( )
virtual

Member Function Documentation

◆ create()

virtual ctkCmdLineModuleFrontend* ctkCmdLineModuleFrontendFactory::create ( const ctkCmdLineModuleReference moduleRef)
pure virtual

Creates front-end instances.

Parameters
moduleRefThe module reference for which to create a front-end.
Returns
The created front-end or NULL if creation failed.

Implemented in ctkCmdLineModuleFrontendFactoryQtWebKit, and ctkCmdLineModuleFrontendFactoryQtGui.

◆ description()

virtual QString ctkCmdLineModuleFrontendFactory::description ( ) const
pure virtual

Get the description for this factory.

Returns
A factory description.

Implemented in ctkCmdLineModuleFrontendFactoryQtWebKit, and ctkCmdLineModuleFrontendFactoryQtGui.

◆ name()

virtual QString ctkCmdLineModuleFrontendFactory::name ( ) const
pure virtual

Get the name of this factory.

Returns
The factory name.

Implemented in ctkCmdLineModuleFrontendFactoryQtWebKit, and ctkCmdLineModuleFrontendFactoryQtGui.


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