openCARP
Doxygen code documentation for the open cardiac electrophysiology simulator openCARP
Classes | Namespaces | Macros | Typedefs | Functions
IGBheader.h File Reference
#include <cstdio>
#include <cstdlib>
#include <fstream>
#include <zlib.h>
#include <cstring>
#include <cctype>
#include <assert.h>
#include <float.h>
#include <limits.h>
#include "short_float.h"
Include dependency graph for IGBheader.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  opencarp::List
 
struct  opencarp::S_Complex
 
struct  opencarp::D_Complex
 
union  opencarp::rgba
 
class  opencarp::IGBheader
 

Namespaces

 opencarp
 

Macros

#define NALLOC   100
 
#define NUL   0
 
#define INCONNU   0
 
#define IGB_BIG_ENDIAN   666666666
 
#define IGB_LITTLE_ENDIAN   777777777
 
#define N_SYSTEMES   2
 
#define IGB_BYTE   1 /* -- byte ----------------------------------- */
 
#define IGB_CHAR   2 /* -- Char ----------------------------------- */
 
#define IGB_SHORT   3 /* -- short ---------------------------------- */
 
#define IGB_LONG   4 /* -- long ----------------------------------- */
 
#define IGB_FLOAT   5 /* -- float ---------------------------------- */
 
#define IGB_DOUBLE   6 /* -- Double --------------------------------- */
 
#define IGB_COMPLEX   7 /* -- 2 x float (real part, imaginary part) -- */
 
#define IGB_D_COMPLEX   8 /* -- 2 x Double (real part, imaginary part) - */
 
#define IGB_RGBA   9 /* -- 4 x byte (red, green, blue, alpha) ----- */
 
#define IGB_STRUCTURE   10 /* -- Structure ------------------------------ */
 
#define IGB_POINTER   11 /* -- void * --------------------------------- */
 
#define IGB_LIST   12 /* -- List --------------------------------- */
 
#define IGB_INT   13 /* -- integer -------------------------------- */
 
#define IGB_UINT   14 /* -- unsigned integer------------------------ */
 
#define IGB_USHORT   15 /* -- unsigned short integer------------------ */
 
#define IGB_VEC3_f   16 /* -- 3 X float ------------------------------ */
 
#define IGB_VEC3_d   17 /* -- 3 X double ----------------------------- */
 
#define IGB_VEC4_f   18 /* -- 4 X float ------------------------------ */
 
#define IGB_VEC4_d   19 /* -- 4 X double ----------------------------- */
 
#define IGB_HFLOAT   20 /* -- half float ----------------------------- */
 
#define IGB_VEC9_f   21 /* -- 9 X foat ------------------------------- */
 
#define IGB_VEC9_d   22 /* -- 9 X double ----------------------------- */
 
#define IGB_MIN_TYPE   1
 
#define IGB_MAX_TYPE   22
 
#define Byte   hByte
 
#define MIN_TRAME   0
 
#define IGB_C8   0
 
#define IGB_C4   1
 
#define IGB_HEX   2
 
#define HEXEDGES   3
 
#define HEXBRIDGES   4
 
#define HEXLINES   5
 
#define HEX2   6
 
#define MAX_TRAME   6
 
#define NTRAMES   7
 
#define IGB_ENDIAN_VAL   -1.24e5
 
#define IGB_LITTLE_END_REP   0,48,242,199
 
#define ERR_EOF_IN_HEADER   1
 
#define ERR_LINE_TOO_LONG   2
 
#define ERR_UNPRINTABLE_CHAR   3
 
#define ERR_IGB_SYNTAX   4
 
#define ERR_UNDEFINED_X_Y_TYPE   5
 
#define ERR_SIZE_REDEFINED   6
 
#define ERR_SIZE_NOT_DEFINED   7
 
#define WARN_DIM_INCONSISTENT   256
 
#define PrMTYPES
 
#define RGBA_ROUGE   3
 
#define RGBA_VERT   2
 
#define RGBA_BLEU   1
 
#define RGBA_ALPHA   0
 
#define HFLT_MIN   -65504
 
#define HFLT_MAX   65504
 
#define CONVERT_TYPE(D, m, M, B)
 

Typedefs

typedef struct opencarp::List opencarp::List
 
typedef unsigned char opencarp::byte
 
typedef unsigned char opencarp::Byte
 
typedef char * opencarp::String
 
typedef signed char opencarp::Char
 
typedef struct S_Complex opencarp::S_Complex
 
typedef double opencarp::Double
 
typedef struct D_Complex opencarp::D_Complex
 
typedef float opencarp::Float
 
