-
Notifications
You must be signed in to change notification settings - Fork 948
Expand file tree
/
Copy pathDefaultNodePainter.hpp
More file actions
44 lines (29 loc) · 1.23 KB
/
DefaultNodePainter.hpp
File metadata and controls
44 lines (29 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#pragma once
#include <QIcon>
#include <QtGui/QPainter>
#include "AbstractNodePainter.hpp"
#include "Definitions.hpp"
namespace QtNodes {
class BasicGraphicsScene;
class GraphModel;
class NodeGeometry;
class NodeGraphicsObject;
class NodeState;
/// @ Lightweight class incapsulating paint code.
class NODE_EDITOR_PUBLIC DefaultNodePainter : public AbstractNodePainter
{
public:
void paint(QPainter *painter, NodeGraphicsObject &ngo) const override;
void drawNodeRect(QPainter *painter, NodeGraphicsObject &ngo) const;
void drawConnectionPoints(QPainter *painter, NodeGraphicsObject &ngo) const;
void drawFilledConnectionPoints(QPainter *painter, NodeGraphicsObject &ngo) const;
void drawNodeCaption(QPainter *painter, NodeGraphicsObject &ngo) const;
void drawEntryLabels(QPainter *painter, NodeGraphicsObject &ngo) const;
void drawResizeRect(QPainter *painter, NodeGraphicsObject &ngo) const;
void drawProcessingIndicator(QPainter *painter, NodeGraphicsObject &ngo) const;
void drawValidationIcon(QPainter *painter, NodeGraphicsObject &ngo) const;
void drawProgressValue(QPainter *painter, NodeGraphicsObject &ngo) const;
private:
QIcon _toolTipIcon{"://info-tooltip.svg"};
};
} // namespace QtNodes