void ofxUICanvas::enable() { enabled = true; enableAppEventCallbacks(); #ifdef TARGET_OPENGLES enableTouchEventCallbacks(); #else enableMouseEventCallbacks(); enableKeyEventCallbacks(); enableWindowEventCallbacks(); #endif }
WorldUIView::WorldUIView(UIRect _rect, Client *_client) { rect = _rect; client = _client; setName("world_view"); minZoom = .4; maxZoom = 6; sbDefaultSize = 70; setZoom(1.0); xOffset = 0; yOffset = 0; dragging = false; preloadTextures(); enableKeyEventCallbacks(); }
void Calibration::setup(ofBaseApp * _app) { //init app instance app = _app; enableAppEventCallbacks(); enableKeyEventCallbacks(); enableBlobEventCallbacks(); ps3eye.setDeviceID(0); ps3eye.initGrabber(320,240); ps3eye.setAutogain(false); ps3eye.setAutoWhiteBalance(false); ps3eye.setGain(0); ps3_gain = ps3eye.getGain(); ps3_brightness = ps3eye.getBrightness(); ps3_contrast = ps3eye.getContrast(); ps3_redbalance = ps3eye.getRedBalance(); ps3_bluebalance = ps3eye.getBlueBalance(); ps3_hue = ps3eye.getHue(); ps3_sharpness = ps3eye.getSharpness(); ps3_exposure = ps3eye.getExposure(); ps3_ui_processed_img.setup(&colorTracker.processedImg, &blobTracker); ps3_ui_texture.setTexture(&ps3eye_texture); setupGui1(); setupGui2(); setupGui3(); enableGuiEventCallbacks(); warper.setup(0,0,320,240); windowCenter.x = ofGetWidth()/2; windowCenter.y = ofGetHeight()/2; receiver.setup(9090); //sender.setup("127.0.0.1", 9091); }