示例#1
0
void threadMain3()
{
  Realplot plot;
  FloatVec v(1024);

  for(int i=0;i<10;i++)
  {
    getPoints(v.begin(), v.end());
    plot.setNewData(v.begin(), v.end());
    boost::this_thread::sleep(boost::posix_time::milliseconds(100));
  }
}
示例#2
0
void threadMain2()
{
  Realplot plot;
  double data[1024];

  for(int i=0;i<10;i++)
  {
    getPoints(data, 1024);
    plot.setNewData(data, 1024);
    boost::this_thread::sleep(boost::posix_time::milliseconds(100));
  }
}
示例#3
0
void plot_real_setLabels(plot_real_t *h, char *xLabel, char *yLabel) {
	Realplot *plot = static_cast<Realplot*>(*h);
	plot->setLabels(xLabel, yLabel);
}
示例#4
0
void plot_real_setXAxisRange(plot_real_t *h, double xMin, double xMax) {
	Realplot *plot = static_cast<Realplot*>(*h);
	plot->setXAxisRange(xMin, xMax);
}
示例#5
0
void plot_real_setYAxisScale(plot_real_t *h, double yMin, double yMax) {
	Realplot *plot = static_cast<Realplot*>(*h);
	plot->setYAxisScale(yMin, yMax);
}
示例#6
0
void plot_real_setYAxisAutoScale(plot_real_t *h, bool on) {
	Realplot *plot = static_cast<Realplot*>(*h);
	plot->setYAxisAutoScale(on);
}
示例#7
0
void plot_real_setNewData(plot_real_t *h, float *data,
		int num_points) {
	Realplot *plot = static_cast<Realplot*>(*h);
	plot->setNewData(data, num_points);

}
示例#8
0
void plot_real_setTitle(plot_real_t *h, char *title) {
	Realplot *plot = static_cast<Realplot*>(*h);
	plot->setTitle(title);
}
示例#9
0
void plot_real_addToWindowGrid(plot_real_t *h, char *window, int row, int column){
  Realplot *plot = static_cast<Realplot*>(*h);
  plot->addToWindow(window, row, column);
}
示例#10
0
void plot_real_addToWindow(plot_real_t *h, char *window){
  Realplot *plot = static_cast<Realplot*>(*h);
  plot->addToWindow(window);
}