A flexible control panel based gui addon for openFrameworks
by Theo Watson, Nick Hardeman
Licensed under: https://opensource.org/licenses/MIT
New:
addons/ofxControlPanel/example
folder showing how the parameter stuff works.Features:
Quick example:
//ofApp.h
ofxControlPanel gui;
ofVideoGrabber vid;
ofParameterGroup cvControls; //this will be in your header file
ofParameter <bool> bInvert;
ofParameter <float> threshold;
//ofApp.cpp
//In ofApp::setup()
gui.setup("my gui");
//add a video to the panel
gui.addDrawableRect("video feed", &vid, 320, 240);
cvControls.setName("cv controls");
cvControls.add(bInvert.set("invert", false));
cvControls.add(threshold.set("threshold", 29.0, 1.0, 255.0));
//now add the param group to the gui
gui.add( cvControls );
gui.loadSettings("settings.xml");
//In ofApp::update(){
gui.update();
//In ofApp::draw(){
gui.draw();