Go to the documentation of this file.
7 #include <QGraphicsItem>
8 #include <QGraphicsItemGroup>
50 QPainterPath
shape()
const;
52 void paint(QPainter* painter,
const QStyleOptionGraphicsItem* option, QWidget*);
88 QVariant
itemChange(GraphicsItemChange change,
const QVariant &value);
109 #endif // FILTERITEM_HPP
unsigned int filter_index_t
datatype for the filters index counter
Definition: FilterItem.hpp:34
static const qreal sDisplacementWeight
constant displacement procentage (degree up to which two filter items need to overlap in the scene su...
Definition: FilterItem.hpp:39
QString getLabel(void) const
getter method for retrieving the text regex of this filter item
Definition: FilterItem.cpp:53
void setIndex(filter_index_t index)
setter method for the filter index
Definition: FilterItem.hpp:55
void mouseMoveEvent(QGraphicsSceneMouseEvent *event)
qt mouse move callback
Definition: FilterItem.cpp:112
bool isActivated() const
check if filter is activated
Definition: FilterItem.hpp:69
void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event)
qt mouse double-click callback
Definition: FilterItem.cpp:139
void updatePos(void)
refreshes position in the scene of this filter item based on its filter index
Definition: FilterItem.cpp:58
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *)
qt node painting method - here the node components get placed in the scene
Definition: FilterItem.cpp:76
void setLabel(QString label)
setter method for updating the text regex of this filter item
Definition: FilterItem.cpp:47
widget to manage all graphical custom regexp filter items in a common scene under behavioral restrict...
Definition: FilterManager.hpp:21
static const qreal sDisplacementThreshold
constant displacement threshold (relative distance up to which overlapping items are away from each o...
Definition: FilterItem.hpp:41
QPainterPath shape() const
retrieves the path of the bounding rectangular box around the area occupied by the node in the scene
Definition: FilterItem.cpp:69
~FilterItem()
destructor
Definition: FilterItem.hpp:45
filter_index_t getIndex(void)
getter method for the filter index
Definition: FilterItem.hpp:57
Main namespace of the graph analysis library.
Definition: BFS.cpp:3
FilterItem(FilterManager *manager, filter_index_t index, const std::string &filter=std::string())
constructor
Definition: FilterItem.cpp:20
graphical node text label and Cluster label implementation
Definition: Label.hpp:27
unsigned int filter_size_t
datatype for denoting the height (in points) of a graphical filter item
Definition: FilterItem.hpp:32
QRectF boundingRect() const
retrieves the bounding rectangular box around the area occupied by the node in the scene
Definition: FilterItem.cpp:63
void hoverEnterEvent(QGraphicsSceneHoverEvent *event)
qt hovering ENTER callback
Definition: FilterItem.cpp:148
void setActivation(bool activation)
Definition: FilterItem.hpp:90
graphical custom regexp filter representation class; specific to FilterManager widget in the layers t...
Definition: FilterItem.hpp:26
void mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
qt mouse release callback
Definition: FilterItem.cpp:131
void hoverLeaveEvent(QGraphicsSceneHoverEvent *event)
qt hovering LEAVE callback
Definition: FilterItem.cpp:158
QVariant itemChange(GraphicsItemChange change, const QVariant &value)
qt item change callback
Definition: FilterItem.cpp:167
QString getRegexp() const
Definition: FilterItem.hpp:71
static const filter_size_t sHeight
constant height (in points) of a graphical filter item
Definition: FilterItem.hpp:37
void syncToolTips(void)
synchronizes the toolTip-s of this filter item and of its corresponding checkbox in the filters box w...
Definition: FilterItem.cpp:40
void mousePressEvent(QGraphicsSceneMouseEvent *event)
qt mouse press callback
Definition: FilterItem.cpp:105