1 #ifndef monitor_viewer_h
2 #define monitor_viewer_h
8 #include "monitor_stream.h"
9 #include "im_monitor_stream.h"
28 gcp::control::MsSendState update_MonitorViewer(
MonitorViewer *view);
29 gcp::control::MsReadState read_MonitorViewer_frame(
MonitorViewer *view);
31 gcp::control::MsSendState send_MonitorViewer_msg(
MonitorViewer *view,
int dowait);
32 ImsSendState send_MonitorViewer_im_msg(
MonitorViewer *view,
int dowait);
33 gcp::control::MsSendState set_MonitorViewer_interval(
MonitorViewer *view,
unsigned interval);
34 gcp::control::MsSendState queue_MonitorViewer_rewind(
MonitorViewer *view);
61 int config_MonitorPlot(
MonitorPlot *plot,
char *title,
double xleft,
62 double xright,
unsigned marker_size,
int join,
63 MpScrollMode scroll_mode,
double scroll_margin,
64 char *xreg,
char *xlabel,
65 char* type,
int npt,
double dx,
bool linAxis=
true);
71 int full_MonitorPlot_xrange(
MonitorPlot *plot,
double *xmin,
double *xmax);
72 int update_MonitorPlot(
MonitorPlot *plot,
int force);
82 int config_MonitorGraph(
MonitorGraph *graph,
double ybot,
double ytop,
83 char *ylabel,
char *yregs,
unsigned int bits,
84 bool track,
bool vecAv,
bool linAxis,
unsigned apodType);
90 int int_MonitorGraph(
MonitorGraph *graph,
bool integrate);
91 int auto_MonitorGraph_yrange(
MonitorGraph *graph,
double *ymin,
double *ymax);
92 int powSpecPkIdent(
MonitorGraph* graph,
int npk,
double xleft,
double xright,
bool full);
139 int config_MonitorField(
MonitorField *field,
char *regname,
140 MonitorFormat format,
char *flags,
141 int width,
int precision,
int misc,
142 char *names,
int warn,
double vmin,
double vmax,
143 int dopage,
int nframe);
153 void set_MonitorImage_centroid(
MonitorViewer *view,
unsigned xpeak,
unsigned ypeak);
154 void find_MonitorImage_centroid(
MonitorViewer *view,
double& xcntr,
155 double& ycntr,
int centroid);
156 void fid_MonitorImage_contrast(
MonitorViewer *view,
double xa,
double ya);
157 void set_MonitorImage_range(
MonitorViewer *view,
double xa,
double xb,
double ya,
double yb);
158 int install_MonitorImage_colormap(
MonitorViewer *view,
char *name);
162 void get_MonitorImage_stats(
MonitorViewer *view,
double xmin,
double xmax,
163 double ymin,
double ymax,
double *min,
double *max,
164 double *mean,
double *rms,
int *npoint);
165 void set_MonitorImage_step(
MonitorViewer *view,
double interval);
168 void set_MonitorImage_aspect(
MonitorViewer *view,
double aspect);
173 void set_MonitorImage_compass(
MonitorViewer *view,
double angle);
186 #define MP_DEL_FN(fn) void *(fn)(void *user_data)
201 #define MP_FIELD_FN(fn) void (fn)(void *user_data, MonitorPage *page, \
202 char *value, int warn, int dopage, int reset)
204 int mf_callback_fn(
MonitorField *field, MP_FIELD_FN(*field_fn),
205 void *user_data, MP_DEL_FN(*del_fn));
216 #define MP_SCROLL_FN(fn) void (fn)(void *user_data, MonitorPlot *plot, \
217 double wxa, double wxb)
219 int mp_scroll_callback(
MonitorPlot *plot, MP_SCROLL_FN(*user_fn),
220 void *user_data, MP_DEL_FN(*del_fn));
222 double *x,
double *y);
223 int mp_graph_to_cursor(
MonitorGraph *graph,
double *x,
double *y);
228 int find_Monitor_point(
MonitorGraph *graph,
double x,
double y,
236 double& xo,
double& yo);
242 } MonitorRegStatState;
251 MonitorRegStatState state;
253 void insert(
double xval,
double yval);
261 int mpRegStats(
MonitorPlot *plot,
double xa,
double xb,
267 int mp_xaxis_limits(
MonitorPlot *plot,
double *xmin,
double *xmax);
285 void change_MonitorImage_ximdir(
MonitorViewer* view,
int dir);
286 void change_MonitorImage_yimdir(
MonitorViewer* view,
int dir);
Definition: monitor_viewer.c:730
Definition: monitor_viewer.c:124
Definition: monitor_viewer.c:992
Definition: monitor_stream.h:190
Definition: monitor_viewer.c:463
Definition: im_monitor_stream.c:11
Definition: monitor_viewer.h:244
Definition: monitor_viewer.c:174
Definition: RegDescription.h:26
Definition: monitor_viewer.c:220
Definition: arraymap.h:177