Public Member Functions | Private Member Functions | Private Attributes
vil3d_meta_image_header Class Reference

#include <vil3d_meta_image_format.h>

List of all members.

Public Member Functions

 vil3d_meta_image_header (void)
 ~vil3d_meta_image_header (void)
void set_byte_order_msb (const bool is_msb)
bool byte_order_is_msb (void) const
void set_offset (const double off_i, const double off_j, const double off_k)
double offset_i (void) const
double offset_j (void) const
double offset_k (void) const
void set_vox_size (const double vox_i, const double vox_j, const double vox_k)
double vox_size_i (void) const
double vox_size_j (void) const
double vox_size_k (void) const
void set_dim_size (const unsigned int ni, const unsigned int nj, const unsigned int nk, const unsigned int np)
unsigned int ni (void) const
unsigned int nj (void) const
unsigned int nk (void) const
unsigned int nplanes (void) const
void set_element_type (const vcl_string &elem_type)
const vcl_string & element_type (void) const
void set_image_fname (const vcl_string &image_fname)
const vcl_string & image_fname (void) const
void set_pixel_format (const vil_pixel_format format)
vil_pixel_format pixel_format (void) const
void clear (void)
bool read_header (const vcl_string &header_fname)
bool write_header (const vcl_string &header_fname) const
void print_header (vcl_ostream &os) const
void check_need_swap (void)
bool need_swap (void) const

Private Member Functions

bool check_next_header_line (const vcl_string &nxt_line)
vcl_string get_header_value (const vcl_string &nxt_line)
bool set_header_offset (const vcl_string &offs)
bool set_header_dim_size (const vcl_string &dims)
bool set_header_voxel_size (const vcl_string &vsize)

Private Attributes

bool header_valid_
bool byte_order_msb_
double offset_i_
double offset_j_
double offset_k_
double vox_size_i_
double vox_size_j_
double vox_size_k_
unsigned int dim_size_i_
unsigned int dim_size_j_
unsigned int dim_size_k_
unsigned int nplanes_
vcl_string elem_type_
vcl_string im_file_
vil_pixel_format pformat_
bool need_swap_

Detailed Description

Definition at line 17 of file vil3d_meta_image_format.h.


Constructor & Destructor Documentation

vil3d_meta_image_header::vil3d_meta_image_header ( void  )

Definition at line 71 of file vil3d_meta_image_format.cxx.

vil3d_meta_image_header::~vil3d_meta_image_header ( void  )

Definition at line 85 of file vil3d_meta_image_format.cxx.


Member Function Documentation

bool vil3d_meta_image_header::byte_order_is_msb ( void  ) const

Definition at line 98 of file vil3d_meta_image_format.cxx.

void vil3d_meta_image_header::check_need_swap ( void  )

Definition at line 323 of file vil3d_meta_image_format.cxx.

bool vil3d_meta_image_header::check_next_header_line ( const vcl_string &  nxt_line) [private]

Definition at line 352 of file vil3d_meta_image_format.cxx.

void vil3d_meta_image_header::clear ( void  )

Definition at line 233 of file vil3d_meta_image_format.cxx.

const vcl_string & vil3d_meta_image_header::element_type ( void  ) const

Definition at line 199 of file vil3d_meta_image_format.cxx.

vcl_string vil3d_meta_image_header::get_header_value ( const vcl_string &  nxt_line) [private]

Definition at line 445 of file vil3d_meta_image_format.cxx.

const vcl_string & vil3d_meta_image_header::image_fname ( void  ) const

Definition at line 212 of file vil3d_meta_image_format.cxx.

bool vil3d_meta_image_header::need_swap ( void  ) const

Definition at line 344 of file vil3d_meta_image_format.cxx.

unsigned int vil3d_meta_image_header::ni ( void  ) const

Definition at line 171 of file vil3d_meta_image_format.cxx.

unsigned int vil3d_meta_image_header::nj ( void  ) const

Definition at line 176 of file vil3d_meta_image_format.cxx.

unsigned int vil3d_meta_image_header::nk ( void  ) const

Definition at line 181 of file vil3d_meta_image_format.cxx.

unsigned int vil3d_meta_image_header::nplanes ( void  ) const

Definition at line 186 of file vil3d_meta_image_format.cxx.

double vil3d_meta_image_header::offset_i ( void  ) const

Definition at line 115 of file vil3d_meta_image_format.cxx.

double vil3d_meta_image_header::offset_j ( void  ) const

Definition at line 120 of file vil3d_meta_image_format.cxx.

double vil3d_meta_image_header::offset_k ( void  ) const

Definition at line 125 of file vil3d_meta_image_format.cxx.

vil_pixel_format vil3d_meta_image_header::pixel_format ( void  ) const

Definition at line 225 of file vil3d_meta_image_format.cxx.

void vil3d_meta_image_header::print_header ( vcl_ostream &  os) const

Definition at line 307 of file vil3d_meta_image_format.cxx.

bool vil3d_meta_image_header::read_header ( const vcl_string &  header_fname)

Definition at line 247 of file vil3d_meta_image_format.cxx.

void vil3d_meta_image_header::set_byte_order_msb ( const bool  is_msb)

Definition at line 93 of file vil3d_meta_image_format.cxx.

void vil3d_meta_image_header::set_dim_size ( const unsigned int  ni,
const unsigned int  nj,
const unsigned int  nk,
const unsigned int  np 
)

Definition at line 160 of file vil3d_meta_image_format.cxx.

void vil3d_meta_image_header::set_element_type ( const vcl_string &  elem_type)

Definition at line 194 of file vil3d_meta_image_format.cxx.

bool vil3d_meta_image_header::set_header_dim_size ( const vcl_string &  dims) [private]

Definition at line 508 of file vil3d_meta_image_format.cxx.

bool vil3d_meta_image_header::set_header_offset ( const vcl_string &  offs) [private]

Definition at line 467 of file vil3d_meta_image_format.cxx.

bool vil3d_meta_image_header::set_header_voxel_size ( const vcl_string &  vsize) [private]

Definition at line 549 of file vil3d_meta_image_format.cxx.

void vil3d_meta_image_header::set_image_fname ( const vcl_string &  image_fname)

Definition at line 207 of file vil3d_meta_image_format.cxx.

void vil3d_meta_image_header::set_offset ( const double  off_i,
const double  off_j,
const double  off_k 
)

Definition at line 106 of file vil3d_meta_image_format.cxx.

void vil3d_meta_image_header::set_pixel_format ( const vil_pixel_format  format)

Definition at line 220 of file vil3d_meta_image_format.cxx.

void vil3d_meta_image_header::set_vox_size ( const double  vox_i,
const double  vox_j,
const double  vox_k 
)

Definition at line 133 of file vil3d_meta_image_format.cxx.

double vil3d_meta_image_header::vox_size_i ( void  ) const

Definition at line 142 of file vil3d_meta_image_format.cxx.

double vil3d_meta_image_header::vox_size_j ( void  ) const

Definition at line 147 of file vil3d_meta_image_format.cxx.

double vil3d_meta_image_header::vox_size_k ( void  ) const

Definition at line 152 of file vil3d_meta_image_format.cxx.

bool vil3d_meta_image_header::write_header ( const vcl_string &  header_fname) const

Definition at line 280 of file vil3d_meta_image_format.cxx.


Member Data Documentation

Definition at line 79 of file vil3d_meta_image_format.h.

unsigned int vil3d_meta_image_header::dim_size_i_ [private]

Definition at line 82 of file vil3d_meta_image_format.h.

unsigned int vil3d_meta_image_header::dim_size_j_ [private]

Definition at line 82 of file vil3d_meta_image_format.h.

unsigned int vil3d_meta_image_header::dim_size_k_ [private]

Definition at line 82 of file vil3d_meta_image_format.h.

Definition at line 84 of file vil3d_meta_image_format.h.

Definition at line 76 of file vil3d_meta_image_format.h.

vcl_string vil3d_meta_image_header::im_file_ [private]

Definition at line 85 of file vil3d_meta_image_format.h.

Definition at line 92 of file vil3d_meta_image_format.h.

unsigned int vil3d_meta_image_header::nplanes_ [private]

Definition at line 83 of file vil3d_meta_image_format.h.

Definition at line 80 of file vil3d_meta_image_format.h.

Definition at line 80 of file vil3d_meta_image_format.h.

Definition at line 80 of file vil3d_meta_image_format.h.

Definition at line 89 of file vil3d_meta_image_format.h.

Definition at line 81 of file vil3d_meta_image_format.h.

Definition at line 81 of file vil3d_meta_image_format.h.

Definition at line 81 of file vil3d_meta_image_format.h.


The documentation for this class was generated from the following files: