92 Bpf(
int x_ = 0,
int y_ = 0,
int width_ = 0,
int height_ = 0);
107 template <
typename T,
typename args,
class ListenerClass>
108 void onEditPoint(T *owner,
void (ListenerClass::*listenerMethod)(args)) {
109 using namespace std::placeholders;
111 callback_ = std::bind(listenerMethod, owner, _1);
vector< ofVec2f > values
Vector of x/y values of the BPF.
Definition: ofxOuiBpf.hpp:129
Graph graph
2D Graph area
Definition: ofxOuiBpf.hpp:134
Appearance appearance
Appearance of the BPF display.
Definition: ofxOuiBpf.hpp:139
Bpf(int x_=0, int y_=0, int width_=0, int height_=0)
Constructor.
Definition: ofxOuiBpf.cpp:22
virtual void mouseDragged(ofMouseEventArgs &e)
Definition: ofxOuiBpf.cpp:151
Display as filled surface to the bottom of the display.
float point_radius
Radius of the node of the BPF.
Definition: ofxOuiBpf.hpp:144
Base UI Component (equivalent to a label)
Definition: ofxOuiComponent.hpp:33
virtual void mousePressed(ofMouseEventArgs &e)
Definition: ofxOuiBpf.cpp:107
virtual void update()
OF-like update function.
Definition: ofxOuiBpf.cpp:42
Appearance
Appearance of the BPF display.
Definition: ofxOuiBpf.hpp:40
Event arguments when a point is edited.
Definition: ofxOuiBpf.hpp:65
int point_selected_
Definition: ofxOuiBpf.hpp:152
void onEditPoint(T *owner, void(ListenerClass::*listenerMethod)(args))
Set callback function for editing events.
Definition: ofxOuiBpf.hpp:108
float time_mouse_pressed_
Definition: ofxOuiBpf.hpp:153
Display as filled surface to the top of the display.
Definition: ofxOuiColormap.hpp:25
void clipBounds()
Set the bounds to the min/max of the values.
Definition: ofxOuiBpf.cpp:50
float x
x value of the point edited
Definition: ofxOuiBpf.hpp:77
virtual void mouseReleased(ofMouseEventArgs &e)
Definition: ofxOuiBpf.cpp:168
Breakpoint function component.
Definition: ofxOuiBpf.hpp:35
Display as filled surface to zero.
virtual void drawLabel()
Definition: ofxOuiBpf.cpp:64
2D Graph Area (with virtual coordinate system)
Definition: ofxOuiGraph.hpp:32
std::function< void(Bpf::EditPointEvent &)> callback_
Definition: ofxOuiBpf.hpp:154
virtual ~Bpf()
Destructor.
Definition: ofxOuiBpf.cpp:33
float y
y value of the point edited
Definition: ofxOuiBpf.hpp:82