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. | |
VuoRendererNode * | createNode (VuoNode *node) |
Creates a renderer detail for the specified node. | |
VuoRendererNode * | addNode (VuoNode *node) |
Creates a renderer detail for the specified node and adds it to the canvas. | |
VuoRendererNode * | addExistingNode (VuoRendererNode *rn) |
Adds a pre-existing renderer node to the canvas. | |
VuoRendererCable * | createCable (VuoCable *c) |
Creates a renderer detail for the specified cable. | |
VuoRendererCable * | addCable (VuoCable *cable) |
Creates a renderer detail for the specified cable and adds it to the canvas. | |
VuoRendererCable * | addExistingCable (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. | |
VuoRendererNode * | getNodeNameTaken (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. | |
VuoRendererTypecastPort * | collapseTypecastNode (VuoRendererNode *rn) |
Convert a freestanding typecast node into a mini-node attached to its destination node; returns a pointer to the newly collapsed node. | |
VuoRendererNode * | uncollapseTypecastNode (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 | |
VuoCompilerGraphvizParser * | parser |
map< string, VuoRendererNode * > | nodeNameTaken |
bool | anyNodeHasBeenRepositioned |
VuoRendererSignaler * | signaler |