Vuo  0.3
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Public Member Functions | Protected Attributes | List of all members
VuoRendererGraph Class Reference

Description

Provides a canvas upon which nodes and cables can be rendered.

Public Member Functions

 VuoRendererGraph ()
 Creates an empty canvas upon which nodes and cables can be rendered.
 
void setParser (VuoCompilerGraphvizParser *parser)
 Specifies a Graphviz parser instance to be used by this graph.
 
VuoRendererNodecreateNode (VuoNode *node)
 Creates a renderer detail for the specified node.
 
VuoRendererNodeaddNode (VuoNode *node)
 Creates a renderer detail for the specified node and adds it to the canvas.
 
VuoRendererNodeaddExistingNode (VuoRendererNode *rn)
 Adds a pre-existing renderer node to the canvas.
 
VuoRendererCablecreateCable (VuoCable *c)
 Creates a renderer detail for the specified cable.
 
VuoRendererCableaddCable (VuoCable *cable)
 Creates a renderer detail for the specified cable and adds it to the canvas.
 
VuoRendererCableaddExistingCable (VuoRendererCable *rc)
 Adds a pre-existing renderer cable to the canvas.
 
void loadComposition (void)
 Loads the composition associated with the input parser if one is provided, and with the graph's member parser otherwise.
 
VuoRendererNodegetNodeNameTaken (string name)
 Returns a pointer to the VuoRendererNode currently assigned the input Graphviz identifier, or NULL if the identifier is unassigned.
 
void collapseTypecastNodes (void)
 Once all nodes and cables have been added to the scene, call this to convert each freestanding typecast node into a mini-node attached to its destination node.
 
VuoRendererTypecastPortcollapseTypecastNode (VuoRendererNode *rn)
 Convert a freestanding typecast node into a mini-node attached to its destination node; returns a pointer to the newly collapsed node.
 
VuoRendererNodeuncollapseTypecastNode (VuoRendererTypecastPort *typecast)
 Convert a collapsed typecast mini-node back into a freestanding node.
 
void removePortEligibilityHighlighting (void)
 Removes connection eligibility highlighting from all ports in the scene.
 
void setAnyNodeHasBeenRepositioned (bool repositioned)
 Sets a boolean indicating whether any node in this graph has been repositioned since the graph was first loaded.
 
bool getAnyNodeHasBeenRepositioned (void) const
 Returns a boolean indicating whether any node in this graph has been repositioned since the graph was first loaded.
 

Protected Attributes

VuoCompilerGraphvizParserparser
 
map< string, VuoRendererNode * > nodeNameTaken
 
bool anyNodeHasBeenRepositioned
 
VuoRendererSignalersignaler
 

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