Added animation system to utility
Still not the smoothest as the data arrives at odd times. Might be a little unnecessary as the increase is so small
This commit is contained in:
@@ -20,6 +20,7 @@ void GUI::setup()
|
||||
addKeyboardShortcutsGUI();
|
||||
addGraphGlobalGUI();
|
||||
addGraphDesignGUI();
|
||||
addGraphColourGUI();
|
||||
addGraphTextGUI();
|
||||
addLegendTextGUI();
|
||||
addGraphSimulationGUI();
|
||||
@@ -80,6 +81,7 @@ void GUI::addGraphDesignGUI()
|
||||
string title = "GRAPH DESIGN";
|
||||
ofxUICanvas* gui = getNewGUI(title);
|
||||
|
||||
gui->addToggle("Toggle Graph animation", &Graph::isAnimating, toggleDim, toggleDim);
|
||||
gui->addToggle("Toggle Draw Body", &Graph::isDrawBody, toggleDim, toggleDim);
|
||||
gui->addToggle("Toggle Draw Lines", &Graph::isDrawLines, toggleDim, toggleDim);
|
||||
gui->addToggle("Toggle Clamp Y Values", &Graph::isClampYValues, toggleDim, toggleDim);
|
||||
@@ -98,7 +100,15 @@ void GUI::addGraphDesignGUI()
|
||||
gui->addSlider("Grid Green", 0, 255, &app->scene.gridCol[1], length, dim);
|
||||
gui->addSlider("Grid Blue", 0, 255, &app->scene.gridCol[2], length, dim);
|
||||
gui->addSlider("Grid Alpha", 0, 255, &app->scene.gridCol[3], length, dim);
|
||||
|
||||
|
||||
finaliseCanvas(gui, true);
|
||||
}
|
||||
|
||||
void GUI::addGraphColourGUI()
|
||||
{
|
||||
string title = "GRAPH COLOUR";
|
||||
ofxUICanvas* gui = getNewGUI(title);
|
||||
|
||||
gui->addLabel("COLOUR");
|
||||
gui->addSlider("Front red", 0, 255, &Graph::colFront[0], length, dim);
|
||||
gui->addSlider("Front green", 0, 255, &Graph::colFront[1], length, dim);
|
||||
@@ -109,11 +119,9 @@ void GUI::addGraphDesignGUI()
|
||||
gui->addSlider("Back blue", 0, 255, &Graph::colBack[2], length, dim);
|
||||
gui->addSlider("Back alpha", 0, 255, &Graph::colBack[3], length, dim);
|
||||
|
||||
|
||||
finaliseCanvas(gui, true);
|
||||
}
|
||||
|
||||
|
||||
void GUI::addGraphTextGUI()
|
||||
{
|
||||
string title = "GRAPH TEXT";
|
||||
|
||||
@@ -22,6 +22,7 @@ public:
|
||||
void addKeyboardShortcutsGUI();
|
||||
void addGraphGlobalGUI();
|
||||
void addGraphDesignGUI();
|
||||
void addGraphColourGUI();
|
||||
void addGraphTextGUI();
|
||||
void addLegendTextGUI();
|
||||
void addGraphSimulationGUI();
|
||||
|
||||
Reference in New Issue
Block a user