📄 annotate.h
字号:
/*annotation line segment object*/#ifndef MOVIE_ANNO#include "main.h"#include "data.h"#define ANNO_NFILE 256#define ANNO_NSEG 100000typedef struct { short id; /* group id */ short dir; /* axial direction */ short line; /* file line number */ short a[DATA_NAXIS]; /* point a */ short b[DATA_NAXIS]; /* point b */ } *AnnotateSeg, AnnotateSeg_;typedef struct { stryng filename[ANNO_NFILE]; /* filename */ int nfile; /* number of active ids */ int nseg; /* total number of segments */ AnnotateSeg_ seg[ANNO_NSEG]; /* segments */ int vis[ANNO_NFILE]; /* file visibility */ int* seg0[DATA_NAXIS]; /* segment starting point */ int* segn[DATA_NAXIS]; /* number of segments per frame */ } *Annotate;#ifdef __cplusplus /* if C++, specify external linkage to C functions */extern "C" {#endifAnnotate AnnotateCurrent ();void AnnotateSetCurrent (Annotate annotate);Annotate AnnotateInit ();void AnnotateDraw (Annotate annotate , int draw);int AnnotateCompare (AnnotateSeg a , AnnotateSeg b);void AnnotateRead (Annotate annotate , char* filename);char* AnnotateFilename (Annotate annotate);void AnnotateInfo (Annotate annotate);#ifdef __cplusplus /* if C++, specify external linkage to C functions */}#endif#define MOVIE_ANNO#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -