void reevaluateLedConfig(void) { updateLedCount(); determineLedStripDimensions(); determineOrientationLimits(); updateLedRingCounts(); }
void reevaluateLedConfig(void) { updateLedCount(); updateDimensions(); updateLedRingCounts(); updateRequiredOverlay(); }
void LedManager::addHub(string port,int baudRate,ofColor color) { hubs.push_back(new Hub(numHubs,port,baudRate,color)); numHubs = hubs.size(); printf("Add hub, new hub size %i\n",numHubs); updateLedCount(); }
void LedManager::removeHub(int hubIndex) { if(hubIndex == -1) hubIndex = numHubs-1; if(hubIndex < numHubs && numHubs > 0) hubs.erase(hubs.begin()+hubIndex); numHubs = hubs.size(); for(int i=0;i<numHubs;i++) hubs[i]->hubIndex = i; updateLedCount(); }
void LedManager::addHub(ofxXmlSettings settings, int hubIndex) { printf("Add Hub %i\n",hubIndex); //tmp ofColor colors[3] = {ofColor::orangeRed,ofColor::aliceBlue,ofColor::forestGreen}; hubs.push_back(new Hub(settings,hubIndex,colors[hubIndex])); numHubs = hubs.size(); printf("Add hub, new hub size %i\n",numHubs); updateLedCount(); }
void LedManager::loadSettings(ofxXmlSettings settings) { settings.pushTag("leds"); int loadedHubs = settings.getNumTags("hub"); printf("Loaded hubs %i\n",loadedHubs); for(int i=0;i<loadedHubs;i++) { addHub(settings,i); //hubs[i]->loadSettings(settings,i); } settings.popTag(); updateLedCount(); updatePositions(); updateLedMap(); }
void reevaluateLedConfig(void) { updateLedCount(); updateDimensions(); updateLedRingCounts(); }