Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Array2d< T > Class Template Reference

#include <ref_image.H>

Inheritance diagram for Array2d< T >:

Inheritance graph
[legend]
Collaboration diagram for Array2d< T >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Array2d ()
 Array2d (const Array2d< T > &arr)
virtual ~Array2d ()
void clear (int clear_val=0)
virtual bool resize (uint new_w, uint new_h)
T & val (uint id) const
T & val (CNDCpt &ndc) const
T & val (Cpoint2i &pix) const
T & val (int x, int y) const
uint width () const
uint height () const
uint max () const
CNDCvecndc_offset ()
void set_ndc_offset (CNDCvec &v)
bool uint_in_range (uint id) const
bool pix_in_range (Cpoint2i &pix) const
uint pix_to_uint (Cpoint2i &pix) const
Point2i uint_to_pix (uint id) const
NDCpt pix_to_ndc (Cpoint2i &pix) const
Point2i ndc_to_pix (CNDCpt &ndc) const
NDCpt uint_to_ndc (uint id) const
uint ndc_to_uint (CNDCpt &ndc) const

Protected Member Functions

void allocate ()

Protected Attributes

T * _values
uint _width
uint _height
uint _max
double _half_width
double _half_height
double _half_min_dim
NDCvec _ndc_offset

Detailed Description

template<class T>
class Array2d< T >

Definition at line 107 of file ref_image.H.


Constructor & Destructor Documentation

template<class T>
Array2d< T >::Array2d  )  [inline]
 

Definition at line 110 of file ref_image.H.

template<class T>
Array2d< T >::Array2d const Array2d< T > &  arr  )  [inline]
 

Definition at line 111 of file ref_image.H.

template<class T>
virtual Array2d< T >::~Array2d  )  [inline, virtual]
 

Definition at line 118 of file ref_image.H.


Member Function Documentation

template<class T>
void Array2d< T >::allocate  )  [inline, protected]
 

Definition at line 141 of file ref_image.H.

Referenced by Array2d< GLuint >::resize().

template<class T>
void Array2d< T >::clear int  clear_val = 0  )  [inline]
 

Definition at line 120 of file ref_image.H.

uint CoordSystem2d::height  )  const [inline, inherited]
 

Definition at line 47 of file ref_image.H.

References CoordSystem2d::_height.

uint CoordSystem2d::max  )  const [inline, inherited]
 

Definition at line 48 of file ref_image.H.

References CoordSystem2d::_max.

Referenced by RefImage::find_val_in_box(), RefImage::read_file(), and IDRefImage::search().

CNDCvec& CoordSystem2d::ndc_offset  )  [inline, inherited]
 

Definition at line 60 of file ref_image.H.

References CoordSystem2d::_ndc_offset.

Point2i CoordSystem2d::ndc_to_pix CNDCpt ndc  )  const [inline, inherited]
 

Definition at line 86 of file ref_image.H.

References CoordSystem2d::_half_height, CoordSystem2d::_half_min_dim, and CoordSystem2d::_half_width.

Referenced by IDRefImage::find_all_neighbors(), IDRefImage::find_neighbor(), RefImage::find_val_in_box(), IDRefImage::is_patch_sil_edge(), IDRefImage::is_patch_sil_edge_near(), IDRefImage::is_simplex_near(), and IDRefImage::search().

uint CoordSystem2d::ndc_to_uint CNDCpt ndc  )  const [inline, inherited]
 

Definition at line 96 of file ref_image.H.

References CoordSystem2d::_half_height, CoordSystem2d::_half_min_dim, CoordSystem2d::_half_width, CoordSystem2d::_height, CoordSystem2d::_width, and int().

Referenced by VisRefImage::debug(), IDRefImage::edge(), IDRefImage::face(), IDRefImage::simplex(), Array2d< GLuint >::val(), and IDRefImage::vert().

bool CoordSystem2d::pix_in_range Cpoint2i &  pix  )  const [inline, inherited]
 

Definition at line 65 of file ref_image.H.

References CoordSystem2d::_height, and CoordSystem2d::_width.

Referenced by IDRefImage::find_all_neighbors(), IDRefImage::find_neighbor(), IDRefImage::is_patch_sil_edge(), IDRefImage::is_simplex_near(), and IDRefImage::near_pix().

NDCpt CoordSystem2d::pix_to_ndc Cpoint2i &  pix  )  const [inline, inherited]
 

Definition at line 82 of file ref_image.H.

References CoordSystem2d::_half_height, CoordSystem2d::_half_min_dim, and CoordSystem2d::_half_width.

uint CoordSystem2d::pix_to_uint Cpoint2i &  pix  )  const [inline, inherited]
 

Definition at line 73 of file ref_image.H.

References CoordSystem2d::_height, and CoordSystem2d::_width.

Referenced by IDRefImage::edge(), IDRefImage::face(), IDRefImage::simplex(), Array2d< GLuint >::val(), and IDRefImage::vert().

template<class T>
virtual bool Array2d< T >::resize uint  new_w,
uint  new_h
[inline, virtual]
 

Reimplemented from CoordSystem2d.

Reimplemented in BufferRefImage, and VisRefImage.

Definition at line 124 of file ref_image.H.

Referenced by Array2d< GLuint >::Array2d().

