123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146 |
- #pragma once
- #include "ofApp.h"
-
-
- // *** GLOBALS DEFINITION *** GLOBALS DEFINITION *** GLOBALS DEFINITION *** GLOBALS DEFINITION ****
-
-
- //--------------------------------------------------------------
- void ofApp::setup(){
-
-
- for (int i = 0; i < particleSystems.size(); i++){
-
-
-
- }
-
-
- // *** OSC Setup *** OSC Setup *** OSC Setup ***
-
- receiver.setup(PORT);
-
- }
-
- //--------------------------------------------------------------
- void ofApp::update(){
-
-
- // *** OSC RECEIVER *** OSC RECEIVER *** OSC RECEIVER ***
-
-
- /*
-
- Here the program will read and convert the information from the tracking, probably count & coordinates of people entering the ground.
- We have to define, how this information will affect the particleSystems!
-
- Check for every particleSystem, if the information is relevant for its "update".
-
- */
-
-
- // *** RFID Input *** RFID Input *** RFID Input ***
-
- /*
-
-
-
- Here we have to define, how the particleSystems react to RFID input.
- Read ID of a visitor and let the particlesystems react to it.
-
- !!! Here in ofApp.cpp there will only be the transfer of incoming information about IDs, playertypes, etc. into the update-methods of the particleSystems. !!!
-
- For example:
-
- - Tell all particleSystems about a new checkedIn-Visitor
- - Set the playerType of one particular particleSystem to the checked in.
-
- */
-
- for (int p = 0; p < particleSystems.size();)
- {
- // Update particle systems
-
- // particleSystems.at(p)->update("xxx , xxx , xxx , .... ");
-
-
- }
-
-
-
-
- }
-
- //--------------------------------------------------------------
- void ofApp::draw(){
-
-
- //draw all ParticleSystems that are in the particleSystems vector
-
- for(int p = 0; p < particleSystems.size(); p++)
- {
- particleSystems.at(p)->draw();
- }
-
-
- }
-
- //--------------------------------------------------------------
- void ofApp::keyPressed(int key){
-
- }
-
- //--------------------------------------------------------------
- void ofApp::keyReleased(int key){
-
- }
-
- //--------------------------------------------------------------
- void ofApp::mouseMoved(int x, int y){
-
- }
-
- //--------------------------------------------------------------
- void ofApp::mouseDragged(int x, int y, int button){
-
- }
-
- //--------------------------------------------------------------
- void ofApp::mousePressed(int x, int y, int button){
-
- }
-
- //--------------------------------------------------------------
- void ofApp::mouseReleased(int x, int y, int button){
-
- }
-
- //--------------------------------------------------------------
- void ofApp::mouseEntered(int x, int y){
-
- }
-
- //--------------------------------------------------------------
- void ofApp::mouseExited(int x, int y){
-
- }
-
- //--------------------------------------------------------------
- void ofApp::windowResized(int w, int h){
-
- }
-
- //--------------------------------------------------------------
- void ofApp::gotMessage(ofMessage msg){
-
- }
-
- //--------------------------------------------------------------
- void ofApp::dragEvent(ofDragInfo dragInfo){
-
- }
-
- //--------------------------------------------------------------
-
-
|