video
Class VideoProcessor

java.lang.Object
  extended by video.VideoProcessor
All Implemented Interfaces:
java.awt.event.WindowListener, java.util.EventListener, ControlMessageReceiver

public class VideoProcessor
extends java.lang.Object
implements ControlMessageReceiver, java.awt.event.WindowListener

This class controls the output from Auditorium. It receives OSC and control messages from one or more remote AudioProcessor objects and takes appropriate action, that being either creating an AudioMessage object and handing it to a video output module, or reacting to a control message in the way requested.


Constructor Summary
VideoProcessor()
          Constructor.
 
Method Summary
 void init(int oscPort, int controlPort, boolean fullScreen)
          When called, this object starts to listen on the specified ports.
 void log(java.lang.Object caller, java.lang.String message, int code)
          Called internally by this and other objects.
static void main(java.lang.String[] args)
           
 void receiveControlMessage(ControlMessage controlMessage)
          Receives a control message from the AudioProcessor including an object
 void receiveOSCMessage(java.lang.Object[] messageData)
          Receives an OSC message from the AudioProcessor
 void setLogger(Logger logger)
          Sets the logger object used for logging.
 void windowActivated(java.awt.event.WindowEvent arg0)
           
 void windowClosed(java.awt.event.WindowEvent event)
           
 void windowClosing(java.awt.event.WindowEvent event)
           
 void windowDeactivated(java.awt.event.WindowEvent arg0)
           
 void windowDeiconified(java.awt.event.WindowEvent arg0)
           
 void windowIconified(java.awt.event.WindowEvent arg0)
           
 void windowOpened(java.awt.event.WindowEvent arg0)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VideoProcessor

public VideoProcessor()
Constructor. GNDN.

Method Detail

setLogger

public void setLogger(Logger logger)
Sets the logger object used for logging. May be replaced by static calls.

Parameters:
logger -

init

public void init(int oscPort,
                 int controlPort,
                 boolean fullScreen)
          throws java.net.SocketException
When called, this object starts to listen on the specified ports.

Parameters:
oscPort -
controlPort -
fullScreen -
Throws:
java.net.SocketException

receiveOSCMessage

public void receiveOSCMessage(java.lang.Object[] messageData)
Receives an OSC message from the AudioProcessor

Parameters:
messageData -

receiveControlMessage

public void receiveControlMessage(ControlMessage controlMessage)
Receives a control message from the AudioProcessor including an object

Specified by:
receiveControlMessage in interface ControlMessageReceiver
Parameters:
controlMessage -

log

public void log(java.lang.Object caller,
                java.lang.String message,
                int code)
Called internally by this and other objects. Logs messages to the log file if we are in logging mode.

Parameters:
caller -
message -
code -

windowOpened

public void windowOpened(java.awt.event.WindowEvent arg0)
Specified by:
windowOpened in interface java.awt.event.WindowListener

windowClosing

public void windowClosing(java.awt.event.WindowEvent event)
Specified by:
windowClosing in interface java.awt.event.WindowListener

windowClosed

public void windowClosed(java.awt.event.WindowEvent event)
Specified by:
windowClosed in interface java.awt.event.WindowListener

windowIconified

public void windowIconified(java.awt.event.WindowEvent arg0)
Specified by:
windowIconified in interface java.awt.event.WindowListener

windowDeiconified

public void windowDeiconified(java.awt.event.WindowEvent arg0)
Specified by:
windowDeiconified in interface java.awt.event.WindowListener

windowActivated

public void windowActivated(java.awt.event.WindowEvent arg0)
Specified by:
windowActivated in interface java.awt.event.WindowListener

windowDeactivated

public void windowDeactivated(java.awt.event.WindowEvent arg0)
Specified by:
windowDeactivated in interface java.awt.event.WindowListener

main

public static void main(java.lang.String[] args)