Vuo  1.2.8
Public Types | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | List of all members
VuoRendererItem Class Reference

Description

Subclass of QGraphicsItem, which can show bounding rects for debugging.

Public Types

enum  activityState { notTrackingActivity = -1, activityInProgress = 0 }
 Special composition component activity states. More...
 

Static Public Member Functions

static void setSnapToGrid (bool snap)
 Specifies whether graphics items should be snapped to a grid. More...
 
static void setDrawBoundingRects (bool drawBoundingRects)
 Specifies whether bounding rects will be shown the next time the QGraphicsScene is rendered. More...
 
static void drawRect (QPainter *painter, QRectF rect)
 Draws a rect, for debugging. More...
 
static bool getSnapToGrid ()
 Retrieves the boolean indicating whether graphics items should be snapped to a grid. More...
 

Protected Member Functions

void drawBoundingRect (QPainter *painter)
 Draws this item's bounding rect, for debugging. More...
 
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. More...
 
bool getRenderHiddenCables () const
 Retrieves the composition-wide boolean indicating whether hidden ("wireless") cables should be rendered as if they were not hidden. More...
 
QGraphicsItem::CacheMode getCurrentDefaultCacheMode () const
 Returns the current default cache mode for components of this composition. More...
 

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. More...
 

Member Enumeration Documentation

◆ activityState

Special composition component activity states.

Member Function Documentation

◆ addRoundedCorner()

void VuoRendererItem::addRoundedCorner ( QPainterPath &  path,
bool  drawLine,
QPointF  sharpCornerPoint,
qreal  radius,
bool  isTop,
bool  isLeft 
)
staticprotected

Appends a line (or move) and curve to path, to produce a clockwise-wound rounded corner near sharpCornerPoint.

◆ drawBoundingRect()

void VuoRendererItem::drawBoundingRect ( QPainter *  painter)
protected

Draws this item's bounding rect, for debugging.

◆ drawRect()

void VuoRendererItem::drawRect ( QPainter *  painter,
QRectF  rect 
)
static

Draws a rect, for debugging.

◆ getCurrentDefaultCacheMode()

QGraphicsItem::CacheMode VuoRendererItem::getCurrentDefaultCacheMode ( ) const
protected

Returns the current default cache mode for components of this composition.

◆ getRenderActivity()

bool VuoRendererItem::getRenderActivity ( ) const
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.

◆ getRenderHiddenCables()

bool VuoRendererItem::getRenderHiddenCables ( ) const
protected

Retrieves the composition-wide boolean indicating whether hidden ("wireless") cables should be rendered as if they were not hidden.

◆ getSnapToGrid()

bool VuoRendererItem::getSnapToGrid ( )
static

Retrieves the boolean indicating whether graphics items should be snapped to a grid.

◆ setDrawBoundingRects()

void VuoRendererItem::setDrawBoundingRects ( bool  drawBoundingRects)
static

Specifies whether bounding rects will be shown the next time the QGraphicsScene is rendered.

◆ setSnapToGrid()

void VuoRendererItem::setSnapToGrid ( bool  snap)
static

Specifies whether graphics items should be snapped to a grid.


The documentation for this class was generated from the following files: