#include <IGBheader.h>
|
| | IGBheader (gzFile a=NULL, bool read=false, bool quiet=false) |
| |
| | IGBheader (FILE *f, bool read=false, bool quiet=false) |
| |
| | IGBheader (IGBheader *h) |
| |
| | ~IGBheader () |
| |
| int | write () |
| |
| int | read (bool quiet=false) |
| |
| void | fileptr (gzFile f) |
| |
| void | fileptr (FILE *f) |
| |
| void * | fileptr (void) |
| |
| void | close (void) |
| |
| void | swab (void *, int nd=-1) |
| |
| double | from_raw (double a) |
| |
| double | to_raw (double a) |
| |
| size_t | slice_sz () |
| |
| int | go2slice (size_t s) |
| | go to a slice More...
|
| |
| void | comment (const char *) |
| |
| char ** | comment (void) |
| |
| size_t | data_size (void) |
| |
| size_t | x (void) |
| |
| size_t | x (bool &set) |
| |
| void | x (size_t a) |
| |
| size_t | y (void) |
| |
| size_t | y (bool &set) |
| |
| void | y (size_t a) |
| |
| size_t | z (void) |
| |
| size_t | z (bool &set) |
| |
| void | z (size_t a) |
| |
| size_t | t (void) |
| |
| size_t | t (bool &set) |
| |
| void | t (size_t a) |
| |
| int | type (void) |
| |
| int | type (bool &set) |
| |
| void | type (int a) |
| |
| void | type (char *) |
| |
| int | taille (void) |
| |
| int | taille (bool &set) |
| |
| void | taille (int a) |
| |
| int | num (void) |
| |
| int | num (bool &set) |
| |
| void | num (int a) |
| |
| int | bin (void) |
| |
| int | bin (bool &set) |
| |
| void | bin (int a) |
| |
| int | trame (void) |
| |
| int | trame (bool &set) |
| |
| void | trame (int a) |
| |
| const char * | systemestr (void) |
| |
| int | systeme (void) |
| |
| void | systeme (const char *s) |
| |
| unsigned int | lut (void) |
| |
| unsigned int | lut (bool &set) |
| |
| void | lut (unsigned int a) |
| |
| unsigned int | comp (void) |
| |
| unsigned int | comp (bool &set) |
| |
| void | comp (unsigned int a) |
| |
| float | epais (void) |
| |
| float | epais (bool &set) |
| |
| void | epais (float a) |
| |
| float | org_x (void) |
| |
| float | org_x (bool &set) |
| |
| void | org_x (float a) |
| |
| float | org_y (void) |
| |
| float | org_y (bool &set) |
| |
| void | org_y (float a) |
| |
| float | org_z (void) |
| |
| float | org_z (bool &set) |
| |
| void | org_z (float a) |
| |
| float | org_t (void) |
| |
| float | org_t (bool &set) |
| |
| void | org_t (float a) |
| |
| void | inc_x (float a) |
| |
| float | inc_x (bool &set) |
| |
| float | inc_x (void) |
| |
| void | inc_y (float a) |
| |
| float | inc_y (bool &set) |
| |
| float | inc_y (void) |
| |
| void | inc_z (float a) |
| |
| float | inc_z (bool &set) |
| |
| float | inc_z (void) |
| |
| void | inc_t (float a) |
| |
| float | inc_t (bool &set) |
| |
| float | inc_t (void) |
| |
| void | dim_x (float a) |
| |
| float | dim_x (bool &set) |
| |
| float | dim_x (void) |
| |
| void | dim_y (float a) |
| |
| float | dim_y (bool &set) |
| |
| float | dim_y (void) |
| |
| void | dim_z (float a) |
| |
| float | dim_z (bool &set) |
| |
| float | dim_z (void) |
| |
| void | dim_t (float a) |
| |
| float | dim_t (bool &set) |
| |
| float | dim_t (void) |
| |
| void | facteur (float a) |
| |
| float | facteur (bool &set) |
| |
| float | facteur (void) |
| |
| void | zero (float a) |
| |
| float | zero (bool &set) |
| |
| float | zero (void) |
| |
| void | vect_z (float *a) |
| |
| float * | vect_z (bool &set) |
| |
| float * | vect_z (void) |
| |
| void | unites_x (const char *a) |
| |
| char * | unites_x (bool &set) |
| |
| char * | unites_x (void) |
| |
| void | unites_y (const char *a) |
| |
| char * | unites_y (bool &set) |
| |
| char * | unites_y (void) |
| |
| void | unites_z (const char *a) |
| |
| char * | unites_z (bool &set) |
| |
| char * | unites_z (void) |
| |
| void | unites_t (const char *a) |
| |
| char * | unites_t (bool &set) |
| |
| char * | unites_t (void) |
| |
| void | unites (const char *a) |
| |
| char * | unites (bool &set) |
| |
| char * | unites (void) |
| |
| void | struct_desc (const char *a) |
| |
| char * | struct_desc (bool &set) |
| |
| char * | struct_desc (void) |
| |
| void | aut_name (const char *a) |
| |
| char * | aut_name (bool &set) |
| |
| char * | aut_name (void) |
| |
| void | transparent (void *a) |
| |
| void * | transparent (bool &set) |
| |
| void * | transparent (void) |
| |
| char * | transparentstr (void) |
| |
| unsigned short | num_components () |
| |
| int | endian () |
| |
| long | tell () |
| |
| template<class T > |
| int | read_data (T *dp, size_t numt=1, char *buf=NULL) |
| |
| template<class T > |
| void | write_data (T *dp, size_t numt=1, char *buf=NULL) |
| |
| template<class T > |
| void | to_bin (void *buf, T d) |
| |
| template<class T > |
| void | to_bin (void *buf, T *d) |
| |
| template<class T > |
| T | convert_buffer_datum (void *buf, int a) |
| |
Definition at line 193 of file IGBheader.h.
◆ IGBheader() [1/3]
| IGBheader::IGBheader |
( |
gzFile |
a = NULL, |
|
|
bool |
read = false, |
|
|
bool |
quiet = false |
|
) |
| |
◆ IGBheader() [2/3]
| IGBheader::IGBheader |
( |
FILE * |
f, |
|
|
bool |
read = false, |
|
|
bool |
quiet = false |
|
) |
| |
◆ IGBheader() [3/3]
◆ ~IGBheader()
| IGBheader::~IGBheader |
( |
| ) |
|
◆ aut_name() [1/3]
| char* IGBheader::aut_name |
( |
bool & |
set | ) |
|
|
inline |
◆ aut_name() [2/3]
| void IGBheader::aut_name |
( |
const char * |
a | ) |
|
|
inline |
◆ aut_name() [3/3]
| char* IGBheader::aut_name |
( |
void |
| ) |
|
|
inline |
◆ bin() [1/3]
| int IGBheader::bin |
( |
bool & |
set | ) |
|
|
inline |
◆ bin() [2/3]
| void IGBheader::bin |
( |
int |
a | ) |
|
|
inline |
◆ bin() [3/3]
| int IGBheader::bin |
( |
void |
| ) |
|
|
inline |
◆ close()
| void IGBheader::close |
( |
void |
| ) |
|
|
inline |
◆ comment() [1/2]
| void IGBheader::comment |
( |
const char * |
ligne | ) |
|
◆ comment() [2/2]
| char** IGBheader::comment |
( |
void |
| ) |
|
|
inline |
◆ comp() [1/3]
| unsigned int IGBheader::comp |
( |
bool & |
set | ) |
|
|
inline |
◆ comp() [2/3]
| void IGBheader::comp |
( |
unsigned int |
a | ) |
|
|
inline |
◆ comp() [3/3]
| unsigned int IGBheader::comp |
( |
void |
| ) |
|
|
inline |
◆ convert_buffer_datum()
template<class T >
| T IGBheader::convert_buffer_datum |
( |
void * |
buf, |
|
|
int |
a |
|
) |
| |
convert the IGB data to the proper type
- Parameters
-
| h | IGB header |
| buf | raw IGB data |
| a | index of datum |
Definition at line 466 of file IGBheader.h.
◆ data_size()
| size_t IGBheader::data_size |
( |
void |
| ) |
|
|
inline |
◆ dim_t() [1/3]
| float IGBheader::dim_t |
( |
bool & |
set | ) |
|
|
inline |
◆ dim_t() [2/3]
| void IGBheader::dim_t |
( |
float |
a | ) |
|
|
inline |
◆ dim_t() [3/3]
| float IGBheader::dim_t |
( |
void |
| ) |
|
|
inline |
◆ dim_x() [1/3]
| float IGBheader::dim_x |
( |
bool & |
set | ) |
|
|
inline |
◆ dim_x() [2/3]
| void IGBheader::dim_x |
( |
float |
a | ) |
|
|
inline |
◆ dim_x() [3/3]
| float IGBheader::dim_x |
( |
void |
| ) |
|
|
inline |
◆ dim_y() [1/3]
| float IGBheader::dim_y |
( |
bool & |
set | ) |
|
|
inline |
◆ dim_y() [2/3]
| void IGBheader::dim_y |
( |
float |
a | ) |
|
|
inline |
◆ dim_y() [3/3]
| float IGBheader::dim_y |
( |
void |
| ) |
|
|
inline |
◆ dim_z() [1/3]
| float IGBheader::dim_z |
( |
bool & |
set | ) |
|
|
inline |
◆ dim_z() [2/3]
| void IGBheader::dim_z |
( |
float |
a | ) |
|
|
inline |
◆ dim_z() [3/3]
| float IGBheader::dim_z |
( |
void |
| ) |
|
|
inline |
◆ endian()
| int IGBheader::endian |
( |
| ) |
|
return whether the machine is big or little endian
Definition at line 1391 of file IGBheader.cc.
◆ epais() [1/3]
| float IGBheader::epais |
( |
bool & |
set | ) |
|
|
inline |
◆ epais() [2/3]
| void IGBheader::epais |
( |
float |
a | ) |
|
|
inline |
◆ epais() [3/3]
| float IGBheader::epais |
( |
void |
| ) |
|
|
inline |
◆ facteur() [1/3]
| float IGBheader::facteur |
( |
bool & |
set | ) |
|
|
inline |
◆ facteur() [2/3]
| void IGBheader::facteur |
( |
float |
a | ) |
|
|
inline |
◆ facteur() [3/3]
| float IGBheader::facteur |
( |
void |
| ) |
|
|
inline |
◆ fileptr() [1/3]
| void IGBheader::fileptr |
( |
FILE * |
f | ) |
|
◆ fileptr() [2/3]
| void IGBheader::fileptr |
( |
gzFile |
f | ) |
|
◆ fileptr() [3/3]
| void* IGBheader::fileptr |
( |
void |
| ) |
|
|
inline |
◆ from_raw()
| double IGBheader::from_raw |
( |
double |
a | ) |
|
|
inline |
◆ go2slice()
| int IGBheader::go2slice |
( |
size_t |
s | ) |
|
go to a slice
- Parameters
-
- Return values
-
| 0 | successful |
| -1 | unsuccessful |
Definition at line 1459 of file IGBheader.cc.
◆ inc_t() [1/3]
| float IGBheader::inc_t |
( |
bool & |
set | ) |
|
|
inline |
◆ inc_t() [2/3]
| void IGBheader::inc_t |
( |
float |
a | ) |
|
|
inline |
◆ inc_t() [3/3]
| float IGBheader::inc_t |
( |
void |
| ) |
|
|
inline |
◆ inc_x() [1/3]
| float IGBheader::inc_x |
( |
bool & |
set | ) |
|
|
inline |
◆ inc_x() [2/3]
| void IGBheader::inc_x |
( |
float |
a | ) |
|
|
inline |
◆ inc_x() [3/3]
| float IGBheader::inc_x |
( |
void |
| ) |
|
|
inline |
◆ inc_y() [1/3]
| float IGBheader::inc_y |
( |
bool & |
set | ) |
|
|
inline |
◆ inc_y() [2/3]
| void IGBheader::inc_y |
( |
float |
a | ) |
|
|
inline |
◆ inc_y() [3/3]
| float IGBheader::inc_y |
( |
void |
| ) |
|
|
inline |
◆ inc_z() [1/3]
| float IGBheader::inc_z |
( |
bool & |
set | ) |
|
|
inline |
◆ inc_z() [2/3]
| void IGBheader::inc_z |
( |
float |
a | ) |
|
|
inline |
◆ inc_z() [3/3]
| float IGBheader::inc_z |
( |
void |
| ) |
|
|
inline |
◆ lut() [1/3]
| unsigned int IGBheader::lut |
( |
bool & |
set | ) |
|
|
inline |
◆ lut() [2/3]
| void IGBheader::lut |
( |
unsigned int |
a | ) |
|
|
inline |
◆ lut() [3/3]
| unsigned int IGBheader::lut |
( |
void |
| ) |
|
|
inline |
◆ num() [1/3]
| int IGBheader::num |
( |
bool & |
set | ) |
|
|
inline |
◆ num() [2/3]
| void IGBheader::num |
( |
int |
a | ) |
|
|
inline |
◆ num() [3/3]
| int IGBheader::num |
( |
void |
| ) |
|
|
inline |
◆ num_components()
| unsigned short IGBheader::num_components |
( |
| ) |
|
|
inline |
◆ org_t() [1/3]
| float IGBheader::org_t |
( |
bool & |
set | ) |
|
|
inline |
◆ org_t() [2/3]
| void IGBheader::org_t |
( |
float |
a | ) |
|
|
inline |
◆ org_t() [3/3]
| float IGBheader::org_t |
( |
void |
| ) |
|
|
inline |
◆ org_x() [1/3]
| float IGBheader::org_x |
( |
bool & |
set | ) |
|
|
inline |
◆ org_x() [2/3]
| void IGBheader::org_x |
( |
float |
a | ) |
|
|
inline |
◆ org_x() [3/3]
| float IGBheader::org_x |
( |
void |
| ) |
|
|
inline |
◆ org_y() [1/3]
| float IGBheader::org_y |
( |
bool & |
set | ) |
|
|
inline |
◆ org_y() [2/3]
| void IGBheader::org_y |
( |
float |
a | ) |
|
|
inline |
◆ org_y() [3/3]
| float IGBheader::org_y |
( |
void |
| ) |
|
|
inline |
◆ org_z() [1/3]
| float IGBheader::org_z |
( |
bool & |
set | ) |
|
|
inline |
◆ org_z() [2/3]
| void IGBheader::org_z |
( |
float |
a | ) |
|
|
inline |
◆ org_z() [3/3]
| float IGBheader::org_z |
( |
void |
| ) |
|
|
inline |
◆ read()
| int IGBheader::read |
( |
bool |
quiet = false | ) |
|
read in a header
- Parameters
-
| quiet | do not print warnings/errors |
- Returns
- 0 if and only if all is o.k.
- Precondition
- the file has been opened
Definition at line 757 of file IGBheader.cc.
◆ read_data()
template<class T >
| int IGBheader::read_data |
( |
T * |
dp, |
|
|
size_t |
numt = 1, |
|
|
char * |
buf = NULL |
|
) |
| |
read in a number of time slices
- Parameters
-
| dp[out] | values read |
| numt | number of time slices |
| buf | temporary buffer of raw data |
- Precondition
dp must be allocated
- Postcondition
- \dp will be filled
- Returns
- the number of items read
Definition at line 431 of file IGBheader.h.
◆ slice_sz()
| size_t IGBheader::slice_sz |
( |
| ) |
|
|
inline |
◆ struct_desc() [1/3]
| char* IGBheader::struct_desc |
( |
bool & |
set | ) |
|
|
inline |
◆ struct_desc() [2/3]
| void IGBheader::struct_desc |
( |
const char * |
a | ) |
|
|
inline |
◆ struct_desc() [3/3]
| char* IGBheader::struct_desc |
( |
void |
| ) |
|
|
inline |
◆ swab()
| void IGBheader::swab |
( |
void * |
data, |
|
|
int |
nd = -1 |
|
) |
| |
swap bytes ]]
- Parameters
-
| data | data buffer |
| nd | number of items in buffer |
Definition at line 1337 of file IGBheader.cc.
◆ systeme() [1/2]
| void IGBheader::systeme |
( |
const char * |
s | ) |
|
◆ systeme() [2/2]
| int IGBheader::systeme |
( |
void |
| ) |
|
|
inline |
◆ systemestr()
| const char * IGBheader::systemestr |
( |
void |
| ) |
|
◆ t() [1/3]
| size_t IGBheader::t |
( |
bool & |
set | ) |
|
|
inline |
◆ t() [2/3]
| void IGBheader::t |
( |
size_t |
a | ) |
|
|
inline |
◆ t() [3/3]
| size_t IGBheader::t |
( |
void |
| ) |
|
|
inline |
◆ taille() [1/3]
| int IGBheader::taille |
( |
bool & |
set | ) |
|
|
inline |
◆ taille() [2/3]
| void IGBheader::taille |
( |
int |
a | ) |
|
|
inline |
◆ taille() [3/3]
| int IGBheader::taille |
( |
void |
| ) |
|
|
inline |
◆ tell()
◆ to_bin() [1/2]
template<class T >
| void IGBheader::to_bin |
( |
void * |
buf, |
|
|
T * |
d |
|
) |
| |
convert the data to the binary representation for vector types
- Parameters
-
| buf | place to put raw binary IGB data |
| d | datum |
Definition at line 587 of file IGBheader.h.
◆ to_bin() [2/2]
template<class T >
| void IGBheader::to_bin |
( |
void * |
buf, |
|
|
T |
d |
|
) |
| |
convert the data to the binary representation
- Parameters
-
| buf | place to put raw binary IGB data |
| d | datum |
Definition at line 529 of file IGBheader.h.
◆ to_raw()
| double IGBheader::to_raw |
( |
double |
a | ) |
|
|
inline |
◆ trame() [1/3]
| int IGBheader::trame |
( |
bool & |
set | ) |
|
|
inline |
◆ trame() [2/3]
| void IGBheader::trame |
( |
int |
a | ) |
|
|
inline |
◆ trame() [3/3]
| int IGBheader::trame |
( |
void |
| ) |
|
|
inline |
◆ transparent() [1/3]
| void* IGBheader::transparent |
( |
bool & |
set | ) |
|
|
inline |
◆ transparent() [2/3]
| void IGBheader::transparent |
( |
void * |
a | ) |
|
|
inline |
◆ transparent() [3/3]
| void* IGBheader::transparent |
( |
void |
| ) |
|
|
inline |
◆ transparentstr()
| char* IGBheader::transparentstr |
( |
void |
| ) |
|
|
inline |
◆ type() [1/4]
| int IGBheader::type |
( |
bool & |
set | ) |
|
|
inline |
◆ type() [2/4]
| void IGBheader::type |
( |
char * |
datatype | ) |
|
◆ type() [3/4]
| void IGBheader::type |
( |
int |
a | ) |
|
|
inline |
◆ type() [4/4]
| int IGBheader::type |
( |
void |
| ) |
|
|
inline |
◆ unites() [1/3]
| char* IGBheader::unites |
( |
bool & |
set | ) |
|
|
inline |
◆ unites() [2/3]
| void IGBheader::unites |
( |
const char * |
a | ) |
|
|
inline |
◆ unites() [3/3]
| char* IGBheader::unites |
( |
void |
| ) |
|
|
inline |
◆ unites_t() [1/3]
| char* IGBheader::unites_t |
( |
bool & |
set | ) |
|
|
inline |
◆ unites_t() [2/3]
| void IGBheader::unites_t |
( |
const char * |
a | ) |
|
|
inline |
◆ unites_t() [3/3]
| char* IGBheader::unites_t |
( |
void |
| ) |
|
|
inline |
◆ unites_x() [1/3]
| char* IGBheader::unites_x |
( |
bool & |
set | ) |
|
|
inline |
◆ unites_x() [2/3]
| void IGBheader::unites_x |
( |
const char * |
a | ) |
|
|
inline |
◆ unites_x() [3/3]
| char* IGBheader::unites_x |
( |
void |
| ) |
|
|
inline |
◆ unites_y() [1/3]
| char* IGBheader::unites_y |
( |
bool & |
set | ) |
|
|
inline |
◆ unites_y() [2/3]
| void IGBheader::unites_y |
( |
const char * |
a | ) |
|
|
inline |
◆ unites_y() [3/3]
| char* IGBheader::unites_y |
( |
void |
| ) |
|
|
inline |
◆ unites_z() [1/3]
| char* IGBheader::unites_z |
( |
bool & |
set | ) |
|
|
inline |
◆ unites_z() [2/3]
| void IGBheader::unites_z |
( |
const char * |
a | ) |
|
|
inline |
◆ unites_z() [3/3]
| char* IGBheader::unites_z |
( |
void |
| ) |
|
|
inline |
◆ vect_z() [1/3]
| float* IGBheader::vect_z |
( |
bool & |
set | ) |
|
|
inline |
◆ vect_z() [2/3]
| void IGBheader::vect_z |
( |
float * |
a | ) |
|
|
inline |
◆ vect_z() [3/3]
| float* IGBheader::vect_z |
( |
void |
| ) |
|
|
inline |
◆ write()
◆ write_data()
template<class T >
| void IGBheader::write_data |
( |
T * |
dp, |
|
|
size_t |
numt = 1, |
|
|
char * |
buf = NULL |
|
) |
| |
write out a number of time slices
- Parameters
-
| dp[in] | buffer of data |
| numt | number of time slices |
| buf | temporary buffer of raw data |
Definition at line 397 of file IGBheader.h.
◆ x() [1/3]
| size_t IGBheader::x |
( |
bool & |
set | ) |
|
|
inline |
◆ x() [2/3]
| void IGBheader::x |
( |
size_t |
a | ) |
|
|
inline |
◆ x() [3/3]
| size_t IGBheader::x |
( |
void |
| ) |
|
|
inline |
◆ y() [1/3]
| size_t IGBheader::y |
( |
bool & |
set | ) |
|
|
inline |
◆ y() [2/3]
| void IGBheader::y |
( |
size_t |
a | ) |
|
|
inline |
◆ y() [3/3]
| size_t IGBheader::y |
( |
void |
| ) |
|
|
inline |
◆ z() [1/3]
| size_t IGBheader::z |
( |
bool & |
set | ) |
|
|
inline |
◆ z() [2/3]
| void IGBheader::z |
( |
size_t |
a | ) |
|
|
inline |
◆ z() [3/3]
| size_t IGBheader::z |
( |
void |
| ) |
|
|
inline |
◆ zero() [1/3]
| float IGBheader::zero |
( |
bool & |
set | ) |
|
|
inline |
◆ zero() [2/3]
| void IGBheader::zero |
( |
float |
a | ) |
|
|
inline |
◆ zero() [3/3]
| float IGBheader::zero |
( |
void |
| ) |
|
|
inline |
The documentation for this class was generated from the following files: