MCPcopy Create free account
hub / github.com/YCAMInterlab/Duration / ofxTLUIHeader

Class ofxTLUIHeader

Duration/src/ofxTLUIHeader.h:40–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38#include "ofxLocalization.h"
39
40class ofxTLUIHeader {
41 public:
42 ofxTLUIHeader();
43 virtual ~ofxTLUIHeader();
44
45 void setTrackHeader(ofxTLTrackHeader* trackHeader);
46 virtual void viewWasResized(ofEventArgs& args);
47 virtual void guiEvent(ofxUIEventArgs &e);
48
49 virtual bool getShouldDelete();
50 virtual void setShouldDelete(bool del);
51
52 virtual bool sendOSC();
53 virtual void setSendOSC(bool enable);
54 virtual bool receiveOSC();
55 virtual void setReceiveOSC(bool enable);
56
57// string getPalettePath();
58
59 //just for drawing the red receiver background
60 float lastInputReceivedTime;
61
62 //remove duplicate sending and receiving
63 bool hasReceivedValue;
64 bool hasSentValue;
65
66 //different value types for tracking last values sent over OSC
67 float lastFloatSent;
68 bool lastBoolSent;
69 ofColor lastColorSent;
70
71 //only receiving floats for now
72 float lastValueReceived;
73
74 ofxTLTrack* getTrack();
75 ofxTLTrackHeader* getTrackHeader();
76 string getTrackType();
77 ofxLocalization* translation;
78 ofxUICanvas* getGui();
79 bool getModified();
80
81// void setNumberOfbins(int bins);
82// int getNumberOfBins();
83
84// void setMinFrequency(int frequency);
85// int getMinFrequency();
86// void setBandsPerOctave(int bands);
87// int getBandsPerOctave();
88
89 void setValueRange(ofRange range);
90 void setValueMin(float min);
91 void setValueMax(float max);
92
93 protected:
94
95 ofxUICanvas* gui;
96 ofxTLTrackHeader* trackHeader;
97 ofxUINumberDialer* minDialer;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected