Mercurial > hg > tweakathon2ios
view UI code/sliderPanel.h @ 27:27cdf475aa4b
more fiddling
author | Robert Tubb <rt300@eecs.qmul.ac.uk> |
---|---|
date | Wed, 29 Oct 2014 15:38:38 +0000 |
parents | 8124f46eda65 |
children | 953db6518738 |
line wrap: on
line source
// // sliderPanel.h // tweakathlon // // Created by Robert Tubb on 11/02/2014. // // #ifndef __tweakathlon__sliderPanel__ #define __tweakathlon__sliderPanel__ #include <iostream> #include "UIElementContainer.h" #include <iostream> #include "globalVariables.h" #include "ofMain.h" #include "UIElement.h" #include "boost/bind.hpp" #include "boost/function.hpp" #include "timeController.h" #include "ButtronSlider.h" #include "ButtronXY.h" #include "3Dbox.h" #include "3DboxGL.h" #include "6Dbox.h" #include "ButtronSlider.h" // panel with sliders and xy pads // AND 6DOF BOXES !!!!! class SliderPanel : public UIElementContainer{ public: SliderPanel(float ax, float ay, float awidth, float aheight, const UIProps& aprops, vector<controllerType> elemList); void setAndShowHint(vector<int> values, ofImage* texture); void showHint(bool value); // void setHintValues(vector<int> vals); void setHintColor(ofColor c); void setSliderColors(ofColor c); void flash(); void setBgColor(ofColor c); vector<UIElement*> generateControls(vector<controllerType> elemList, controlPanelType panelType); UIElement* getSlider(int index); void setHintTexture(ofImage* texture); void showValueIndicators(bool show); private: bool flashing; controlPanelType thisPanelType; }; #endif /* defined(__tweakathlon__sliderPanel__) */