QuartzComposerView:
Filter:
Classes | GUI > Views

QuartzComposerView : View : QObject : Object

view for rendering Quartz Composer Compositions

Description

QuartzComposerView allows for the rendering of Quartz Composer Compositions within SC on macOS. Quartz Composer is a visual programming environment for processing and rendering graphical data, which is distributed free of charge as part of Apple's XCode Development Tools. QC is highly optimised to work with the macOS graphics system, and in general should be more efficient than Pen. For more information on QC see: https://developer.apple.com/library/mac/documentation/GraphicsImaging/Conceptual/QuartzComposerUserGuide/qc_intro/qc_intro.html and http://en.wikipedia.org/wiki/Quartz_Composer

You can access input and output ports using the methods setInputValue, getInputValue and getOutputValue, or (do to a slight of hand in the implementation, using the port keys as getters and setters directly. The following two lines of code are thus equivalent:

Class Methods

Inherited class methods

Undocumented class methods

QuartzComposerView.qtClass

Instance Methods

.path

.path = argpath

Get or set the path of the currently composition as a String.

.inputKeys

Get the keys of the current composition's input ports.

Returns:

An Array of Symbols.

.outputKeys

Get the keys of the current composition's output ports.

Returns:

An Array of Symbols.

.start

Start rendering the loaded composition.

.stop

Stop rendering the loaded composition.

.setInputValue(key, value)

Set the value of the input port specified by key.

Arguments:

key

A String or Symbol matching the port's key.

value

The type of value must correspond to the type of the port, but Floats, Integers, and Booleans are converted if needed. (true = 1, false = 0)

.getInputValue(key)

Get the current value of an input port. The type of object returned will correspond to the port's type.

Arguments:

key

A String or Symbol matching the port's key.

.getOutputValue(key)

Get the current value of an output port. The type of object returned will correspond to the port's type.

Arguments:

key

A String or Symbol matching the port's key.

.maxFPS = rate

Set the maximum frames per second at which the composition will render.

Arguments:

rate

A Float or Integer specifying the desired max frame rate. A value of 0 indicates no limit.

.openInQC

Open the currently loaded composition in Quartz Composer. You will need to reload the composition into the view before any saved changes take effect.

Inherited instance methods

Undocumented instance methods

.doesNotUnderstand(selector ... args)

Examples