annotate 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
rev   line source
rt300@0 1 //
rt300@0 2 // sliderPanel.h
rt300@0 3 // tweakathlon
rt300@0 4 //
rt300@0 5 // Created by Robert Tubb on 11/02/2014.
rt300@0 6 //
rt300@0 7 //
rt300@0 8
rt300@0 9 #ifndef __tweakathlon__sliderPanel__
rt300@0 10 #define __tweakathlon__sliderPanel__
rt300@0 11
rt300@0 12 #include <iostream>
rt300@0 13 #include "UIElementContainer.h"
rt300@0 14 #include <iostream>
rt300@0 15 #include "globalVariables.h"
rt300@0 16 #include "ofMain.h"
rt300@0 17 #include "UIElement.h"
rt300@0 18 #include "boost/bind.hpp"
rt300@0 19 #include "boost/function.hpp"
rt300@0 20 #include "timeController.h"
rt300@0 21 #include "ButtronSlider.h"
rt300@0 22 #include "ButtronXY.h"
rt300@0 23 #include "3Dbox.h"
rt300@0 24 #include "3DboxGL.h"
rt300@27 25 #include "6Dbox.h"
rt300@21 26 #include "ButtronSlider.h"
rt300@0 27 // panel with sliders and xy pads
rt300@27 28
rt300@27 29 // AND 6DOF BOXES !!!!!
rt300@0 30 class SliderPanel : public UIElementContainer{
rt300@0 31
rt300@0 32 public:
rt300@0 33 SliderPanel(float ax,
rt300@0 34 float ay,
rt300@0 35 float awidth,
rt300@0 36 float aheight,
rt300@0 37 const UIProps& aprops,
rt300@0 38 vector<controllerType> elemList);
rt300@27 39
rt300@27 40 void setAndShowHint(vector<int> values, ofImage* texture);
rt300@27 41
rt300@27 42 void showHint(bool value);
rt300@0 43 //
rt300@27 44 void setHintValues(vector<int> vals);
rt300@27 45 void setHintColor(ofColor c);
rt300@27 46 void setSliderColors(ofColor c);
rt300@27 47 void flash();
rt300@27 48 void setBgColor(ofColor c);
rt300@0 49 vector<UIElement*> generateControls(vector<controllerType> elemList, controlPanelType panelType);
rt300@27 50
rt300@27 51 UIElement* getSlider(int index);
rt300@27 52 void setHintTexture(ofImage* texture);
rt300@27 53
rt300@27 54 void showValueIndicators(bool show);
rt300@0 55 private:
rt300@0 56 bool flashing;
rt300@27 57 controlPanelType thisPanelType;
rt300@0 58 };
rt300@0 59
rt300@0 60 #endif /* defined(__tweakathlon__sliderPanel__) */