Vuo  2.4.0
VuoRendererItem.hh
Go to the documentation of this file.
1
10#pragma once
11
15class VuoRendererItem : public QGraphicsItem
16{
17public:
22 {
23 notTrackingActivity = -1,
24 activityInProgress = 0
25 };
26
31 {
32 triggerAnimationZValue = 1,
33 nodeZValue = 0,
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
48
49 void setSelectable(bool selectable);
50
51private:
52 static bool drawBoundingRects;
53 static bool snapToGrid;
54
55protected:
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};
62