Vuo  1.2.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | List of all members
VuoRendererKeyListForReadOnlyDictionary Class Reference

Description

Represents the compact form of a "Make List" node that outputs a list of keys as input to a read-only input "Make Dictionary" node.

Public Member Functions

 VuoRendererKeyListForReadOnlyDictionary (VuoNode *baseNode, VuoRendererSignaler *signaler)
 Creates the compact form for a collapsed "Make List" node that outputs a list of keys as input to a read-only input "Make Dictionary" node.
 
VuoPortgetRenderedHostPort ()
 Returns the input port to which this item is visually attached in the rendered composition.
 
VuoNodegetRenderedHostNode ()
 Returns the node to which this item is visually attached in the composition rendering.
 
set< VuoNode * > getCoattachments (void)
 Returns the set of co-attachments expected to co-exist with this attachment.
 
VuoNodegetValueListNode (void)
 Returns the "Make List" node that outputs the list of values corresponding to this node's output list of keys.
 
- Public Member Functions inherited from VuoRendererHiddenInputAttachment
 VuoRendererHiddenInputAttachment (VuoNode *baseNode, VuoRendererSignaler *signaler)
 Creates an input attachment with no visible rendering.
 
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
 Draws an input attachment with no visible rendering.
 
QRectF boundingRect (void) const
 Returns the bounding rectangle of this hidden input attachment.
 
QPainterPath shape () const
 Returns the shape of the hidden input attachment, for use in collision detection, hit tests, and QGraphicsScene::items() functions.
 
- Public Member Functions inherited from VuoRendererInputAttachment
 VuoRendererInputAttachment (VuoNode *baseNode, VuoRendererSignaler *signaler)
 Creates a node that is rendered as an attachment to another node's input port.
 
VuoPortgetUnderlyingHostPort ()
 Returns the input port to which this item is attached in the underlying composition.
 
VuoNodegetUnderlyingHostNode ()
 Returns the node to which this item is attached in the underlying composition.
 
- Public Member Functions inherited from VuoRendererNode
 VuoRendererNode (VuoNode *baseNode, VuoRendererSignaler *signaler)
 Creates a renderer detail for the specified base node.
 
virtual QRectF getOuterNodeFrameBoundingRect (void) const
 Returns the bounding rect for the node's outer frame (excluding ports).
 
vector< VuoRendererInputDrawer * > getAttachedInputDrawers (void) const
 Returns a vector containing all of the drawers attached to any of this node's input ports.
 
qreal getInputDrawerOffset (unsigned int portIndex) const
 Returns the horizontal offset necessary to prevent the drawer at portIndex from overlapping any drawers beneath it.
 
void updateNodeFrameRect (void)
 Calculates and updates the cached inner frame of a node based on its current attributes.
 
void setMissingImplementation (bool missingImplementation)
 Sets whether the node is rendered as though its implementation is missing.
 
void setProxyNode (VuoRendererNode *proxyNode)
 If set, this node will not be drawn; its drawing will be handled by proxyNode.
 
VuoRendererNodegetProxyNode (void) const
 Returns this node's rendering proxy.
 
VuoRendererTypecastPortgetProxyCollapsedTypecast (void) const
 Returns the collapsed typecast port rendered in place of this node, or NULL if none.
 
void setAlwaysDisplayPortNames (bool displayPortNames)
 Sets the boolean indicating whether this node's ports, including unambiguous ones, should always have their names displayed.
 
bool nameDisplayEnabledForPort (const VuoRendererPort *port)
 Returns a boolean indicating whether the name of the provided port should be rendered within the node.
 
bool nameDisplayEnabledForInputPorts ()
 Returns a boolean indicating whether the names of input ports should be rendered within the node.
 
bool nameDisplayEnabledForOutputPorts ()
 Returns a boolean indicating whether the names of output ports should be rendered within the node.
 
QVariant itemChange (GraphicsItemChange change, const QVariant &value)
 Updates the node and its connected cables to reflect changes in state.
 
void updateGeometry (void)
 Schedules a redraw of this node.
 
void updateConnectedCableGeometry (void)
 Schedules a redraw of this node's connected cables.
 
set< VuoCable * > getConnectedCables (bool includePublishedCables)
 Returns the set of cables connected to this node.
 
set< VuoCable * > getConnectedInputCables (bool includePublishedCables)
 Returns the set of input cables connected to this node.
 
set< VuoCable * > getConnectedOutputCables (bool includePublishedCables)
 Returns the set of output cables connected to this node.
 
VuoRendererPortListgetInputPorts (void)
 Returns this node's input ports, as a VuoRendererPortList.
 
VuoRendererPortListgetOutputPorts (void)
 Returns this node's output ports, as a VuoRendererPortList.
 
vector< pair< QString,
json_object * > > 
getConstantPortValues ()
 Returns an ordered list of port name-value pairs for the ports that belong to this node and whose values are currently constant.
 
void replaceInputPort (VuoRendererPort *oldPort, VuoRendererPort *newPort)
 Replaces input port old with new.
 
void addInputPort (VuoRendererPort *newPort)
 Adds input port port to the node.
 
bool hasGenericPort (void)
 Returns a boolean indicating whether this node has any ports with generic data types.
 
void setTitle (string title)
 Sets the title for this node; re-lays-out its ports to accommodate the new name.
 
void resetTimeLastExecuted ()
 Resets the time last executed to a value that causes the node to be painted as if activity-rendering were disabled.
 
void setExecutionEnded ()
 Updates the node's execution state to indicate that it has just finished executing.
 
