Example #1
0
File: GUIView.cpp Project: EQ4/Viza
GUIView::GUIView(string name): GUICanvasBase(name){
    
    //VIEWWWW/////////////
    
    setName("View");
    
    alphaView = new ofxUISlider("alphaView",0,1,0.3f,100,10);
    selBrightest = new ofxUIToggle("SelectBrightest",false,10,10);
    linkClasses = new ofxUIToggle("linkClasses",false,10,10);
    orthoCam = new ofxUIToggle("orthoCam",true,10,10);
    pointSize = new ofxUISlider("pointSize",0,30,1,100,10);
    isClipping = new ofxUIToggle("isClipping",false,10,10);
    show2dViews = new ofxUIToggle("2dViews",false,10,10);
    fishEyeRadius = new ofxUISlider("fishEyeRadius",0.0,1.0,0.,100,10);
    fishEyeStrength = new ofxUISlider("fishEyeStrength",0.01,1,.5,100,10);
    
    
    
    // placing
    
    addWidgetDown(alphaView);
    addWidgetDown(selBrightest);
    addWidgetDown(linkClasses);
    addWidgetDown(orthoCam);
    addWidgetDown(pointSize);
    addWidgetDown(isClipping);
    addWidgetDown(show2dViews);
    addWidgetDown(fishEyeRadius);
    addWidgetDown(fishEyeStrength);

    
}
Example #2
0
GUIMidi::GUIMidi(string name): GUICanvasBase(name){
    
    
    ////////////////CLUSTER </////////////////////
    
    setName("Midi");

    
    
    midiPorts = new ofxUIDropDownList("MidiPorts", Midi::i()->getPorts(),150,0,0,OFX_UI_FONT_SMALL);
    midiVelRange = new ofxUISlider("VelocityRange",0,1.,0.,100,10);
    midiVelCenter = new ofxUISlider("VelocityCenter",0,1.,0.5,100,10);
    vel2Vol = new ofxUIRangeSlider("velocity2Volume",0.01,1,0.5,1,100,10);
    
    midiRadius = new ofxUISlider("Radius",0,.5,0.05,100,10);
    midiHold = new ofxUIToggle("Hold",false,10,10);
    
    midiLink2Cam = new ofxUIToggle("link2Cam",false,10,10);
    
    midiSpots = new ofxUIToggle("midiSpots",true,10,10);
    randomMidi = new ofxUISlider("randomMidi",0.0f,1.f,0.0f,150,10);
    
    
    addWidgetDown(midiPorts);
    addWidgetDown(midiVelRange);
    addWidgetDown(midiVelCenter);
    addWidgetDown(vel2Vol);
    addWidgetDown(midiRadius);
    addWidgetDown(midiHold);
    addWidgetDown(midiLink2Cam);
    addWidgetDown(midiSpots);
    addWidgetDown(randomMidi);

    
    setDimensions(getRect()->width, getRect()->height*1.3);

    
    vector<ofxUIWidget*> ddls;
    ddls.push_back(midiPorts);
    for(int i = 0 ; i < ddls.size(); i++){
        ((ofxUIDropDownList*) ddls[i])->setAutoClose(true);
        ((ofxUIDropDownList*) ddls[i])->setShowCurrentSelected(true);
    }

    
    
    
}
Example #3
0
File: GUIAxes.cpp Project: EQ4/Viza
GUIAxes::GUIAxes(string name): GUICanvasBase(name){
    
    shouldUpdateAggregator = -1;
    

    setName("Axes");
    
    
    coordinateTypeNames.push_back("cartesian");
    coordinateTypeNames.push_back("cylindrical");
    coordinateTypeNames.push_back("Toroidal");
    coordinateTypeNames.push_back("spherical");
    
    //Hack for memory corruption
    attrNames.clear();
    aggrNames.clear();
    
    
    vector<string> dumb;
    
    typeScales.push_back("min/max");
    typeScales.push_back("standard deviation");
    typeScales.push_back("range");
    
    for(int i = 0 ; i < 3 ; i++){
        attr[i] =           new ofxUIDropDownList("Attribute"+numToAxe(i), dumb,150,0,0,OFX_UI_FONT_SMALL);
        aggr[i] =         new ofxUIDropDownList("Aggregate"+numToAxe(i), dumb,150,0,0,OFX_UI_FONT_SMALL);
        scaleType[i] =    new ofxUIDropDownList("scaleType"+numToAxe(i), typeScales,150,0,0,OFX_UI_FONT_SMALL);
        min[i] =          new ofxUINumberD(4,"min"+numToAxe(i),OFX_UI_FONT_SMALL);
        max[i] =          new ofxUINumberD(4,"max"+numToAxe(i),OFX_UI_FONT_SMALL);
        
    }
    
    coordinateType =  new ofxUIDropDownList("coordinateType",coordinateTypeNames,150,0,0,OFX_UI_FONT_SMALL);
    coordinateType->activateToggle("cartesian");
    
    clampValues = new ofxUIToggle("clampValues",false,10,10);
    
    
    // place
    
    
    
    for(int i=0;i<3;i++){
        addWidgetDown(attr[i]);
        addWidgetRight(aggr[i] );
        addWidgetRight(scaleType[i] );
        addWidgetRight(min[i] );
        addWidgetRight(max[i] );
    }
    addWidgetDown(coordinateType);
    addWidgetRight(clampValues);
    
    
    
    
    vector<ofxUIWidget*> ddls = getWidgetsOfType(OFX_UI_WIDGET_DROPDOWNLIST);
    for(int i = 0 ; i < ddls.size(); i++){
        ((ofxUIDropDownList*) ddls[i])->setAutoClose(true);
        ((ofxUIDropDownList*) ddls[i])->setShowCurrentSelected(true);
    }
    setDimensions(700, 140);
    
    
}