Vuo  0.4.6
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
VuoRendererColors Class Reference

Description

Provides colors for rendered items in a composition.

Public Member Functions

 VuoRendererColors (VuoNode::TintColor tintColor=VuoNode::TintNone, bool isSelected=false, bool isHovered=false, bool isHighlighted=false, qint64 timeOfLastActivity=VuoRendererItem::notTrackingActivity)
 Creates a new color scheme provider, optionally tinted with tintColor.
 
QColor canvasFill (void)
 Returns the color for the background of the composition canvas.
 
QColor nodeFill (void)
 Returns the color for the background of the main section of the node (the background of the area the port labels are drawn on).
 
QColor nodeFrame (void)
 Returns the color for the node's outline and the background of its title bar.
 
QColor nodeTitle (void)
 Returns the color for the node's title text in the node's title bar.
 
QColor nodeClass (void)
 Returns the color for the node's class name text in the node's title bar.
 
QColor portFill (void)
 Returns the color for the background of ports in the main section of the node.
 
QColor animatedPortFill (void)
 Returns the color for the background of an animated copy of a port.
 
QColor conductivityBarrier (void)
 Returns the color for a port's conductivity barrier.
 
QColor animatedConductivityBarrier (void)
 Returns the color for the conductivity barrier of the animated copy of a port.
 
QColor portTitlebarFill (void)
 Returns the color for the background of ports in the titlebar of the node.
 
QColor portTitle (void)
 Returns the color for the title text of ports in the main section of the node.
 
QColor cableUpper (void)
 Returns the color for the highlight on the upper side of left-to-right cables (and lower side of right-to-left cables).
 
QColor cableMain (void)
 Returns the color for the main cable body.
 

Static Public Member Functions

static VuoRendererColorsgetSharedColors (void)
 Returns a shared, untinted color scheme provider.
 
static qint64 getVirtualNodeExecutionOrigin (void)
 Returns the projected time (in ms since epoch) at which a node must have completed its previous execution in order to have faded to the defaultNodeFrameAndFillAlpha level at the current time.
 
static qint64 getVirtualFiredEventOrigin (void)
 Returns the projected time (in ms since epoch) at which a port must have fired its most recent event in order to have faded to the defaultPortFillAlpha level at the current time.
 
static qint64 getVirtualFiredEventOriginForAnimationFadePercentage (qreal percentage)
 Returns the projected time (in ms since epoch) at which a port must have fired its most recent event in order for its animation to have faded to the percentage provided.
 
static qint64 getVirtualPropagatedEventOrigin (void)
 Returns the projected time (in ms since epoch) at which a cable must have propagated its most recent event in order to have faded to the defaultCableUpperAndMainAlpha level at the current time.
 

Static Public Attributes

static const int activityAnimationFadeDuration = 950
 Time period, in ms, over which a 'Show Events'-mode animation (e.g., for trigger port firing) fades to its minimum alpha level.
 

Constructor & Destructor Documentation

VuoRendererColors::VuoRendererColors ( VuoNode::TintColor  tintColor = VuoNode::TintNone,
bool  isSelected = false,
bool  isHovered = false,
bool  isHighlighted = false,
qint64  timeOfLastActivity = VuoRendererItem::notTrackingActivity 
)

Creates a new color scheme provider, optionally tinted with tintColor.

If isSelected is true, the colors are also tinted dark blue to indicate selection. If isHovered is true, the colors are also slightly tinted dark blue to indicate potential for selection. If isHighlighed is true, the colors are also tinted with light blue (more easily visible at a distance) to indicate potential for cable connection. If timeOfLastActivity is anything other than VuoRendererItem::notTrackingActivity, the alpha level is modified to reflect the amount of time that has passed since the timeOfLastActivity (e.g., a node execution or event firing), in ms since epoch.

Member Function Documentation

QColor VuoRendererColors::canvasFill ( void  )

Returns the color for the background of the composition canvas.

Can be overridden by VuoRendererComposition::setBackgroundTransparent.

VuoRendererColors * VuoRendererColors::getSharedColors ( void  )
static

Returns a shared, untinted color scheme provider.

Don't free this object.

QColor VuoRendererColors::nodeFill ( void  )

Returns the color for the background of the main section of the node (the background of the area the port labels are drawn on).

Also used for the background of collapsed typecast ports.

QColor VuoRendererColors::nodeFrame ( void  )

Returns the color for the node's outline and the background of its title bar.

Also used for collapsed typecast port borders.

QColor VuoRendererColors::portTitle ( void  )

Returns the color for the title text of ports in the main section of the node.

Also used for constant value flag text.


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