Vuo  2.3.2
Public Types | Public Member Functions | 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.

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. 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 bool shouldDrawBoundingRects (void)
 Returns whether bounding rects are currently being shown. 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.

Definition at line 21 of file VuoRendererItem.hh.

◆ zValues

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.

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.

Definition at line 124 of file VuoRendererItem.cc.

◆ drawBoundingRect()

void VuoRendererItem::drawBoundingRect ( QPainter *  painter)
protected

Draws this item's bounding rect, for debugging.

Definition at line 113 of file VuoRendererItem.cc.

◆ drawRect()

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

Draws a rect, for debugging.

Definition at line 100 of file VuoRendererItem.cc.

◆ getCurrentDefaultCacheMode()

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

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

Definition at line 73 of file VuoRendererItem.cc.

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

Definition at line 54 of file VuoRendererItem.cc.

◆ getRenderHiddenCables()

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

◆ getSnapToGrid()

bool VuoRendererItem::getSnapToGrid ( )
static

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

Definition at line 44 of file VuoRendererItem.cc.

◆ setDrawBoundingRects()

void VuoRendererItem::setDrawBoundingRects ( bool  drawBoundingRects)
static

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

Definition at line 19 of file VuoRendererItem.cc.

◆ setSelectable()

void VuoRendererItem::setSelectable ( bool  selectable)

Enables or disables selection for the item.

Definition at line 89 of file VuoRendererItem.cc.

◆ setSnapToGrid()

void VuoRendererItem::setSnapToGrid ( bool  snap)
static

Specifies whether graphics items should be snapped to a grid.

Definition at line 35 of file VuoRendererItem.cc.

◆ shouldDrawBoundingRects()

bool VuoRendererItem::shouldDrawBoundingRects ( void  )
static

Returns whether bounding rects are currently being shown.

Definition at line 27 of file VuoRendererItem.cc.


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