Vuo  1.2.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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.
 
static void setDrawBoundingRects (bool drawBoundingRects)
 Specifies whether bounding rects will be shown the next time the QGraphicsScene is rendered.
 
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.
 

Member Enumeration Documentation

Special composition component activity states.

Member Function Documentation

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.

void VuoRendererItem::drawBoundingRect ( QPainter *  painter)
protected

Draws this item's bounding rect, for debugging.

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

Draws a rect, for debugging.

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

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

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.

bool VuoRendererItem::getRenderHiddenCables ( ) const
protected

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

bool VuoRendererItem::getSnapToGrid ( )
static

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

void VuoRendererItem::setDrawBoundingRects ( bool  drawBoundingRects)
static

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

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: