Provides colors for rendered items in a composition.
|
| 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 | eventBlockingBarrier (void) |
| Returns the color for a port's event wall or door.
|
|
QColor | animatedeventBlockingBarrier (void) |
| Returns the color for the evnet wall or door 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 VuoRendererColors * | getSharedColors (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.
|
|
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.