20 #ifndef VISUALSTREAMRECEIVER_H_INCLUDED
21 #define VISUALSTREAMRECEIVER_H_INCLUDED
55 const std::string &
port) = 0;
58 const std::string &
port) = 0;
120 virtual int onSourceName(
int sourceID,
const std::string& sourceName) = 0;
130 virtual int onSourceColor(
int sourceID,
int r,
int g,
int b) = 0;
238 virtual int onReply(std::string replyToMsg,
int state, std::string msg) = 0;
285 virtual void start() = 0;
288 virtual void stop() = 0;
291 virtual void join() = 0;
308 virtual int port() = 0;
352 const std::string&
port,
353 const std::string& iface) = 0;
359 #endif // VISUALSTREAMRECEIVER_H_INCLUDED
virtual int onListenerPosition(int listenerID, float x, float y)=0
Called when the /WONDER/listener/position message is received.
An abstract class describing the interface for a class that sends out the WONDER-specific OSC-message...
Definition: OscSender.h:43
virtual void setPingHandler(PingHandler *pingHandler)=0
Sets the PingHandler to be called on incoming /WONDER/stream/visual/ping messages.
virtual int onGlobalRenderpolygon(Room &room)=0
On receiving the /WONDER/global/renderpolygon message, the VisualStreamReceiver must create a Room ob...
virtual int onStreamVisualConnect(OscSender *replyTo)
Called when any /WONDER/stream/visual/connect message is recieved.
Definition: VisualStreamReceiver.h:220
virtual OscSender * createSender(const std::string &host, const std::string &port)=0
Returns a OscSender that sends from the port of this server thread to the specified destination...
virtual int onSourceDeactivate(int sourceID)=0
Called when the /WONDER/source/deactivate message is recieved.
virtual ~PingHandler()
Definition: VisualStreamReceiver.h:261
virtual int onSourceScalingDirection(int sourceID, int inverted)=0
Called when the /WONDER/source/scalingDirection message is recieved.
Another listener interface especially for incoming ping messages.
Definition: VisualStreamReceiver.h:258
An interface defining an OSC server thread that receives and handles the messages sent via WONDER's "...
Definition: VisualStreamReceiver.h:36
A factory class that creates VisualStreamReceiver instances.
Definition: VisualStreamReceiver.h:318
A listener interface that can be registered with the VisualStreamReceiver.
Definition: VisualStreamReceiver.h:64
virtual int onPluginStandalone(bool standAloneOn)=0
Called when the /WONDER/plugin/standalone message is recieved.
virtual VisualStreamReceiver * createVisualStreamMulticastReceiver(const std::string &group, const std::string &port, const std::string &iface)=0
Creates a new VisualStreamReciever that listens to a mutlicast group.
virtual int onSourceRotatingDirection(int sourceID, int inverted)=0
Called when the /WONDER/source/rotationDirection message is recieved.
virtual int onGlobalMaxNoSources(int maxSources)=0
Called when the /WONDER/global/maxNoSources message is recieved.
virtual ~Listener()
Definition: VisualStreamReceiver.h:67
virtual void stop()=0
Stops this server thread.
virtual OscSenderThread * createSenderThread(const std::string &host, const std::string &port)=0
virtual ~VisualStreamReceiver()
Destructor.
Definition: VisualStreamReceiver.h:41
virtual ~Factory()
Destructor.
Definition: VisualStreamReceiver.h:322
An interface for a thread implementing the OscSender interface.
Definition: OscSenderThread.h:38
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...
virtual int onStreamVisualPong(int pingCount)=0
Called when a /WONDER/stream/visual/ping is received.
virtual int port()=0
Returns the port this server-thread is listening on.
virtual int onSourceName(int sourceID, const std::string &sourceName)=0
Called when the /WONDER/source/name message is recieved.
virtual void setListener(Listener *listener)=0
Sets the Listener to be called on incoming OSC messages.
virtual int onReply(std::string replyToMsg, int state, std::string msg)=0
Called when the /WONDER/project/xmlDump message is recieved.
virtual int onSourceType(int sourceID, int type)=0
Called when the /WONDER/source/type message is recieved.
A class containing the wonder-specific information about a room (name and vertices).
Definition: Room.h:35
virtual int onSourceActivate(int sourceID)=0
Called when the /WONDER/source/activate message is recieved.
virtual int onSourceDopplerEffect(int sourceID, int on)=0
Called when the /WONDER/source/dopplerEffect message is recieved.
virtual int onSourceColor(int sourceID, int r, int g, int b)=0
Called when the /WONDER/source/color message is recieved.
virtual int onProjectXmlDump(int err, const std::string &xmlDump)=0
Called when the /WONDER/project/xmlDump message is recieved.
virtual int onSourceGroupId(int sourceID, int groupID)=0
Called when the /WONDER/source/groupID message is recieved.
virtual int onStreamVisualPing(int pingCount, OscSender *replyTo)=0
On receiving the /WONDER/stream/visual/ping message, the VisualStreamReceiver must call this method...
virtual VisualStreamReceiver * createVisualStreamReceiver()=0
Creates a new VisualStreamReciever.
virtual void start()=0
Starts this server thread.
virtual void join()=0
Joins this server thread.
virtual int onStreamVisualDisconnect()
Called when any /WONDER/stream/visual/disconnect message is recieved.
Definition: VisualStreamReceiver.h:224
virtual int onSourceAngle(int sourceID, float angle)=0
Called when the /WONDER/source/angle message is recieved with one integer and oe float parameter...