SPAOP
|
A listener interface that can be registered with the VisualStreamReceiver. More...
#include <VisualStreamReceiver.h>
Public Member Functions | |
virtual | ~Listener () |
virtual int | onSourceActivate (int sourceID)=0 |
Called when the /WONDER/source/activate message is recieved. More... | |
virtual int | onSourceDeactivate (int sourceID)=0 |
Called when the /WONDER/source/deactivate message is recieved. More... | |
virtual int | onSourcePosition (int sourceID, float xPos, float yPos)=0 |
Called when the /WONDER/source/position message is recieved with one integer and two float parameters. More... | |
virtual int | onSourceAngle (int sourceID, float angle)=0 |
Called when the /WONDER/source/angle message is recieved with one integer and oe float parameter. More... | |
virtual int | onSourceType (int sourceID, int type)=0 |
Called when the /WONDER/source/type message is recieved. More... | |
virtual int | onSourceName (int sourceID, const std::string &sourceName)=0 |
Called when the /WONDER/source/name message is recieved. More... | |
virtual int | onSourceColor (int sourceID, int r, int g, int b)=0 |
Called when the /WONDER/source/color message is recieved. More... | |
virtual int | onSourceGroupId (int sourceID, int groupID)=0 |
Called when the /WONDER/source/groupID message is recieved. More... | |
virtual int | onSourceRotatingDirection (int sourceID, int inverted)=0 |
Called when the /WONDER/source/rotationDirection message is recieved. More... | |
virtual int | onSourceScalingDirection (int sourceID, int inverted)=0 |
Called when the /WONDER/source/scalingDirection message is recieved. More... | |
virtual int | onSourceDopplerEffect (int sourceID, int on)=0 |
Called when the /WONDER/source/dopplerEffect message is recieved. More... | |
virtual int | onListenerPosition (int listenerID, float x, float y)=0 |
Called when the /WONDER/listener/position message is received. More... | |
virtual int | onGlobalMaxNoSources (int maxSources)=0 |
Called when the /WONDER/global/maxNoSources message is recieved. More... | |
virtual int | onGlobalRenderpolygon (Room &room)=0 |
On receiving the /WONDER/global/renderpolygon message, the VisualStreamReceiver must create a Room object from the received information and pass it to the listener. More... | |
virtual int | onProjectXmlDump (int err, const std::string &xmlDump)=0 |
Called when the /WONDER/project/xmlDump message is recieved. More... | |
virtual int | onStreamVisualPong (int pingCount)=0 |
Called when a /WONDER/stream/visual/ping is received. More... | |
virtual int | onStreamVisualConnect (OscSender *replyTo) |
Called when any /WONDER/stream/visual/connect message is recieved. More... | |
virtual int | onStreamVisualDisconnect () |
Called when any /WONDER/stream/visual/disconnect message is recieved. More... | |
virtual int | onReply (std::string replyToMsg, int state, std::string msg)=0 |
Called when the /WONDER/project/xmlDump message is recieved. More... | |
virtual int | onPluginStandalone (bool standAloneOn)=0 |
Called when the /WONDER/plugin/standalone message is recieved. More... | |
A listener interface that can be registered with the VisualStreamReceiver.
On incoming OSC-messages, the VisualStreamReciever will call the listener's corresponding methods.
|
inlinevirtual |
|
pure virtual |
Called when the /WONDER/global/maxNoSources message is recieved.
maxSources | The maximum number of sources the current WONDER setup can handle. |
|
pure virtual |
On receiving the /WONDER/global/renderpolygon message, the VisualStreamReceiver must create a Room object from the received information and pass it to the listener.
room | A Room object describing the current WONDER setup's speaker positioning. |
|
pure virtual |
Called when the /WONDER/listener/position message is received.
listenerID | The ID of the listener. |
x | The x-coordinate of the listener's position. |
y | The x-coordinate of the listener's position. |
|
pure virtual |
Called when the /WONDER/plugin/standalone message is recieved.
This is used to change the communication mode of the SourceController class: In "standalone" mode, the SourceController sends the source controlling messages to its peers (via multicast) only. If standalone is off ("linked to wonder" mode), the SourceController sends those messages to cWONDER.
standAlone | true for "standalone" mode, false for "linked to wonder" mode. |
|
pure virtual |
Called when the /WONDER/project/xmlDump message is recieved.
err | Error parameter sent by cWONDER (1 for error, 0 for no error). |
xmlDump | An XML formatted string describing a cWONDER project (as defined in cwonder_project.dtd). |
|
pure virtual |
Called when the /WONDER/project/xmlDump message is recieved.
This message is sent as reply to another message, confirming successfull execution or transmitting an error message.
replyToMsg | The OSC path of the message that triggered this reply. |
state | 0 for confirmations of successfull operations, != 0 for error messages. |
msg | The actual reply text. |
|
pure virtual |
Called when the /WONDER/source/activate message is recieved.
sourceID | The wonder-specific ID of the source to be activated (recieved with the incoming message). May range from 0 to N-1 where N is the total number of sources supported by the current WONDER installation. |
|
pure virtual |
Called when the /WONDER/source/angle message is recieved with one integer and oe float parameter.
sourceID | The wonder-specific ID of the source to be whose angle parameters is transmitted. |
angle | The new angle (in Degree). |
|
pure virtual |
Called when the /WONDER/source/color message is recieved.
sourceID | The wonder-specific ID of the source to be whose colour is transmitted. |
r | The red value of the new colour, ranging from 0 to 255. |
g | The green value of the new colour, ranging from 0 to 255. |
b | The blue value of the new colour, ranging from 0 to 255. |
|
pure virtual |
Called when the /WONDER/source/deactivate message is recieved.
sourceID | The wonder-specific ID of the source to be activated (recieved with the incoming message). May range from 0 to N-1 where N is the total number of sources supported by the current WONDER installation. |
|
pure virtual |
Called when the /WONDER/source/dopplerEffect message is recieved.
sourceID | The wonder-specific ID of the source to be whose doppler effect setting is transmitted. |
on | 1 for on, 0 for off. |
|
pure virtual |
Called when the /WONDER/source/groupID message is recieved.
sourceID | The wonder-specific ID of the source to be whose groupID is transmitted. |
groupID | The groupID of the source. |
|
pure virtual |
Called when the /WONDER/source/name message is recieved.
sourceID | The wonder-specific ID of the source to be whose name is transmitted. |
sourceName | The new name of the source. |
|
pure virtual |
Called when the /WONDER/source/position message is recieved with one integer and two float parameters.
sourceID | The wonder-specific ID of the source to be whose position parameters are transmitted. |
xPos | The x-axis coordinate (in meters). |
yPos | The y-axis coordinate (in meters). |
|
pure virtual |
Called when the /WONDER/source/rotationDirection message is recieved.
sourceID | The wonder-specific ID of the source to be whose rotation direction is transmitted. |
inverted | 1 for "inverted", 0 for "not inverted". |
|
pure virtual |
Called when the /WONDER/source/scalingDirection message is recieved.
sourceID | The wonder-specific ID of the source to be whose scaling direction is transmitted. |
inverted | 1 for "inverted", 0 for "not inverted". |
|
pure virtual |
Called when the /WONDER/source/type message is recieved.
sourceID | The wonder-specific ID of the source to be whose type is transmitted. |
type | 0 for a planewave source, 1 for a point source. |
|
inlinevirtual |
Called when any /WONDER/stream/visual/connect message is recieved.
The parameters of the message are ignored, but the Address to reply to is passed as parameter.
replyTo | An OscSender sending to the Address the message was sent from. |
|
inlinevirtual |
Called when any /WONDER/stream/visual/disconnect message is recieved.
|
pure virtual |
Called when a /WONDER/stream/visual/ping is received.
pingCount | An int value that should be the same as in the ping message the current pong message is replying to. |