22 #ifndef KJB_CPP_GR_PLOT_H
23 #define KJB_CPP_GR_PLOT_H
35 #warning "[Code police] Put KJB_HAVE_* guards inside functions"
38 class Glut_plot_window
42 Glut_plot_window(
size_t width,
size_t height,
const std::string& title);
44 virtual ~Glut_plot_window();
47 Glut_plot_window& add_plot(
const Vector&
x,
const Vector& y);
50 Glut_plot_window& add_plot(
const Vector*
x,
const Vector* y);
54 Glut_plot_window& add_plot(OutIt first_x, OutIt last_x, OutIt first_y)
56 OutIt last_y = first_y;
57 std::advance(last_y, std::distance(first_x, last_x));
59 Vector
x(first_x, last_x);
60 Vector y(first_y, last_y);
62 return add_plot(
x, y);
69 void redisplay()
const;
76 void reshape(
int w,
int h);
79 void update_bounds(
const Vector&
x,
const Vector& y);
82 std::vector<Vector> x_;
83 std::vector<Vector> y_;
84 std::vector<const Vector*> xp_;
85 std::vector<const Vector*> yp_;
90 static const size_t xmargin_ = 74;
91 static const size_t ymargin_ = 20;
height
Definition: APPgetLargeConnectedEdges.m:33
x
Definition: APPgetLargeConnectedEdges.m:100
void render(const Cuboid &c)
Definition: psi_weighted_box.cpp:56
Definition for the Vector class, a thin wrapper on the KJB Vector struct and its related functionalit...