Workspace 6.21.5
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
StandardWorkspaceGraphicsEffectFactory Class Reference

Standard implementation of the WorkspaceGraphicsEffectFactory for use with the regular Workspace-GUI.

#include <Workspace/Presentation/workspacegraphicseffectfactory.h>

Inheritance diagram for StandardWorkspaceGraphicsEffectFactory:
[legend]

Public Member Functions

WorkspaceGraphicsEffectcreateEffect (const ConnectionAnchor &anchor, QObject *parent=nullptr) const override
 
WorkspaceGraphicsEffectcreateEffect (const QGraphicsTextItem &label, const DataExecution::IOBase &ioBase, QObject *parent=nullptr) const override
 
WorkspaceGraphicsEffectcreateEffect (const QPainterPath &path, const DataExecution::Connection &conn, QObject *parent=nullptr) const override
 
WorkspaceGraphicsEffectcreateEffect (const QPainterPath &path, const DataExecution::IOBase &ioBase, QObject *parent=nullptr) const override
 
WorkspaceGraphicsEffectcreateEffect (const QPainterPath &path, const DataExecution::Operation &op, QObject *parent=nullptr) const override
 
WorkspaceGraphicsEffectcreateEffect (const WorkspaceNoteItem &note, QObject *parent=nullptr) const override
 
virtual WorkspaceGraphicsEffectcreateEffect (const ConnectionAnchor &anchor, QObject *parent=nullptr) const =0
 
virtual WorkspaceGraphicsEffectcreateEffect (const QGraphicsTextItem &label, const DataExecution::IOBase &ioBase, QObject *parent=nullptr) const =0
 
virtual WorkspaceGraphicsEffectcreateEffect (const QPainterPath &path, const DataExecution::Connection &conn, QObject *parent=nullptr) const =0
 
virtual WorkspaceGraphicsEffectcreateEffect (const QPainterPath &path, const DataExecution::IOBase &ioBase, QObject *parent=nullptr) const =0
 
virtual WorkspaceGraphicsEffectcreateEffect (const QPainterPath &path, const DataExecution::Operation &op, QObject *parent=nullptr) const =0
 
virtual WorkspaceGraphicsEffectcreateEffect (const WorkspaceNoteItem &path, QObject *parent=nullptr) const =0
 

Static Public Member Functions

static StandardWorkspaceGraphicsEffectFactorygetInstance ()
 

Protected Member Functions

 StandardWorkspaceGraphicsEffectFactory ()
 

Constructor & Destructor Documentation

◆ StandardWorkspaceGraphicsEffectFactory()

Member Function Documentation

◆ createEffect() [1/6]

WorkspaceGraphicsEffect * createEffect ( const ConnectionAnchor anchor,
QObject *  parent = nullptr 
) const
overridevirtual
Parameters
anchorThe anchor of the effect.
parentThe (optional) parent of this effect which will take ownership of it.
Returns
A new WorkspaceGraphicsEffect object with the specified path and parent.

Implements WorkspaceGraphicsEffectFactory.

◆ createEffect() [2/6]

WorkspaceGraphicsEffect * createEffect ( const QGraphicsTextItem &  label,
const DataExecution::IOBase iobase,
QObject *  parent = nullptr 
) const
overridevirtual
Parameters
labelThe label from which the painterpath of the effect will be obtained
iobaseThe iobase we are creating the effect for.
parentThe (optional) parent of this effect which will take ownership of it.
Returns
A new WorkspaceGraphicsEffect object with the specified path and parent.

Implements WorkspaceGraphicsEffectFactory.

◆ createEffect() [3/6]

WorkspaceGraphicsEffect * createEffect ( const QPainterPath &  path,
const DataExecution::Connection conn,
QObject *  parent = nullptr 
) const
overridevirtual
Parameters
pathThe painterpath of the effect.
connThe connection we are creating the effect for.
parentThe (optional) parent of this effect which will take ownership of it.
Returns
A new WorkspaceGraphicsEffect object with the specified path and parent.

Implements WorkspaceGraphicsEffectFactory.

◆ createEffect() [4/6]

WorkspaceGraphicsEffect * createEffect ( const QPainterPath &  path,
const DataExecution::IOBase iobase,
QObject *  parent = nullptr 
) const
overridevirtual
Parameters
pathThe painterpath of the effect.
iobaseThe iobase we are creating the effect for.
parentThe (optional) parent of this effect which will take ownership of it.
Returns
A new WorkspaceGraphicsEffect object with the specified path and parent.

Implements WorkspaceGraphicsEffectFactory.

◆ createEffect() [5/6]

WorkspaceGraphicsEffect * createEffect ( const QPainterPath &  path,
const DataExecution::Operation op,
QObject *  parent = nullptr 
) const
overridevirtual
Parameters
pathThe painterpath of the effect.
opThe operation we are creating the effect for.
parentThe (optional) parent of this effect which will take ownership of it.
Returns
A new WorkspaceGraphicsEffect object with the specified path and parent.

Implements WorkspaceGraphicsEffectFactory.

◆ createEffect() [6/6]

WorkspaceGraphicsEffect * createEffect ( const WorkspaceNoteItem note,
QObject *  parent = nullptr 
) const
overridevirtual
Parameters
noteThe note of the effect.
parentThe (optional) parent of this effect which will take ownership of it.
Returns
A new WorkspaceGraphicsEffect object with the specified path and parent.

Implements WorkspaceGraphicsEffectFactory.

◆ getInstance()

StandardWorkspaceGraphicsEffectFactory & getInstance ( )
static
Returns
The instance of the StandardWorkspaceGraphicsEffectFactory singleton.