typedef int opencarp::Int
 
typedef long opencarp::Long
 
typedef unsigned int opencarp::UInt
 
typedef short opencarp::Short
 
typedef int opencarp::BooleaN
 
typedef int opencarp::Flag
 
typedef char * opencarp::RDir
 
typedef char * opencarp::RFile
 
typedef char * opencarp::RWDir
 
typedef char * opencarp::RWFile
 
typedef char * opencarp::WDir
 
typedef char * opencarp::WFile
 
typedef char ** opencarp::Text
 
typedef void opencarp::Any
 
typedef union opencarp::rgba opencarp::rgba
 

Functions

template<class T >
int opencarp::read_IGB_data (T *dp, int numt, IGBheader *h, char *buf=NULL)
 
template<class T >
opencarp::IGB_convert_buffer_datum (IGBheader *, void *buf, int a)
 

Macro Definition Documentation

◆ Byte

#define Byte   hByte

Definition at line 81 of file IGBheader.h.

◆ CONVERT_TYPE

#define CONVERT_TYPE (   D,
  m,
  M,
 
)
Value:
{ if(datum<m)datum=m;else if(datum>M)datum=M; \
D a0 = (D)datum; *((D*)(B))=a0;};

convert the value stored in variable datum to type D, clipping it to the range [m, M] and store it in the location pointed to by B

Definition at line 509 of file IGBheader.h.

◆ ERR_EOF_IN_HEADER

#define ERR_EOF_IN_HEADER   1

Definition at line 101 of file IGBheader.h.

◆ ERR_IGB_SYNTAX

#define ERR_IGB_SYNTAX   4

Definition at line 104 of file IGBheader.h.

◆ ERR_LINE_TOO_LONG

#define ERR_LINE_TOO_LONG   2

Definition at line 102 of file IGBheader.h.

◆ ERR_SIZE_NOT_DEFINED

#define ERR_SIZE_NOT_DEFINED   7

Definition at line 107 of file IGBheader.h.

◆ ERR_SIZE_REDEFINED

#define ERR_SIZE_REDEFINED   6

Definition at line 106 of file IGBheader.h.

◆ ERR_UNDEFINED_X_Y_TYPE

#define ERR_UNDEFINED_X_Y_TYPE   5

Definition at line 105 of file IGBheader.h.

◆ ERR_UNPRINTABLE_CHAR

#define ERR_UNPRINTABLE_CHAR   3

Definition at line 103 of file IGBheader.h.

◆ HEX2

#define HEX2   6

Definition at line 91 of file IGBheader.h.

◆ HEXBRIDGES

#define HEXBRIDGES   4

Definition at line 89 of file IGBheader.h.

◆ HEXEDGES

#define HEXEDGES   3

Definition at line 88 of file IGBheader.h.

◆ HEXLINES

#define HEXLINES   5

Definition at line 90 of file IGBheader.h.

◆ HFLT_MAX

#define HFLT_MAX   65504

Definition at line 167 of file IGBheader.h.

◆ HFLT_MIN

#define HFLT_MIN   -65504

Definition at line 166 of file IGBheader.h.

◆ IGB_BIG_ENDIAN

#define IGB_BIG_ENDIAN   666666666

Definition at line 50 of file IGBheader.h.

◆ IGB_BYTE

#define IGB_BYTE   1 /* -- byte ----------------------------------- */

Definition at line 56 of file IGBheader.h.

◆ IGB_C4

#define IGB_C4   1

Definition at line 86 of file IGBheader.h.

◆ IGB_C8

#define IGB_C8   0

Definition at line 85 of file IGBheader.h.

◆ IGB_CHAR

#define IGB_CHAR   2 /* -- Char ----------------------------------- */

Definition at line 57 of file IGBheader.h.

◆ IGB_COMPLEX

#define IGB_COMPLEX   7 /* -- 2 x float (real part, imaginary part) -- */

Definition at line 62 of file IGBheader.h.

◆ IGB_D_COMPLEX

#define IGB_D_COMPLEX   8 /* -- 2 x Double (real part, imaginary part) - */

Definition at line 63 of file IGBheader.h.

◆ IGB_DOUBLE

#define IGB_DOUBLE   6 /* -- Double --------------------------------- */

Definition at line 61 of file IGBheader.h.

◆ IGB_ENDIAN_VAL

#define IGB_ENDIAN_VAL   -1.24e5

Definition at line 97 of file IGBheader.h.

◆ IGB_FLOAT

#define IGB_FLOAT   5 /* -- float ---------------------------------- */

Definition at line 60 of file IGBheader.h.

◆ IGB_HEX

