annotate.h

来自「seismic software,very useful」· C头文件 代码 · 共 45 行

H
45
字号
/*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 + =
减小字号Ctrl + -
显示快捷键?