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

CoordSystem2d Class Reference

#include <ref_image.H>

Inheritance diagram for CoordSystem2d:

Inheritance graph
[legend]
Collaboration diagram for CoordSystem2d:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CoordSystem2d ()
virtual ~CoordSystem2d ()
uint width () const
uint height () const
uint max () const
virtual bool resize (uint new_w, uint new_h)
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 Attributes

uint _width
uint _height
uint _max
double _half_width
double _half_height
double _half_min_dim
NDCvec _ndc_offset

Detailed Description

Definition at line 26 of file ref_image.H.


Constructor & Destructor Documentation

CoordSystem2d::CoordSystem2d  )  [inline]
 

Definition at line 38 of file ref_image.H.

virtual CoordSystem2d::~CoordSystem2d  )  [inline, virtual]
 

Definition at line 43 of file ref_image.H.


Member Function Documentation

uint CoordSystem2d::height  )  const [inline]
 

Definition at line 47 of file ref_image.H.

References _height.

uint CoordSystem2d::max  )  const [inline]
 

Definition at line 48 of file ref_image.H.

References _max.

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

CNDCvec& CoordSystem2d::ndc_offset  )  [inline]
 

Definition at line 60 of file ref_image.H.

References _ndc_offset.

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

Definition at line 86 of file ref_image.H.

References _half_height, _half_min_dim, and _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]
 

Definition at line 96 of file ref_image.H.

References _half_height, _half_min_dim, _half_width, _height, _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]
 

Definition at line 65 of file ref_image.H.

References _height, and _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]
 

Definition at line 82 of file ref_image.H.

References _half_height, _half_min_dim, and _half_width.

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

Definition at line 73 of file ref_image.H.

References _height, and _width.

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

virtual bool CoordSystem2d::resize uint  new_w,
uint  new_h
[inline, virtual]
 

Reimplemented in BufferRefImage, Array2d< T >, VisRefImage, and Array2d< GLuint >.

Definition at line 50 of file ref_image.H.

References _half_height, _half_min_dim, _half_width, _height, _max, _width, and min().

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

void CoordSystem2d::set_ndc_offset CNDCvec v  )  [inline]
 

Definition at line 61 of file ref_image.H.

References _ndc_offset.

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

Definition at line 64 of file ref_image.H.

References _max.

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

Definition at line 92 of file ref_image.H.

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

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

Definition at line 77 of file ref_image.H.

References _width.

uint CoordSystem2d::width  )  const [inline]
 

Definition at line 46 of file ref_image.H.

References _width.


Member Data Documentation

double CoordSystem2d::_half_height [protected]
 

Definition at line 32 of file ref_image.H.

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

double CoordSystem2d::_half_min_dim [protected]
 

Definition at line 33 of file ref_image.H.

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

double CoordSystem2d::_half_width [protected]
 

Definition at line 31 of file ref_image.H.

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

uint CoordSystem2d::_height [protected]
 

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(), height(), ndc_to_uint(), pix_in_range(), pix_to_uint(), RefImage::read_FB(), Array2d< GLuint >::resize(), resize(), IDRefImage::search(), IDRefImage::update(), RefImage::update(), BufferRefImage::update(), AuxRefImage::update(), and RefImage::write_file().

uint CoordSystem2d::_max [protected]
 

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(), max(), resize(), and uint_in_range().

NDCvec CoordSystem2d::_ndc_offset [protected]
 

Definition at line 35 of file ref_image.H.

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

uint CoordSystem2d::_width [protected]
 

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(), ndc_to_uint(), pix_in_range(), pix_to_uint(), RefImage::read_FB(), Array2d< GLuint >::resize(), resize(), IDRefImage::search(), uint_to_ndc(), uint_to_pix(), IDRefImage::update(), RefImage::update(), BufferRefImage::update(), AuxRefImage::update(), width(), and RefImage::write_file().


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