diff options
author | Tom Rondeau <trondeau@vt.edu> | 2012-10-10 17:21:17 -0400 |
---|---|---|
committer | Tom Rondeau <trondeau@vt.edu> | 2012-10-10 18:46:53 -0400 |
commit | 93f4ca6187c409ab30e41fbdf5dace854d9d4c36 (patch) | |
tree | 9a67d19c4617e37da2609b16360dc4f198ada713 /gr-qtgui/lib/const_sink_c_impl.cc | |
parent | da14674efba47b8d194a462f95a80613d5098e1c (diff) |
qtgui: allowing setting of axes in GRC.
For time and freq, a y-axis range can be defined. The constellation plot has an x- and y-axis setting.
Also made methods more consistent in their names and styles.
Diffstat (limited to 'gr-qtgui/lib/const_sink_c_impl.cc')
-rw-r--r-- | gr-qtgui/lib/const_sink_c_impl.cc | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/gr-qtgui/lib/const_sink_c_impl.cc b/gr-qtgui/lib/const_sink_c_impl.cc index 1bd2253dbf..547530c823 100644 --- a/gr-qtgui/lib/const_sink_c_impl.cc +++ b/gr-qtgui/lib/const_sink_c_impl.cc @@ -94,7 +94,7 @@ namespace gr { } d_main_gui = new ConstellationDisplayForm(d_nconnections, d_parent); - d_main_gui->SetNPoints(d_size); + d_main_gui->setNPoints(d_size); // initialize update time to 10 times a second set_update_time(0.1); d_last_time = 0; @@ -121,6 +121,18 @@ namespace gr { } void + const_sink_c_impl::set_y_axis(double min, double max) + { + d_main_gui->setYaxis(min, max); + } + + void + const_sink_c_impl::set_x_axis(double min, double max) + { + d_main_gui->setXaxis(min, max); + } + + void const_sink_c_impl::set_update_time(double t) { //convert update time to ticks @@ -193,14 +205,14 @@ namespace gr { d_size = newsize; d_index = 0; - d_main_gui->SetNPoints(d_size); + d_main_gui->setNPoints(d_size); } } void const_sink_c_impl::npoints_resize() { - int newsize = d_main_gui->GetNPoints(); + int newsize = d_main_gui->getNPoints(); set_nsamps(newsize); } |