void CoordSystem2d::set_ndc_offset CNDCvec v  )  [inline, inherited]
 

Definition at line 61 of file ref_image.H.

References CoordSystem2d::_ndc_offset.

bool CoordSystem2d::uint_in_range uint  id  )  const [inline, inherited]
 

Definition at line 64 of file ref_image.H.

References CoordSystem2d::_max.

NDCpt CoordSystem2d::uint_to_ndc uint  id  )  const [inline, inherited]
 

Definition at line 92 of file ref_image.H.

References CoordSystem2d::_half_height, CoordSystem2d::_half_min_dim, CoordSystem2d::_half_width, CoordSystem2d::_ndc_offset, and CoordSystem2d::_width.

Point2i CoordSystem2d::uint_to_pix uint  id  )  const [inline, inherited]
 

Definition at line 77 of file ref_image.H.

References CoordSystem2d::_width.

template<class T>
T& Array2d< T >::val int  x,
int  y
const [inline]
 

Definition at line 136 of file ref_image.H.

template<class T>
T& Array2d< T >::val Cpoint2i &  pix  )  const [inline]
 

Definition at line 135 of file ref_image.H.

template<class T>
T& Array2d< T >::val CNDCpt ndc  )  const [inline]
 

Definition at line 134 of file ref_image.H.

template<class T>
T& Array2d< T >::val uint  id  )  const [inline]
 

Definition at line 133 of file ref_image.H.

Referenced by debug_vis_ref_img(), and Array2d< GLuint >::val().

uint CoordSystem2d::width  )  const [inline, inherited]
 

Definition at line 46 of file ref_image.H.

References CoordSystem2d::_width.


Member Data Documentation

double CoordSystem2d::_half_height [protected, inherited]
 

Definition at line 32 of file ref_image.H.

Referenced by CoordSystem2d::ndc_to_pix(), CoordSystem2d::ndc_to_uint(), CoordSystem2d::pix_to_ndc(), CoordSystem2d::resize(), and CoordSystem2d::uint_to_ndc().

double CoordSystem2d::_half_min_dim [protected, inherited]
 

Definition at line 33 of file ref_image.H.

Referenced by CoordSystem2d::ndc_to_pix(), CoordSystem2d::ndc_to_uint(), CoordSystem2d::pix_to_ndc(), CoordSystem2d::resize(), IDRefImage::search(), and CoordSystem2d::uint_to_ndc().

double CoordSystem2d::_half_width [protected, inherited]
 

Definition at line 31 of file ref_image.H.

Referenced by CoordSystem2d::ndc_to_pix(), CoordSystem2d::ndc_to_uint(), CoordSystem2d::pix_to_ndc(), CoordSystem2d::resize(), and CoordSystem2d::uint_to_ndc().

uint CoordSystem2d::_height [protected, inherited]
 

Definition at line 29 of file ref_image.H.

Referenced by Array2d< GLuint >::Array2d(), RefImage::copy_rgb(), RefImage::draw_FB(), RefImage::find_val_in_box(), CoordSystem2d::height(), CoordSystem2d::ndc_to_uint(), CoordSystem2d::pix_in_range(), CoordSystem2d::pix_to_uint(), RefImage::read_FB(), Array2d< GLuint >::resize(), CoordSystem2d::resize(), IDRefImage::search(), IDRefImage::update(), RefImage::update(), BufferRefImage::update(), AuxRefImage::update(), and RefImage::write_file().

uint CoordSystem2d::_max [protected, inherited]
 

Definition at line 30 of file ref_image.H.

Referenced by Array2d< GLuint >::allocate(), Array2d< GLuint >::Array2d(), Array2d< GLuint >::clear(), RefImage::copy_rgb(), RefImage::fill(), CoordSystem2d::max(), CoordSystem2d::resize(), and CoordSystem2d::uint_in_range().

NDCvec CoordSystem2d::_ndc_offset [protected, inherited]
 

Definition at line 35 of file ref_image.H.

Referenced by CoordSystem2d::ndc_offset(), CoordSystem2d::set_ndc_offset(), and CoordSystem2d::uint_to_ndc().

template<class T>
T* Array2d< T >::_values [protected]
 

Definition at line 139 of file ref_image.H.

Referenced by Array2d< GLuint >::allocate(), Array2d< GLuint >::Array2d(), Array2d< GLuint >::clear(), Array2d< GLuint >::val(), and Array2d< GLuint >::~Array2d().

uint CoordSystem2d::_width [protected, inherited]
 

Definition at line 28 of file ref_image.H.

Referenced by Array2d< GLuint >::Array2d(), RefImage::copy_rgb(), RefImage::draw_FB(), RefImage::find_val_in_box(), CoordSystem2d::ndc_to_uint(), CoordSystem2d::pix_in_range(), CoordSystem2d::pix_to_uint(), RefImage::read_FB(), Array2d< GLuint >::resize(), CoordSystem2d::resize(), IDRefImage::search(), CoordSystem2d::uint_to_ndc(), CoordSystem2d::uint_to_pix(), IDRefImage::update(), RefImage::update(), BufferRefImage::update(), AuxRefImage::update(), CoordSystem2d::width(), and RefImage::write_file().


The documentation for this class was generated from the following file:
Generated on Mon Sep 18 11:44:17 2006 for jot by  doxygen 1.4.4