Subclass of QGraphicsItem, which can show bounding rects for debugging.
Definition at line 15 of file VuoRendererItem.hh.
Public Types | |
enum | activityState { notTrackingActivity = -1 , activityInProgress = 0 } |
Special composition component activity states. More... | |
enum | zValues { triggerAnimationZValue = 1 , nodeZValue = 0 , portZValue = -1 , attachmentZValue = -2 , cableZValue = -3 , errorMarkZValue = -4 , commentZValue = -5 } |
Stacking order for canvas elements. More... | |
Public Member Functions | |
void | setSelectable (bool selectable) |
Enables or disables selection for the item. | |
Static Public Member Functions | |
static void | setSnapToGrid (bool snap) |
Specifies whether graphics items should be snapped to a grid. | |
static void | setDrawBoundingRects (bool drawBoundingRects) |
Specifies whether bounding rects will be shown the next time the QGraphicsScene is rendered. | |
static bool | shouldDrawBoundingRects (void) |
Returns whether bounding rects are currently being shown. | |
static void | drawRect (QPainter *painter, QRectF rect) |
Draws a rect, for debugging. | |
static bool | getSnapToGrid () |
Retrieves the boolean indicating whether graphics items should be snapped to a grid. | |
Protected Member Functions | |
void | drawBoundingRect (QPainter *painter) |
Draws this item's bounding rect, for debugging. | |
bool | getRenderActivity () const |
Retrieves the composition-wide boolean indicating whether recent activity (e.g., a node execution or event firing) by this item should be reflected in its rendering. | |
bool | getRenderHiddenCables () const |
Retrieves the composition-wide boolean indicating whether hidden ("wireless") cables should be rendered as if they were not hidden. | |
QGraphicsItem::CacheMode | getCurrentDefaultCacheMode () const |
Returns the current default cache mode for components of this composition. | |
Static Protected Member Functions | |
static void | addRoundedCorner (QPainterPath &path, bool drawLine, QPointF sharpCornerPoint, qreal radius, bool isTop, bool isLeft) |
Appends a line (or move) and curve to path , to produce a clockwise-wound rounded corner near sharpCornerPoint . | |
Special composition component activity states.
Definition at line 21 of file VuoRendererItem.hh.
Stacking order for canvas elements.
Enumerator | |
---|---|
portZValue | So the slight antialiasing overlap isn't visible. |
attachmentZValue | Render attachments behind the port they're connected to, so the port hover highlight is consistently visible. |
Definition at line 30 of file VuoRendererItem.hh.
VuoRendererItem::VuoRendererItem | ( | ) |
Definition at line 82 of file VuoRendererItem.cc.
|
staticprotected |
Appends a line (or move) and curve to path
, to produce a clockwise-wound rounded corner near sharpCornerPoint
.
Definition at line 124 of file VuoRendererItem.cc.
|
protected |
Draws this item's bounding rect, for debugging.
Definition at line 113 of file VuoRendererItem.cc.
|
static |
Draws a rect, for debugging.
Definition at line 100 of file VuoRendererItem.cc.
|
protected |
Returns the current default cache mode for components of this composition.
Definition at line 73 of file VuoRendererItem.cc.
|
protected |
Retrieves the composition-wide boolean indicating whether recent activity (e.g., a node execution or event firing) by this item should be reflected in its rendering.
Definition at line 54 of file VuoRendererItem.cc.
|
protected |
Retrieves the composition-wide boolean indicating whether hidden ("wireless") cables should be rendered as if they were not hidden.
Definition at line 64 of file VuoRendererItem.cc.
|
static |
Retrieves the boolean indicating whether graphics items should be snapped to a grid.
Definition at line 44 of file VuoRendererItem.cc.
|
static |
Specifies whether bounding rects will be shown the next time the QGraphicsScene is rendered.
Definition at line 19 of file VuoRendererItem.cc.
void VuoRendererItem::setSelectable | ( | bool | selectable | ) |
Enables or disables selection for the item.
Definition at line 89 of file VuoRendererItem.cc.
|
static |
Specifies whether graphics items should be snapped to a grid.
Definition at line 35 of file VuoRendererItem.cc.
|
static |
Returns whether bounding rects are currently being shown.
Definition at line 27 of file VuoRendererItem.cc.