Allolib  1.0
C++ Components For Interactive Multimedia
al_DistributedScene.hpp
1 #ifndef AL_DISTRIBUTEDSCENE_HPP
2 #define AL_DISTRIBUTEDSCENE_HPP
3 
4 #include "al/protocol/al_OSC.hpp"
5 #include "al/scene/al_DynamicScene.hpp"
6 #include "al/ui/al_ParameterServer.hpp"
7 
8 namespace al {
18 public:
19  DistributedScene(std::string name = "scene", int threadPoolSize = 0,
20  TimeMasterMode masterMode = TimeMasterMode::TIME_MASTER_CPU);
21 
22  DistributedScene(TimeMasterMode masterMode)
23  : DistributedScene("scene", 0, masterMode) {}
24 
25  std::string name() { return mName; }
26 
27  void registerNotifier(OSCNotifier &notifier) { mNotifier = &notifier; }
28 
29  virtual void allNotesOff() override;
30 
31  virtual bool consumeMessage(osc::Message &m,
32  std::string rootOSCPath = "") override;
33 
34 protected:
35 private:
36  OSCNotifier *mNotifier{nullptr};
37  std::string mName;
38 };
39 
40 } // namespace al
41 
42 #endif // AL_DISTRIBUTEDSCENE_HPP
The DistributedScene class.
virtual bool consumeMessage(osc::Message &m, std::string rootOSCPath="") override
Returns true if message was consumed by this class.
virtual void allNotesOff() override
Turn off all notes immediately (without calling triggerOff() )
The DynamicScene class.
Definition: al_App.hpp:23