CWidgetFactory

class ikomia.dataprocess.pydataprocess.CWidgetFactory

Abstract class defining the core structure of the widget factory. The system extensibility for the task library is based on the factory design pattern. Each task must implement a widget factory class derived from this class. Then the system is able to instantiate dynamically a task widget object (even user-defined).

Import

from ikomia.dataprocess import CWidgetFactory

Methods

__init__(arg1)

create(self, param)

Pure virtual method to create new task widget instance with the given task parameters.

Attributes

name

Name of the associated task.

Details

__init__((object)arg1) None
create((CWidgetFactory)self, (CWorkflowTaskParam)param) CWorkflowTaskWidget :

Pure virtual method to create new task widget instance with the given task parameters. Must be implemented.

Args:

param (CWorkflowTaskParam based object): parameters instance for initial values

Returns:

CWorkflowTaskWidget based object: task instance

create( (CWidgetFactory)arg1, (CWorkflowTaskParam)arg2) -> None

name

Name of the associated task. This name must be the same of the one set in the task class.