12 #include <tv/TraceSet.h>
13 #include <tv/TVscaler.h>
14 #include <tv/GraphicEnv.h>
15 #include <tv/VisualParams.h>
16 #include <tv/Cursors.h>
17 #include <tv/Selector.h>
113 #define TVcolorsDepth 4
118 TraceBackgroundColor,
164 RedrawFlag redrawFlag;
166 unsigned long tracePlaneMask;
167 unsigned long rubberBandPlaneMask;
168 int colors[__TVcolorsCnt];
169 Font fonts[__TVfontsCnt];
174 unsigned long StartIndex, TrCnt;
185 float agcDynamicAmplify;
187 AmplNormKind amplNormKind;
196 unsigned wid_w, wid_h;
228 TraceRangeType tr_type;
230 unsigned long startIndex, endIndex;
231 float startDepth, endDepth;
232 unsigned long traceCnt;
238 #define ALMOST_ZERO 1e-34
243 int CreateVTS (VisualTraceSet* pvts,
TraceSet ts);
244 void DestroyVTS (VisualTraceSet* vts);
245 int LinkGEtoVTS (VisualTraceSet vts,
GraphicEnv* ge);
247 int ExposeVTS (VisualTraceSet vts);
248 int TuneGCforVTS (VisualTraceSet vts);
249 int TuneSpecGCforVTS (VisualTraceSet vts,
int line_width,
int color_index);
250 int PlotOneTrace (VisualTraceSet vts, SineKind sk,
int colorIndex,
251 int lineWidth,
int trace_i,
float* trace_body);
252 int ReplotVTS (VisualTraceSet vts);
253 void PlotAxesVTS(VisualTraceSet vts);
254 void PlotGridVTS(VisualTraceSet vts);
255 void DrawTextAtTimeAxisVTS (VisualTraceSet vts);
256 void DrawTextAtDepthAxisVTS (VisualTraceSet vts);
257 int SaveViewVTS (VisualTraceSet vts);
258 int RestoreViewVTS (VisualTraceSet vts);
259 int ChangedOrResizedVTS (VisualTraceSet vts);
261 void SetTracesRect (VisualTraceSet vts,
unsigned int x,
unsigned int y,
262 unsigned int w,
unsigned int h);
263 void GetTracesRect (VisualTraceSet vts,
unsigned int* x,
unsigned int* y,
264 unsigned int* w,
unsigned int* h);
265 void SetTimeBoundsVTS (VisualTraceSet vts,
float tl,
float tr);
266 void GetTimeBoundsVTS (VisualTraceSet vts,
float* tl,
float* tr);
267 void SetTraceRangeVTS (VisualTraceSet vts,
TraceRange* ptrange);
268 void GetTraceRangeVTS (VisualTraceSet vts,
TraceRange* ptrange);
269 void SetOverlappingVTS (VisualTraceSet vts,
float overlapping);
270 float GetOverlappingVTS (VisualTraceSet vts);
271 void SetAvgLevelVTS (VisualTraceSet vts,
float avg_level);
272 float GetAvgLevelVTS (VisualTraceSet vts);
273 void SetSineKindVTS (VisualTraceSet vts, SineKind sk);
274 SineKind GetSineKindVTS (VisualTraceSet vts);
275 void SetAmplNormKindVTS (VisualTraceSet vts, AmplNormKind ank);
276 AmplNormKind GetAmplNormKindVTS (VisualTraceSet vts);
277 void SetCutAmplLevelVTS (VisualTraceSet vts,
float cal);
278 float GetCutAmplLevelVTS (VisualTraceSet vts);
279 void SetGridStepVTS(VisualTraceSet vts,
float gridStep);
280 float GetGridStepVTS(VisualTraceSet vts);
282 void SetAGCGapVTS (VisualTraceSet vts,
float gap);
283 float GetAGCGapVTS (VisualTraceSet vts);
285 int TheFirstPlotVTS (VisualTraceSet vts);
287 void GrabTraceVTS (VisualTraceSet vts,
TraceRange* tr,
int x,
int y);
288 void GrabTraceRangeVTS (VisualTraceSet vts,
TraceRange* tr,
int y1,
int y2);
289 float GrabTraceTimeVTS (VisualTraceSet vts,
int x);
290 void GrabTraceTimesVTS (VisualTraceSet vts,
float times[2],
int x1,
int x2);
292 int TimeToXVTS (VisualTraceSet vts,
float time);
293 float XToTimeVTS (VisualTraceSet vts,
int x);
294 int TraceIndexToYVTS (VisualTraceSet vts,
int index);
295 int YToTraceIndexVTS (VisualTraceSet vts,
int y);
296 int TimeToSampleIndexVTS (VisualTraceSet vts,
float time);
297 float SampleIndexToTimeVTS (VisualTraceSet vts,
int sample_i);
298 float YToTraceAmplVTS (VisualTraceSet vts,
int y,
float time,
299 int curTraceIndex,
float* curTraceBody);
302 void GetVPfromVTS (VisualTraceSet vts,
VisualParams* vp);
305 void ForceEventOriginVTS (XEvent* xe);
308 void DrawRubberBandVTS (VisualTraceSet vts, XPoint* p1, XPoint* p2);
311 void InfoHandlerVTS (VisualTraceSet vts, XEvent* xe);
312 int ZoomInHandlerVTS (VisualTraceSet vts, XEvent* xe);
313 int ZoomOutHandlerVTS (VisualTraceSet vts, XEvent* xe);
316 void ExposeTraceFieldVTS (VisualTraceSet vts,
321 void SetAGCKindVTS (VisualTraceSet vts, AGCKind agcKind);
322 AGCKind GetAGCKind (VisualTraceSet vts);
327 char type,
char comp);
329 char type,
char comp,
330 const char* colorname);
337 void PutLegendComp (VisualTraceSet vts,
339 Display* dpy, Window wid, GC gc,
340 int ch_w,
int ch_h,
int* x,
int* y,
344 void ExposeLegendBoxVTS (VisualTraceSet vts);
349 void PrepareNormData (VisualTraceSet vts);
352 void NormalizeTrace (VisualTraceSet vts,
int i,
353 float* src,
float* dst,
float* dAmax);
361 ErrCode PrepareSelectorVTS (VisualTraceSet vts);
367 ErrCode ApplySelectionTSforVTS (VisualTraceSet vts);
373 ErrCode SelectTSforVTS (Widget wMainWin, VisualTraceSet vts,
374 void (*OnSelect)(
void));
378 ErrCode SelectTypeAndCompVTS (VisualTraceSet vts,
char type,
char comp);
385 ErrCode SaveTVpar (VisualTraceSet vts,
const char* szDir);
390 ErrCode LoadTVpar (VisualTraceSet vts,
const char* szDir);
396 ErrCode AddTagVTS (VisualTraceSet vts,
const char* szTag,
397 int x,
int y,
int width,
int height);
400 ErrCode ResetTagsVTS (VisualTraceSet vts);
404 const char* FindTagVTS (VisualTraceSet vts,
int x,
int y);
Definition: VisualTS.h:157
int taid
Definition: VisualTS.h:203
char * tag_name
Definition: VisualTS.h:208
Definition: VisualParams.h:77
Definition: VisualTS.h:226
Definition: GraphicEnv.h:15
Definition: TVscaler.h:11
Definition: Selector.h:43
Definition: VisualTS.h:207
Definition: VisualParams.h:59
Definition: VisualParams.h:39
XRectangle area
Definition: VisualTS.h:209