1#ifndef AbstractFilter_H
2#define AbstractFilter_H
17template<
typename U,
typename V >
struct QPair;
23 class AbstractFilterSelector;
59 AbstractFilter(FilterEffectivenessFlag,
int minimumForSuccess = -1);
67 virtual bool evaluate(
const QPair<QString, ControlNet *> *)
const = 0;
85 return m_minForSuccess;
103 bool evaluateFromCount(QList< ControlMeasure * >,
bool)
const;
108 void updateEffectiveness();
109 void updateMinForSuccess(
int);
113 QCheckBox *createEffectivenessCheckBox(QString);
117 QBoxLayout *m_mainLayout;
118 QBoxLayout *m_inclusiveExclusiveLayout;
119 QButtonGroup *m_inclusiveExclusiveGroup;
120 QButtonGroup *m_effectivenessGroup;
126 FilterEffectivenessFlag *m_effectivenessFlags;
130 Q_DECLARE_OPERATORS_FOR_FLAGS(AbstractFilter::FilterEffectivenessFlag)
Base class for control net filters.
Definition AbstractFilter.h:46
virtual QString getImageDescription() const
Definition AbstractFilter.cpp:96
virtual bool evaluate(const ControlMeasure *) const =0
QBoxLayout * getInclusiveExclusiveLayout() const
Definition AbstractFilter.cpp:262
virtual ~AbstractFilter()
Definition AbstractFilter.cpp:69
FilterEffectiveness
Definition AbstractFilter.h:50
@ Images
Definition AbstractFilter.h:51
@ Points
Definition AbstractFilter.h:52
@ Measures
Definition AbstractFilter.h:53
virtual AbstractFilter * clone() const =0
virtual bool evaluate(const QPair< QString, ControlNet * > *) const =0
bool evaluatePointFromMeasureFilter(const ControlPoint *) const
Definition AbstractFilter.cpp:316
QBoxLayout * getMainLayout() const
Definition AbstractFilter.cpp:256
virtual bool canFilterMeasures() const
Definition AbstractFilter.cpp:91
virtual QString getMeasureDescription() const
Definition AbstractFilter.cpp:106
AbstractFilter(FilterEffectivenessFlag, int minimumForSuccess=-1)
Definition AbstractFilter.cpp:39
virtual bool canFilterImages() const
Definition AbstractFilter.cpp:81
bool evaluateImageFromPointFilter(const QPair< QString, ControlNet * > *) const
Definition AbstractFilter.cpp:290
virtual bool canFilterPoints() const
Definition AbstractFilter.cpp:86
bool evaluateImageFromMeasureFilter(const QPair< QString, ControlNet * > *) const
Definition AbstractFilter.cpp:303
AbstractFilter::FilterEffectivenessFlag * getEffectivenessFlags() const
Definition AbstractFilter.cpp:251
int getMinForSuccess() const
Definition AbstractFilter.h:84
bool inclusive() const
Definition AbstractFilter.cpp:245
virtual QString getPointDescription() const
Definition AbstractFilter.cpp:101
virtual bool evaluate(const ControlPoint *) const =0
a control measurement
Definition ControlMeasure.h:175
A single control point.
Definition ControlPoint.h:356
Definition AbstractFilter.h:19
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16
This is free and unencumbered software released into the public domain.
Definition CubeIoHandler.h:23