Vuo  0.4.5
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
VuoComposition Class Reference

Description

A collection of nodes and the cables connecting them.

Public Member Functions

 VuoComposition (void)
 Creates an empty composition.
 
void setName (string name)
 Sets the composition's display name.
 
string getName (void)
 Returns the composition's display name.
 
void addNode (VuoNode *node)
 Adds a node to the composition.
 
void removeNode (VuoNode *node)
 Removes a node from the composition.
 
set< VuoNode * > getNodes (void)
 Returns the nodes in this composition.
 
void addCable (VuoCable *cable)
 Adds a cable to the composition.
 
void removeCable (VuoCable *cable)
 Removes a cable from the composition.
 
set< VuoCable * > getCables (void)
 Returns the cables in this composition.
 
void addPublishedInputCable (VuoCable *cable)
 Adds a published input cable to the composition.
 
void removePublishedInputCable (VuoCable *cable)
 Removes a published input cable from the composition.
 
set< VuoCable * > getPublishedInputCables (void)
 Returns the psuedo-cables attached to the output ports of the published input pseudo-node, if any.
 
void addPublishedOutputCable (VuoCable *cable)
 Adds a published output cable to the composition.
 
void removePublishedOutputCable (VuoCable *cable)
 Removes a published output cable from the composition.
 
set< VuoCable * > getPublishedOutputCables (void)
 Returns the psuedo-cables attached to the input ports of the published output pseudo-node, if any.
 
void addPublishedInputPort (VuoPublishedPort *port, int index)
 Adds a published port to this composition's list of published input ports at the given index.
 
void addPublishedOutputPort (VuoPublishedPort *port, int index)
 Adds a published port to this composition's list of published output ports at the given index.
 
void removePublishedInputPort (int index)
 Removes the published port at the given index from this composition's list of published input ports.
 
void removePublishedOutputPort (int index)
 Removes the published port at the given index from this composition's list of published input ports.
 
vector< VuoPublishedPort * > getPublishedInputPorts (void)
 Returns the published input ports in this composition.
 
vector< VuoPublishedPort * > getPublishedOutputPorts (void)
 Returns the published output ports in this composition.
 
VuoPublishedPortgetPublishedInputPortWithName (string name)
 Returns the published input port with the given name, or null if none matches.
 
VuoPublishedPortgetPublishedOutputPortWithName (string name)
 Returns the published output port with the given name, or null if none matches.
 
VuoPublishedPortgetPublishedInputPortConnectedToPort (VuoPort *port)
 Returns the published input port connected to the given port, or null if none is connected.
 
set< VuoPublishedPort * > getPublishedOutputPortsConnectedToPort (VuoPort *port)
 Returns the set of published output ports connected to the given port.
 
set< pair< VuoPublishedPort
*, VuoPort * > > 
getPublishedInputPortsConnectedToNode (VuoNode *node)
 Returns the set of published input ports connected to the node, and the port on the node to which each is connected.
 
set< pair< VuoPublishedPort
*, VuoPort * > > 
getPublishedOutputPortsConnectedToNode (VuoNode *node)
 Returns the set of published output ports connected to the node, and the port on the node to which each is connected.
 
- Public Member Functions inherited from VuoBase< VuoCompilerComposition, VuoRendererComposition >
 VuoBase (string id)
 Creates a VuoComposition base class.
 
void setCompiler (VuoCompilerComposition *compiler)
 Sets the VuoComposition base class instance's VuoCompilerComposition detail class instance.
 
VuoCompilerCompositiongetCompiler (void) const
 Returns the VuoComposition base class instance's VuoCompilerComposition detail class instance.
 
bool hasCompiler (void) const
 Returns true if this base class instance has a compiler detail.
 
void setRenderer (VuoRendererComposition *renderer)
 Sets the VuoComposition base class instance's VuoRendererComposition detail class instance.
 
VuoRendererCompositiongetRenderer (void) const
 Returns the VuoComposition base class instance's VuoRendererComposition detail class instance.
 
bool hasRenderer (void) const
 Returns true if this base class instance has a renderer detail.
 

Member Function Documentation

void VuoComposition::addCable ( VuoCable cable)

Adds a cable to the composition.

The caller is responsible for adding the nodes on either end of the cable to the composition.

void VuoComposition::addPublishedInputCable ( VuoCable cable)

Adds a published input cable to the composition.

The caller is responsible for adding the cable's "To" node to the composition.

void VuoComposition::addPublishedOutputCable ( VuoCable cable)

Adds a published output cable to the composition.

The caller is responsible for adding the cable's "From" node to the composition.

void VuoComposition::removeNode ( VuoNode node)

Removes a node from the composition.

The caller is responsible for removing any cables attached to the node.


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