Vuo  0.4.9
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Modules
Developing Applications that Use Vuo

Description

If you're developing an application, library, or other project, your code can build and run Vuo compositions. One way is by invoking the Vuo command-line tools (see the Vuo Manual), but you can also interact with Vuo programmatically through its C++ API.

To learn how to develop an application that uses Vuo, see:

Setting up your application

To use Vuo, your application needs to link to Vuo.framework, which comes with the Vuo SDK.

Qt Creator

See the example Qt projects for using Vuo inside an application.

Xcode 4

Xcode 5

Todo:
(https://b33p.net/kosada/node/6211)

Compiling and linking a Vuo composition

If you want to run a Vuo composition, you first have to compile and link it.

The easiest way to do that is with the factory methods VuoCompiler::newSeparateProcessRunnerFromCompositionFile and VuoCompiler::newCurrentProcessRunnerFromCompositionFile. These compile and link your composition and return a VuoRunner that's ready to run it.

The VuoCompiler class also provides functions for separately compiling a composition, linking a composition, and compiling a node class, port type, or library module.

Running a Vuo composition

Using the VuoRunner class, you can run and interact with a composition. The composition can run in the same process as the VuoRunner or in a separate process.

The VuoRunner::start and VuoRunner::stop functions allow you to start and stop a composition. While the composition is running, you can use other VuoRunner functions to control it and query it (such such pausing the composition, setting the values of published input ports, and getting the values of published output ports).

You can receive notifications from the running composition (such as when a published output port receives an event) by creating a derived class of VuoRunnerDelegate or VuoRunnerDelegateAdapter. Use VuoRunner::setDelegate to connect your class to the VuoRunner. Your class's VuoRunnerDelegate functions will be called whenever the VuoRunner receives messages from the running composition.

Modules

 CompileAndRunInCurrentProcess.cc
 Example: Compile a composition and run it in the current process.
 
 CompileAndRunInNewProcess.cc
 Example: Compile a composition and run it in a new process.
 
 ListPublishedPorts.cc
 Example: List a composition's published input and output ports.
 
 RunImageFilter (Cocoa)
 Example: Set up a GL context using Cocoa and run a Vuo image filter.
 
 RunImageFilter (GLFW)
 Example: Set up a GL context using GLFW and run a Vuo image filter.
 
 RunImageFilter (Qt)
 Example: Set up a GL context using Qt and run a Vuo image filter.