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

Creates graphics effects that differ depending on the provided difference information.

#include <Tools/WorkflowComparison/Application/diffgraphicseffectfactory.h>

Inheritance diagram for DiffGraphicsEffectFactory:
[legend]

Public Member Functions

 DiffGraphicsEffectFactory (const DataExecution::ObjectArray &differenceArray, ComparisonRole role)
 
 DiffGraphicsEffectFactory (const DiffGraphicsEffectFactory &)=delete
 
 ~DiffGraphicsEffectFactory ()
 
Presentation::WorkspaceGraphicsEffectcreateEffect (const Presentation::ConnectionAnchor &anchor, QObject *parent) const override
 
Presentation::WorkspaceGraphicsEffectcreateEffect (const Presentation::WorkspaceNoteItem &note, QObject *parent=nullptr) const override
 
Presentation::WorkspaceGraphicsEffectcreateEffect (const QGraphicsTextItem &label, const DataExecution::IOBase &iobase, QObject *parent=nullptr) const override
 
Presentation::WorkspaceGraphicsEffectcreateEffect (const QPainterPath &path, const DataExecution::Connection &connPort, QObject *parent=nullptr) const override
 
Presentation::WorkspaceGraphicsEffectcreateEffect (const QPainterPath &path, const DataExecution::IOBase &io, QObject *parent=nullptr) const override
 
Presentation::WorkspaceGraphicsEffectcreateEffect (const QPainterPath &path, const DataExecution::Operation &opView, QObject *parent=nullptr) const override
 
void flagAnchorUpdated (const QString &anchorId, ComparisonRole desc)
 
void flagConnectionUpdated (const DataExecution::Connection &connPort, ComparisonRole desc)
 
void flagInputUpdated (const QString &opId, const QString &inputName, int index, ComparisonRole desc)
 
void flagNoteUpdated (const QString &noteId, ComparisonRole desc)
 
void flagOperationUpdated (const QString &opId, ComparisonRole desc)
 
void flagOutputUpdated (const QString &opId, const QString &outputName, ComparisonRole desc)
 
DiffGraphicsEffectFactoryoperator= (const DiffGraphicsEffectFactory)=delete
 
void setSuppressConnectionAnnotation (const QString &id, ComparisonRole desc, bool val)
 
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 void setAnnotationHues (const QColor &inWorkflowA, const QColor &inWorkflowB, const QColor &notInWorkflowA, const QColor &notInWorkflowB, const QColor &inBothWorkflows, const QColor &inFlux)
 
static void setAnnotationHues (int inWorkflowA, int inWorkflowB, int notInWorkflowA, int notInWorkflowB, int inBothWorkflows, int inFlux)
 

Constructor & Destructor Documentation

◆ DiffGraphicsEffectFactory() [1/2]

DiffGraphicsEffectFactory ( const DataExecution::ObjectArray differenceArray,
ComparisonRole  role 
)
Parameters
differenceArrayArray of differences between operations
roleWhich workflow role this effect is being applied to, A or B. E.g. if we are A, we would expect operations that exist in A but not B would show up as green.

◆ DiffGraphicsEffectFactory() [2/2]

◆ ~DiffGraphicsEffectFactory()

Member Function Documentation

◆ createEffect() [1/6]

WorkspaceGraphicsEffect * createEffect ( const Presentation::ConnectionAnchor anchor,
QObject *  parent 
) const
overridevirtual
Parameters
anchorThe anchor from which the PainterPath of the effect will be obtained
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 Presentation::WorkspaceNoteItem note,
QObject *  parent = nullptr 
) const
overridevirtual
Parameters
noteThe note from which the painterpath of the effect will be obtained
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 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() [4/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() [5/6]

WorkspaceGraphicsEffect * createEffect ( const QPainterPath &  path,
const DataExecution::IOBase io,
QObject *  parent = nullptr 
) const
overridevirtual
Parameters
pathThe painterpath of the effect.
ioThe 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() [6/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.

◆ flagAnchorUpdated()

void flagAnchorUpdated ( const QString &  anchorId,
ComparisonRole  desc 
)

◆ flagConnectionUpdated()

void flagConnectionUpdated ( const DataExecution::Connection connPort,
ComparisonRole  desc 
)

◆ flagInputUpdated()

void flagInputUpdated ( const QString &  opId,
const QString &  inputName,
int  index,
ComparisonRole  desc 
)

◆ flagNoteUpdated()

void flagNoteUpdated ( const QString &  noteId,
ComparisonRole  desc 
)

◆ flagOperationUpdated()

void flagOperationUpdated ( const QString &  opId,
ComparisonRole  desc 
)

◆ flagOutputUpdated()

void flagOutputUpdated ( const QString &  opId,
const QString &  outputName,
ComparisonRole  desc 
)

◆ operator=()

DiffGraphicsEffectFactory & operator= ( const  DiffGraphicsEffectFactory)
delete

◆ setAnnotationHues() [1/2]

void setAnnotationHues ( const QColor &  inWorkflowA,
const QColor &  inWorkflowB,
const QColor &  notInWorkflowA,
const QColor &  notInWorkflowB,
const QColor &  inBothWorkflows,
const QColor &  inFlux 
)
static

◆ setAnnotationHues() [2/2]

void setAnnotationHues ( int  inWorkflowA,
int  inWorkflowB,
int  notInWorkflowA,
int  notInWorkflowB,
int  inBothWorkflows,
int  inFlux 
)
static

◆ setSuppressConnectionAnnotation()

void setSuppressConnectionAnnotation ( const QString &  id,
ComparisonRole  desc,
bool  val 
)