#define IGB_HEX   2

Definition at line 87 of file IGBheader.h.

◆ IGB_HFLOAT

#define IGB_HFLOAT   20 /* -- half float ----------------------------- */

Definition at line 75 of file IGBheader.h.

◆ IGB_INT

#define IGB_INT   13 /* -- integer -------------------------------- */

Definition at line 68 of file IGBheader.h.

◆ IGB_LIST

#define IGB_LIST   12 /* -- List --------------------------------- */

Definition at line 67 of file IGBheader.h.

◆ IGB_LITTLE_END_REP

#define IGB_LITTLE_END_REP   0,48,242,199

Definition at line 98 of file IGBheader.h.

◆ IGB_LITTLE_ENDIAN

#define IGB_LITTLE_ENDIAN   777777777

Definition at line 51 of file IGBheader.h.

◆ IGB_LONG

#define IGB_LONG   4 /* -- long ----------------------------------- */

Definition at line 59 of file IGBheader.h.

◆ IGB_MAX_TYPE

#define IGB_MAX_TYPE   22

Definition at line 79 of file IGBheader.h.

◆ IGB_MIN_TYPE

#define IGB_MIN_TYPE   1

Definition at line 78 of file IGBheader.h.

◆ IGB_POINTER

#define IGB_POINTER   11 /* -- void * --------------------------------- */

Definition at line 66 of file IGBheader.h.

◆ IGB_RGBA

#define IGB_RGBA   9 /* -- 4 x byte (red, green, blue, alpha) ----- */

Definition at line 64 of file IGBheader.h.

◆ IGB_SHORT

#define IGB_SHORT   3 /* -- short ---------------------------------- */

Definition at line 58 of file IGBheader.h.

◆ IGB_STRUCTURE

#define IGB_STRUCTURE   10 /* -- Structure ------------------------------ */

Definition at line 65 of file IGBheader.h.

◆ IGB_UINT

#define IGB_UINT   14 /* -- unsigned integer------------------------ */

Definition at line 69 of file IGBheader.h.

◆ IGB_USHORT

#define IGB_USHORT   15 /* -- unsigned short integer------------------ */

Definition at line 70 of file IGBheader.h.

◆ IGB_VEC3_d

#define IGB_VEC3_d   17 /* -- 3 X double ----------------------------- */

Definition at line 72 of file IGBheader.h.

◆ IGB_VEC3_f

#define IGB_VEC3_f   16 /* -- 3 X float ------------------------------ */

Definition at line 71 of file IGBheader.h.

◆ IGB_VEC4_d

#define IGB_VEC4_d   19 /* -- 4 X double ----------------------------- */

Definition at line 74 of file IGBheader.h.

◆ IGB_VEC4_f

#define IGB_VEC4_f   18 /* -- 4 X float ------------------------------ */

Definition at line 73 of file IGBheader.h.

◆ IGB_VEC9_d

#define IGB_VEC9_d   22 /* -- 9 X double ----------------------------- */

Definition at line 77 of file IGBheader.h.

◆ IGB_VEC9_f

#define IGB_VEC9_f   21 /* -- 9 X foat ------------------------------- */

Definition at line 76 of file IGBheader.h.

◆ INCONNU

#define INCONNU   0

Definition at line 48 of file IGBheader.h.

◆ MAX_TRAME

#define MAX_TRAME   6

Definition at line 92 of file IGBheader.h.

◆ MIN_TRAME

#define MIN_TRAME   0

Definition at line 84 of file IGBheader.h.

◆ N_SYSTEMES

#define N_SYSTEMES   2

Definition at line 52 of file IGBheader.h.

◆ NALLOC

#define NALLOC   100

Definition at line 45 of file IGBheader.h.

◆ NTRAMES

#define NTRAMES   7

Definition at line 93 of file IGBheader.h.

◆ NUL

#define NUL   0

Definition at line 47 of file IGBheader.h.

◆ PrMTYPES

#define PrMTYPES

Definition at line 111 of file IGBheader.h.

◆ RGBA_ALPHA

#define RGBA_ALPHA   0

Definition at line 164 of file IGBheader.h.

◆ RGBA_BLEU

#define RGBA_BLEU   1

Definition at line 163 of file IGBheader.h.

◆ RGBA_ROUGE

#define RGBA_ROUGE   3

Definition at line 161 of file IGBheader.h.

◆ RGBA_VERT

#define RGBA_VERT   2

Definition at line 162 of file IGBheader.h.

◆ WARN_DIM_INCONSISTENT

#define WARN_DIM_INCONSISTENT   256

Definition at line 108 of file IGBheader.h.