Vuo
2.4.4
Loading...
Searching...
No Matches
renderer
VuoRendererItem.hh
Go to the documentation of this file.
1
10
#pragma once
11
15
class
VuoRendererItem
:
public
QGraphicsItem
16
{
17
public
:
21
enum
activityState
22
{
23
notTrackingActivity = -1,
24
activityInProgress = 0
25
};
26
30
enum
zValues
31
{
32
triggerAnimationZValue = 1,
33
nodeZValue = 0,
34
portZValue
= -1,
35
attachmentZValue
= -2,
36
cableZValue = -3,
37
errorMarkZValue = -4,
38
commentZValue = -5
39
};
40
41
static
void
setSnapToGrid
(
bool
snap);
42
static
void
setDrawBoundingRects
(
bool
drawBoundingRects);
43
static
bool
shouldDrawBoundingRects
(
void
);
44
static
void
drawRect
(QPainter *painter, QRectF rect);
45
static
bool
getSnapToGrid
();
46
47
VuoRendererItem
();
48
49
void
setSelectable
(
bool
selectable);
50
51
private
:
52
static
bool
drawBoundingRects;
53
static
bool
snapToGrid;
54
55
protected
:
56
void
drawBoundingRect
(QPainter *painter);
57
static
void
addRoundedCorner
(QPainterPath &path,
bool
drawLine, QPointF sharpCornerPoint, qreal radius,
bool
isTop,
bool
isLeft);
58
bool
getRenderActivity
()
const
;
59
bool
getRenderHiddenCables
()
const
;
60
QGraphicsItem::CacheMode
getCurrentDefaultCacheMode
()
const
;
61
};
Generated on Thu Nov 9 2023 16:59:30 for Vuo by
1.9.8