Projektordner für das Team Deutsches Museum (FORUM).
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ofApp.h 1.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. #pragma once
  2. #include "ofMain.h"
  3. #include "particleSystem.hpp"
  4. #include "greatWhole.hpp"
  5. #include "avatar.hpp"
  6. #include "ofxOsc.h"
  7. #include "visitor.hpp"
  8. #include "objectPhysics.hpp"
  9. #include "particle.hpp"
  10. int WINDOWSIZE_WIDTH = 1000;
  11. int WINDOWSIZE_HEIGHT = 1000;
  12. // *** SETUP OSC INFORMATION *** SETUP OSC INFORMATION ***
  13. #define PORT 12345
  14. #define HOST "xxx.xxx.xxx.xxx"
  15. class ofApp : public ofBaseApp{
  16. public:
  17. void setup();
  18. void update();
  19. void draw();
  20. void keyPressed(int key);
  21. void keyReleased(int key);
  22. void mouseMoved(int x, int y);
  23. void mouseDragged(int x, int y, int button);
  24. void mousePressed(int x, int y, int button);
  25. void mouseReleased(int x, int y, int button);
  26. void mouseEntered(int x, int y);
  27. void mouseExited(int x, int y);
  28. void windowResized(int w, int h);
  29. void dragEvent(ofDragInfo dragInfo);
  30. void gotMessage(ofMessage msg);
  31. int PARTICLE_COUNT;
  32. //+1 for every new Particle, -1 for every Particle that gets older than the defined maxLife
  33. int VISITOR_COUNT;
  34. //the visitor count will be fed with the nBlobs-value from incoming OSC messages
  35. int VISITOR_COUNT_LASTFRAME;
  36. private:
  37. // *** OSC *** OSC *** OSC ***
  38. string oscMsg;
  39. ofxOscReceiver receiver;
  40. float timeSent, timeReceived;
  41. //Information about what is going on in the scene
  42. int nBlobs; //count of the tracked visitors
  43. vector<Visitor*> visitors;
  44. vector<ParticleSystem*> particleSystems;
  45. GreatWhole dasGrosseGanze;
  46. };