public class SyphonClient extends Object
Constructor and Description |
---|
SyphonClient(PApplet parent)
Constructor that binds this client to the
first available server.
|
SyphonClient(PApplet parent,
String appName)
Constructor that binds this client to the
specified named server.
|
SyphonClient(PApplet parent,
String appName,
String serverName)
Constructor that binds this client to the
specified named server.
|
Modifier and Type | Method and Description |
---|---|
boolean |
available()
Returns true if a new frame is available.
|
PGraphics |
getGraphics(PGraphics dest)
Copies the new frame to a PGraphics object.
|
PImage |
getImage(PImage dest) |
PImage |
getImage(PImage dest,
boolean loadPixels)
Copies the new frame into a PImage object.
|
HashMap<String,String> |
getServerName()
Returns a hash map containing two key-value pairs: one (key=="AppName")
containing the name of the application running the server bound to this
client, the other (key=="ServerName") is the actual name of the server.
|
static HashMap<String,String>[] |
listServers()
Returns an array of hash maps containing the names of the currently
available Syphon servers.
|
void |
stop()
Stops the client.
|
public PGraphics tempDest
public SyphonClient(PApplet parent)
parent
- public SyphonClient(PApplet parent, String appName)
parent
- serverName
- public static HashMap<String,String>[] listServers()
public HashMap<String,String> getServerName()
public boolean available()
public PGraphics getGraphics(PGraphics dest)
dest
- public PImage getImage(PImage dest, boolean loadPixels)
dest
- public void stop()
Processing library Syphon by Andres Colubri. (c) 2011-14