void setExecutionBegun ()
 Updates the node's execution state to indicate that it is currently executing.
 
qint64 getTimeLastExecutionEnded ()
 Returns the time, in ms since epoch, that this node's most recent node execution ended, or if applicable, a special VuoRendererItem::activityState.
 
void layoutConnectedInputDrawers (void)
 Calculates and sets the positions of the node's connected input drawers relative to the node.
 
void layoutConnectedInputDrawersAtAndAbovePort (VuoRendererPort *port)
 Calculates and sets the positions of any input drawers connected to this node's ports beginning with the provided port and iterating through the ports rendered above (i.e., with indices lower than) that port.
 
void setCacheModeForNodeAndPorts (QGraphicsItem::CacheMode mode)
 Sets the cache mode of this node and its child ports to mode.
 
void setCacheModeForConnectedCables (QGraphicsItem::CacheMode mode)
 Sets the cache mode of this node's connected cables to mode.
 
- Public Member Functions inherited from VuoBaseDetail< VuoNode >
 VuoBaseDetail (string description, VuoNode *base)
 Creates a VuoNode detail class.
 
VuoNodegetBase (void) const
 Returns the VuoNode detail class instance's base class instance.
 
void setBase (VuoNode *base)
 Sets the VuoNode detail class instance's base class instance.
 

Static Public Member Functions

static bool isKeyListForReadOnlyDictionary (VuoNode *baseNode)
 Returns a boolean indicating whether the provided baseNode should be rendered as a collapsed "Make List" node that outputs a list of keys as input to a read-only input "Make Dictionary" node, as determined from its connected components.
 

Additional Inherited Members

- Public Types inherited from VuoRendererNode
enum  Type { node, detachedConstant, detachedDrawer, detachedTypecast }
 Specifies how this node is graphically represented. More...
 
- Static Public Attributes inherited from VuoRendererNode
static const qreal nodeTitleHeight = round(VuoRendererFonts::nodeTitleFontSize + VuoRendererFonts::thickPenWidth*1./8.)
 The height of the node's title.
 
static const qreal cornerRadius = VuoRendererFonts::thickPenWidth/8.0
 The radius of rounded corners.
 
- Protected Member Functions inherited from VuoRendererNode
virtual void hoverEnterEvent (QGraphicsSceneHoverEvent *event)
 Handle mouse hover start events.
 
virtual void hoverMoveEvent (QGraphicsSceneHoverEvent *event)
 Handle mouse hover move events.
 
virtual void hoverLeaveEvent (QGraphicsSceneHoverEvent *event)
 Handle mouse hover leave events.
 
void mouseReleaseEvent (QGraphicsSceneMouseEvent *event)
 Handle mouse release events.
 
void mouseDoubleClickEvent (QGraphicsSceneMouseEvent *event)
 Handle mouse double-click events.
 
void keyPressEvent (QKeyEvent *event)
 Handle key-press events.
 
- Static Protected Member Functions inherited from VuoRendererInputAttachment
static VuoPortgetUnderlyingHostPortForNode (VuoNode *node)
 Returns the input port to which the provided node is attached in the underlying composition.
 
static VuoNodegetUnderlyingHostNodeForNode (VuoNode *node)
 Returns the node to which the provided node is attached in the underlying composition.
 
static VuoNodegetListNodeConnectedToInputPort (VuoPort *port)
 Returns the collapsed list node attached to the provided input port, or NULL if none.
 
- Protected Attributes inherited from VuoRendererNode
VuoRendererSignalersignaler
 The object that sends signals on behalf of this renderer node.
 
VuoRendererPortListinputPorts
 The list of input renderer ports belonging to this renderer node.
 
VuoRendererPortListoutputPorts
 The list of output renderer ports belonging to this renderer node.
 
qint64 timeLastExecutionEnded
 The time at which this node's running counterpart last completed an execution.
 
bool alwaysDisplayPortNames
 Indicates whether this node's ports, even unambiguous ones, should always have their names displayed.
 

Constructor & Destructor Documentation

VuoRendererKeyListForReadOnlyDictionary::VuoRendererKeyListForReadOnlyDictionary ( VuoNode baseNode,
VuoRendererSignaler signaler 
)

Creates the compact form for a collapsed "Make List" node that outputs a list of keys as input to a read-only input "Make Dictionary" node.

Member Function Documentation

set< VuoNode * > VuoRendererKeyListForReadOnlyDictionary::getCoattachments ( void  )
virtual

Returns the set of co-attachments expected to co-exist with this attachment.

For a key list, that includes its sibling value list and the "Make Dictionary" node that they each provide to.

Reimplemented from VuoRendererInputAttachment.

VuoNode * VuoRendererKeyListForReadOnlyDictionary::getRenderedHostNode ( )
virtual

Returns the node to which this item is visually attached in the composition rendering.

Reimplemented from VuoRendererInputAttachment.

VuoPort * VuoRendererKeyListForReadOnlyDictionary::getRenderedHostPort ( )
virtual

Returns the input port to which this item is visually attached in the rendered composition.

Reimplemented from VuoRendererInputAttachment.

VuoNode * VuoRendererKeyListForReadOnlyDictionary::getValueListNode ( void  )

Returns the "Make List" node that outputs the list of values corresponding to this node's output list of keys.

bool VuoRendererKeyListForReadOnlyDictionary::isKeyListForReadOnlyDictionary ( VuoNode baseNode)
static

Returns a boolean indicating whether the provided baseNode should be rendered as a collapsed "Make List" node that outputs a list of keys as input to a read-only input "Make Dictionary" node, as determined from its connected components.


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