Vuo
0.7.0
|
Provides colors for rendered items in a composition.
Public Types | |
enum | HighlightType { standardHighlight, subtleHighlight, noHighlight } |
Specifies the various levels of highlighting that may be applied to a given component. More... | |
enum | SelectionType { directSelection, indirectSelection, noSelection } |
Specifies the various levels of selection coloring that may be applied to a given component. More... | |
Public Member Functions | |
VuoRendererColors (VuoNode::TintColor tintColor=VuoNode::TintNone, VuoRendererColors::SelectionType selectionType=VuoRendererColors::noSelection, bool isHovered=false, VuoRendererColors::HighlightType highlightType=VuoRendererColors::noHighlight, 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 | constantFill (void) |
Returns the color for the background of constants. | |
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 | portFill (void) |
Returns the color for the background of ports in the main section of the node. | |
QColor | publishedPortFill (void) |
Returns the color for the background of ports in the published port sidebars. | |
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 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. | |
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. | |
Specifies the various levels of highlighting that may be applied to a given component.
Specifies the various levels of selection coloring that may be applied to a given component.
VuoRendererColors::VuoRendererColors | ( | VuoNode::TintColor | tintColor = VuoNode::TintNone , |
VuoRendererColors::SelectionType | selectionType = VuoRendererColors::noSelection , |
||
bool | isHovered = false , |
||
VuoRendererColors::HighlightType | highlightType = VuoRendererColors::noHighlight , |
||
qint64 | timeOfLastActivity = VuoRendererItem::notTrackingActivity |
||
) |
Creates a new color scheme provider, optionally tinted with tintColor
.
If selectionType
is anything other than VuoRendererColors::noSelection
, the colors are also tinted slightly blue and have their opacity increased to indicate selection. If isHovered
is true, the colors are also slightly tinted dark blue to indicate potential for selection. If highlightType
is anything other than VuoRendererColors::noHighlight
, 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.
QColor VuoRendererColors::animatedeventBlockingBarrier | ( | void | ) |
Returns the color for the evnet wall or door of the animated copy of a port.
QColor VuoRendererColors::animatedPortFill | ( | void | ) |
Returns the color for the background of an animated copy of a port.
QColor VuoRendererColors::cableMain | ( | void | ) |
Returns the color for the main cable body.
QColor VuoRendererColors::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 VuoRendererColors::canvasFill | ( | void | ) |
Returns the color for the background of the composition canvas.
Can be overridden by VuoRendererComposition::setBackgroundTransparent
.
QColor VuoRendererColors::constantFill | ( | void | ) |
Returns the color for the background of constants.
QColor VuoRendererColors::eventBlockingBarrier | ( | void | ) |
Returns the color for a port's event wall or door.
|
static |
Returns a shared, untinted color scheme provider.
Don't free this object.
|
static |
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 |
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 |
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 |
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.
QColor VuoRendererColors::nodeClass | ( | void | ) |
Returns the color for the node's class name text in the node's title bar.
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 port fill, and 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::nodeTitle | ( | void | ) |
Returns the color for the node's title text in the node's title bar.
QColor VuoRendererColors::portFill | ( | void | ) |
Returns the color for the background of ports in the main section of the node.
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.
QColor VuoRendererColors::portTitlebarFill | ( | void | ) |
Returns the color for the background of ports in the titlebar of the node.
QColor VuoRendererColors::publishedPortFill | ( | void | ) |
Returns the color for the background of ports in the published port sidebars.
|
static |
Time period, in ms, over which a 'Show Events'-mode animation (e.g., for trigger port firing) fades to its minimum alpha level.